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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Benjamin Ten, 11 months ago
[LDAP: error code 49 - Invalid Credentials]
via Super User by user1877246
, 1 year ago
[LDAP: error code 49 - Invalid Credentials]
via Coderanch by Benjamin Ten, 11 months ago
[LDAP: error code 49 - Invalid Credentials]
via Stack Overflow by lummerland
, 4 months ago
[LDAP: error code 49 - 80090308: LdapErr: DSID-0C090421, comment: AcceptSecurityContext error, data 52e, v23f0^@]
via Stack Overflow by Bhuvanesh Waran
, 1 year ago
[LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v2580]
via Oracle Community by 649509, 4 months ago
[LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903AA, comment: AcceptSecurityContext error, data 525, v1771]
javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3041)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2789)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2703)
at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:293)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.ldap.InitialLdapContext.(InitialLdapContext.java:134)
at com.iflex.fcat.misc.TestLDAP.createInitialLdapContext(TestLDAP.java:258)
at com.iflex.fcat.misc.TestLDAP.authenticate(TestLDAP.java:170)
at com.iflex.fcat.misc.TestLDAP.main(TestLDAP.java:125)

Users with the same issue

9 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
6 times, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
6 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.