Jenkins Integration with LDAP -- Issue

48 views
Skip to first unread message

gaurav gundal

unread,
Jan 20, 2020, 5:29:34 PM1/20/20
to Jenkins Users

Hi Everyone,


I am trying to configure Jenkins with the  ldap,but I am getting error as mentioned below . Please let me know if you know about below error


 

Ldap Integration with the Jenkins

 

Below are the Jenkins Setup details

Jenkins Version - Jenkins ver. 2.204.1

Jenkins Ldap plugin – 1.21

 

LdapSearch from the Jenkins Master

ldapsearch -x -h xxx -p 389 -D "CN=xx,OU=bb,OU=aa,DC=qq,DC=pp,DC=com"  -b  "OU= aa,DC= qq,DC=pp,DC=com" "(sAMAccountName=xxxxxx)"

Result stripped out -- Succesful

Search: 2

Result: 0 Success

# numResponses: 2

# numEntries: 1

 

 

So I configured the Ldap through Jenkins UI

With below details

Test 1 :

Server : xxx:389

rootDn: DC= qq,DC=pp,DC=com

ManagerDn: CN=xx,OU=bb,OU=aa,DC=qq,DC=pp,DC=com

Manager Password : xxxxx

Error :

LdapCallback;LDAP response read timed out, timeout used:60000ms.; nested exception is javax.naming.NamingException: LDAP response read timed out, timeout used:60000ms.; remaining name

User lookup: failed for user "xx"

 

Test 2 :

Server : xxx:389

rootDn: DC= qq,DC=pp,DC=com

ManagerDn: CN=xx,OU=bb,OU=aa,DC=qq,DC=pp,DC=com

Manager Password : xxxxx

                Environment Properties: com.sun.jndi.ldap.connect.pool - false

 

Error:

LdapCallback;LDAP response read timed out, timeout used:60000ms.; nested exception is javax.naming.NamingException: LDAP response read timed out, timeout used:60000ms.; remaining name

User lookup: failed for user "xx"

 

Test 3

Server : xxx:389

rootDn: DC= qq,DC=pp,DC=com

ManagerDn: CN=xx,OU=bb,OU=aa,DC=qq,DC=pp,DC=com

Manager Password : xxxxx

                Environment Properties: com.sun.jndi.ldap.connect.pool - false

               Group membership : Parser user attribute for list of LDAP groups

 

Error: Same error

 


Alex

unread,
Jan 21, 2020, 3:52:00 AM1/21/20
to Jenkins Users
Maybe you have too many users in LDAP? Can you narrow down the search and see if you have the same issue?

Niranjan Rao

unread,
Jan 28, 2020, 8:09:29 PM1/28/20
to jenkins...@googlegroups.com
I'm also facing the exact same problem. We don't have that many users, less than 100. Just posted another question to the list.

My story is authentication works fine when Jenkins starts and after sometime no one can login. Only solution is to restart tomcat.

Regards,

Niranjan
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bf1388db-2eb4-4bf8-bcb0-68ecf9e3c233%40googlegroups.com.


Shaun Megaw

unread,
Jan 30, 2020, 9:03:32 AM1/30/20
to Jenkins Users
I had the same issue. what fixed it for me was filling in the "User search filter" field

I added (&(objectCategory=person)(sAMAccountName={0}))
Reply all
Reply to author
Forward
0 new messages