Incorrect LDAP credentials - error code 49

Problem


An application prints the following error while starting: LDAP: error code 49

Possible causes

  1. The LDAP credentials are wrong in the jndi.properties file because secrets.ldif has not been imported in LDAP after running setup.
  2.  The ADAM user account is disabled. This can be identified from the error:
  • LDAP: error code 49 - 8009030C: LdapErr: DSID-0C090336, comment: AcceptSecurityContext error, data 533, vece
  • A Ubisecure SSO application user object (e.g., cn=Server,ou=System,cn=Ubisecure,dc=localhost) has the msDS-UserAccountDisabled attribute set to TRUE

Solution

  1. Import ubisecure/ldap/secrets.ldif using the import script of your directory server. For detailed instructions, see Ubisecure SSO Installation and Upgrade manual.
    • After import run tomcat/update.cmd.

     2.  If the ADAM user account is disabled, change the msDS-UserAccountDisabled attribute value to FALSE