Vault - LDAP Sync process encounters the error "ERR ITATS246E The DN specified for User XXX is already in use by User YYY"
Symptom
LDAP Sync process is producing error: "ERR ITATS246E The DN specified for User XXX is already in use by User YYY" which results in the termination of the LDAP Sync process
Environment
12.2;12.6;13.0;13.2;14.0;14.2;14.4;14.6 Privileged Access Manager (PAM, self-hosted) Vault Server Vault Server Ldap integration
Cause
When error "ERR ITATS246E The DN specified for User XXX is already in use by User YYY" occurs it causes the LDAP Sync process to exit its loop and will not run until the vault is restarted. The users listed in the error message have a DN related issue which causes the error.
Resolution
To resolve the error "ERR ITATS246E The DN specified for User XXX is already in use by User YYY",
1. Delete user XXX
2. If user XXX should exist in (ex. has not been removed from AD), then login with XXX and confirm proper DN is populated in the correct tab.
2a. If bad DN is repopulated upon user recreation - address the issue with disabling "ldap certs config" in PVWA
3. Delete user YYY
4. If user YYY should exist in (ex. has not been removed from AD), then login with YYY and confirm proper DN is populated in the correct tab.
4a. If bad DN is repopulated upon user recreation - address the issue with disabling "ldap certs config" in PVWA
5. Restart the vault to restart the LDAP Sync process and wait for the LDAP Sync process to execute at its scheduled time. Check the ITAlog for any errors.