PVWA - Adding a directory mapping freezes with the error "EPVWA171E Ldap username is invalid"
Symptom
When trying to add a new directory mapping in: User Provisioning > LDAP Integration wizard in PVWA,
the form freezes upon entering the AD group name, with the below error:
ErrorCode: "CAWS00001E"
ErrorMessage: "LDAP query for group 'group-name' failed : EPVWA171E Ldap username is invalid"
The error can be seen in the browser's developer tools as shown below:
And will show up in PVWA logs.
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA 10.7 and above
Cause
The domain was not added via the new User Provisioning Wizard, rather it was previously added via the Administration > Configuration Options > Ldap Integration screen, manually.
In PVWA version 10.7 the new LDAP Integration wizard was released (enhanced in version 10.10), which allows administrators to add domains, and create basic group mappings via the new tab User Provisioning > LDAP Integration.
Previously, domains could only be added via the Administration > Configuration Options tab, under the Ldap Integration screen.
In many cases, a good way to tell if a domain was configured in the manual way, is that the "DomainName" field in the directory settings is empty.
Example:
For domains that were not added via the User Provisioning wizard, the directory mappings can only be managed/created via the PrivateArk client.
Resolution
Continue to manage directory mappings in the PrivateArk client.
Go to: Tools > Administrative Tools > Directory Mapping
Manage all directory mappings for the domain in this screen.
Please note
When manually creating the directory mapping in the PA client, do not use the "Browse" or "Test" buttons.
Tip: Use one of the existing directory mappings to mimic the settings, only change the AD group name and the User Template options-
Create a new directory mapping that applies to Users, then Click Add in the rules section-
1. Add the directory name, and the domain's root branch.
2. Add the AD group name in the Group Filter field. Click OK (do not Test or Browse the directory).
3. Continue to create the User Template, in order to choose the license type that will be consumed, the authentication method, and appropriate vault authorizations.
Example-