Vault - LDAP connection fails with code 21,49 visible in ldapverify

Vault - LDAP connection fails with code 21,49 visible in ldapverify

141
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:01 PM


Symptom


Users are unable to log into LDAP. The ITAlog may show errors such as the following:

 Failed to connect to LDAP host "<host>" with user "<binduser>". Code(21, 49) (21)

Running CAvaultmanager.exe ldapverify from the /server/ folder on the vault returns a similar error

 

 



Environment


10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;20.7;21.1;21.2 Vault all versions

Cause


Code 21,49 Indicates an Active Directory (AD) AcceptSecurityContext error, which is returned when the username or user DN is invalid, or the username is valid but the combination of password and user credential is invalid. This is the AD equivalent of LDAP error code 49.

Resolution


-Reset the bind account's password
-Ensure the bind account is not locked in AD
-In administration -> LDAP configuration -> hosts, ensure that the bind account is listed with the correct username and DN
-Ensure the bind account object in the vaultinternal safe has the right username



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001ClVCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail