This Email was scanned by Sophos Anti Virus
The error that we were getting at the starting of this thread got resolved after setting the User Search Filter to sAMAccountName and we were successfully able to authenticate our LDAP users from Jenkins CLI using a Java program provided by http://celoxis.atlassian.net/wiki/display/DOC90/Testing+your+LDAP+setup
However, we are still not able to Jenkins through Jenkins UI and getting below error.
Failed to search LDAP for username=muk_newyork
org.acegisecurity.ldap.LdapDataAccessException: Missing 'equals'; nested exception is Javax.naming.directory.InvalidSearchFikterException: Missing 'equals'; remaining name 'OU=Users,dc=mycompany,dc=com'
Failed to search LDAP for username=muk_newyork
org.acegisecurity.ldap.LdapDataAccessException: Missing 'equals'; nested exception is Javax.naming.directory.InvalidSearchFikterException: Missing 'equals'; remaining name 'OU=Users,dc=mycompany,dc=com'
Earlier user search filter was set to sAMAccountName={0}
However, we were getting the error as given in the initial mail thread.
Once we made it just sAMAccountName based on the suggestion of our LDAP team I was able to get myself authenticated from the Java program and this new error came in Jenkins System Logs.
Server: Our LDAP sever URL
root DN: <my company>, dc=com
User search base: <my company>, dc=com
User search filter: sAMACCOUNTNAME
Group search base: not applicable
Group search filter: not applicable
Group membership: not applicable
Manager dn: cn=<Generic User>,ou=<AppUsers>,dc=<my company>,dc=com
Manager password: password of Generic user
Display Name LDAP attribute: displayname