To setup LLDAP for Jenkins navigate to Dashboard/Manage Jenkins/Security.
Note: Jenkins LDAP plugin has to be installed!
Note: "dc=example,dc=com" is default configuration, you should replace it with your base DN.
- Set Security Realm to LDAP
- Click Add Server
- Setup config fields as stated below
(This can be replaced by server ip/your domain etc.)
ldap://example.com:3890
dc=example,dc=com
true
ou=people
uid={0}
ou=groups
(& (cn={0})(objectclass=groupOfNames))
Select Search for LDAP groups containing user and leave Group membership filter empty
Leave here your admin account
cn=admin,ou=people,dc=example,dc=com
Leave it as is
Leave cn as it inputs username
cn
mail
- Always use Test LDAP settings so you won't get locked out. It works without password.
- If you want to setup your permissions, go to Authorization setting and select Matrix-based security. Add group/user (it has to exist in LLDAP) and you can grant him permissions. Note that Overall Read forbids users to read jenkins and execute actions. Administer gives full rights.
https://plugins.jenkins.io/ldap/
https://www.jenkins.io/doc/book/security/managing-security/