Add safe members in v10 GUI fails with "Failed to find user x in ldap mapping y" but succeed in legacy v9 GUI

Add safe members in v10 GUI fails with "Failed to find user x in ldap mapping y" but succeed in legacy v9 GUI

126
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 15:56 PM


Symptom


When you try and add a domain user as a member to a safe from the v10 GUI, you get the error pop-up"
"Error: Failed to find user x in ldap mapping y".
If you use the v9 GUI, the user is added successfully.

The vault trace logs in debug (LDAP(14,15)) show exception like in this example:
00005232 CALDAPConnection::GetObjectGroups() - Getting groups for DN "CN=John Doe,OU=Users,OU=sales,DC=HQ,DC=ACME,DC=LOCAL" on directory hq.acme.local by search method "byUserAD"
00005232 CALDAPConnection::Query() - Performing first time traditional search query (&(objectClass=group)(|(cn=John.D@acme.local))) with base context dc=acme,dc=local and search scope 2


You may also get error codes similar to the following:
00005232 Exception CALDAPServiceException occurred in class: class CALDAPConnection * __ptr64, File name: CALDAPConnection.cpp, Line number: 242. Reason is: Failed to get LDAP search next page Code: 19,10
00005232 Exception CALDAPServiceException occurred in class: class CALDAPConnection * __ptr64, File name: CALDAPConnection.cpp, Line number: 268. Reason is: Failed to perform LDAP search with filter "(&(objectClass=group)(|(cn=John.D@acme.local)))" and base context "dc=acme,dc=local" Code: 17,10
00005232 ITALD002E Failed to perform LDAP operation. (Reason: Error performing query "(&(objectClass=group)(|(cn=John.D@acme.local)))", Code: 36,10).


Environment


11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.8;12.6;13.0;13.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA

Cause


Note in the exception that the search is done for a user belonging to hq.acme.local but with the base context acme.local

This is because the LDAPDirectoryGroupsBaseContext field in the LDAP integration is incorrect.


Resolution


Make sure the LDAPDirectoryGroupsBaseContext field in the LDAP integration matches the domain were the groups are created.
You can find the parameter in PVWA, Administration\configuration options\LDAP integration, expand directories and select the domain.

Please note that the parameter LDAPDirectoryGroupsBaseContext is optional.
(LDAPDirectoryGroupsBaseContext: The base context that will be used for external directory queries only for groups. This parameter is optional.)


Actions
  • Print
  • Copy Link

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