Reputation: 61
Please, help me out on below query :
I am trying to configure LDAP authentication in my Jenkins tool. I have done below setup on Jenkins for LDAP authentication,still I am not able to login.
Server : ldaps://rootdc1.myweb.com:636
root DN : DC=MYWEB,DC=COM
User search base : DC=MYWEB,DC=COM
User search filter : sAMAccountName={0}
Group search base : DC=MYWEB,DC=COM
Manager DN : CN=rhunt,OU=ApplicationUsers,DC=MYWEB,DC=COM
Below is the error coming when trying to login :
Invalid login information. Please try again. Try again If you are a system administrator and suspect this to be a configuration problem, see the server console output for more details.
Thanks in advance!
Upvotes: 3
Views: 13448
Reputation: 2209
In Jenkins LDAP Plugin, there is a method normalizeUserSearchBase
return userSearchBase + "," + rootDN;
which concat userSearchBase and rootDN.
So here you should fill the User search base
field with value wiped off rootDN. in your case leave empty.
Upvotes: 0
Reputation: 61
In Jenkins Configure Global Security, we need to pass parameters only to following tabs to successfully connect through LDAP authentication and leave remaining fields empty:
Server: ldaps://rootdc1.myweb.com:636
Root DN: DC= DC=MYWEB,DC=COM
User search filter: sAMAccountName={0}
Manager DN: CN=rhunt,OU=ApplicationUsers,DC=MYWEB,DC=COM
Manager Password: ********
Upvotes: 3