This is an old revision of the document!
Notes for configuring Jenkins with LDAP inside FreeBSD cluster
Configuring LDAP
- pkg install openldap-client (Not really necessary, but useful for testing LDAP)
- copy /usr/local/etc/openldap/* files from freefall.freebsd.org to the Jenkins host
Configuring LDAP in Jenkins
- make sure that Jenkins LDAP Plugin is installed
- follow Jenkins Standard Security Setup, configuring LDAP
- Enabled Matrix Based Security. Create a user in the UI with the same login id as in LDAP.
- Look at the config files in /usr/local/etc/openldap/ and put enter the parameters in the Jenkins LDAP Plugin cofiguration UI
- Use ldaps:// for the URL so that SSL is used.
Configuring the certificate
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:
- Make sure that the opendjk is installed from ports.
- Obtain the certificate for the LDAP server from clusteradm@freebsd.org
- Find the values for $LDAPSERVER1, $LDAPSERVER2 by looking at the config files above
- 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'''