LDAP is new to me and I try to use it with Jenkins. I am using slapd
I created a simple tree with the user admin
+ 1 user adenoyelle
(via dpkg reconfigure
). I do not understand how Jenkins will find the LDAP users.
Here is the result of ldapsearch
:
root@myserver:~# ldapsearch -x -b 'dc=mycompany,dc=com'
# extended LDIF
#
# LDAPv3
# base <dc=mycompany,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# mycompany.com
dn: dc=mycompany,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
o: mycompany.com
dc: mycompany
# admin, mycompany.com
dn: cn=admin,dc=mycompany,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
# adenoyelle, mycompany.com
dn: cn=adenoyelle,dc=mycompany,dc=com
cn: adenoyelle
objectClass: simpleSecurityObject
objectClass: organizationalRole
objectClass: top
# search result
search: 2
result: 0 Success
# numResponses: 4
# numEntries: 3
Question 1) : Does this structure look good?
I tried to configure Jenkins with those options :
LDAP server: ldap://mycompany.com:389
root DN : dc=mycompany,dc=com
DN manager : cn=admin,dc=mycompany,dc=com
manager password : ******
When I try to connect with adenoyelle/*****
, I get the message :
jenkins invalid login information. please try again
Question 2) Am I missing a piece of configuration?