jenkins:ldap

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. Import certificate:
keytool -import -trustcacerts -alias $LDAPSERVER1 -file ldap.crt -keystore $JAVA_HOME/lib/security/cacerts
keytool -import -trustcacerts -alias $LDAPSERVER2 -file ldap.crt -keystore $JAVA_HOME/lib/security/cacerts

Default password for openjdk certificate store is: '''changeit'''
  • jenkins/ldap.1393989978.txt.gz
  • Last modified: 2014/03/05 03:26
  • by CraigRodrigues