Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

LDAP user authentication - Invalid Credentials

avatar
Expert Contributor

I am facing authenticating ldap user.

The following command results in: ldap_bind: Invalid credentials (49)

ldapsearch -x -H ldaps://my-ldap-server.net -b "ou=People,o=xx.com" "(uid=xx.xxx@xx.com)" -W

But without -W (without password), it is working fine and search the record.

1 ACCEPTED SOLUTION

avatar

You are specifying a bind password but no bind user. Try adding the -D parameter with your bind DN (see manpage for details).

View solution in original post

3 REPLIES 3

avatar
Master Mentor

avatar

sir i have also same error but not got exact solution ....please help me

javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]

avatar

You are specifying a bind password but no bind user. Try adding the -D parameter with your bind DN (see manpage for details).