This is an old revision of the document!


  1. pkg install openldap-client (Not really necessary, but useful for testing LDAP)
  2. copy /usr/local/etc/openldap/* files from freefall.freebsd.org to the Jenkins host
  1. make sure that Jenkins LDAP Plugin is installed
  2. follow Jenkins Standard Security Setup, configuring LDAP
    1. Enabled Matrix Based Security. Create a user in the UI with the same login id as in LDAP.
    2. Look at the config files in /usr/local/etc/openldap/ and put enter the parameters in the Jenkins LDAP Plugin cofiguration UI
    3. Use ldaps:// for the URL so that SSL is used.

For ldaps:// , it may be necessary to add the certificate associated with the LDAP server to the JDK's list of trusted certificates. This is especially true if the certificate is self-signed. If you don't do this, then authentication errors will occur.

If this is necessary, then you should:

  1. Make sure that the opendjk is installed from ports.
  2. Obtain the certificate for the LDAP server from clusteradm@freebsd.org
  3. Find the values for $LDAPSERVER1, $LDAPSERVER2 by looking at the config files above
  4. Copy default cacert file from $JAVA_HOME/lib/security/cacerts to $JENKINS_HOME/cacerts
  5. Import certificate:
keytool -import -trustcacerts -alias $LDAPSERVER1 -file ldap.crt -keystore $JENKINS_HOME/cacerts
keytool -import -trustcacerts -alias $LDAPSERVER2 -file ldap.crt -keystore $JENKINS_HOME/cacerts}}}
 (Default password for openjdk certificate store is: '''changeit''')
 1. Make jenkins use this new keystore by adding this line to /etc/rc.conf: {{{
jenkins_java_opts="-Djavax.net.ssl.trustStore=/usr/local/jenkins/cacerts"
  • jenkins/ldap.1397015416.txt.gz
  • Last modified: 2014/04/09 03:50
  • by SteveWills