Legacy Knowledge Base
Published Jul. 2, 2025

Why the error "Failed to bind to the LDAP server with userDN" is thrown in the logs

Written By

Prarthana Jadhav

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • What is the reason behind the following error which is thrown in the logs?
    [LDAPAuth:198] Failed to bind to the LDAP server with userDN CN=VERMA BRIJESH KUMAR (MR.),OU=USERS,OU=RND,DC=DS,DC=INDIANOIL,DC=IN and password Me4Sharom@15012020 
    javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090400, comment: AcceptSecurityContext error, data 52e, v1db1_] [Sanitized]
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3154)

Environment

  • Liferay DXP 7.0

Resolution

  • Generally, the error line here "LDAP: error code 49 - 80090308: LdapErr: DSID-0C090400, comment: AcceptSecurityContext error, data 52e" indicates that its invalid credentials. This error message is thrown when a valid username is supplied but an invalid password/credential is supplied. If this error is received, it will prevent most other errors from being displayed.

Additional Information

  • Please note that the pointers provided in the resolution are based on generic scenarios. The resolutions may vary with different environments as well.

 

Did this article resolve your issue ?

Legacy Knowledge Base