LDAP Error 49 with Java applications

Solution Verified - Updated -

Issue

  • Connection fails
  • The follow error appears in the logs

    2013-11-12 13:31:44,238 WARN  [org.jboss.security.auth.spi.LdapExtLoginModule] javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db0]
    
    2013-12-18 11:49:04,781 WARN  [org.jboss.security.auth.spi.LdapExtLoginModule] javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 775, vece]
    
    2019-04-08 07:13:32,935 DEBUG [org.keycloak.storage.ldap.idm.store.ldap.LDAPOperationManager] (default task-19) Authentication failed for DN [CN=user.blabla@mycompany.corp (IID_193895),OU=Users,OU=XXX,DC=myteam-dev,DC=dev,DC=mycompany,DC=corp]: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09042A, comment: AcceptSecurityContext error, data 532, v3839^@]
    

Environment

  • Red Hat JBoss SOA Platform
  • Red Hat JBoss Enterprise Application Platform (EAP)
  • Red Hat Single Sign-On (RH-SSO)
  • Tomcat
  • LDAPSearch
  • Microsoft Active Directory (AD) or Lightweight Directory Access Protocol (LDAP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In