LDAP - Slow search performance when adding an external user from LDAP to a Safe

LDAP - Slow search performance when adding an external user from LDAP to a Safe

113
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 13:03 PM


Symptom


When adding an external user from LDAP to a safe, the search is very slow.
After enabling LDAP debug level in Vault as per this KB Article, the following error is seen in the Vault trace file:
Failed to connect to host, Reason: Failed to perform customized function ProcessLevelPreConnect. Code(13, -1) (13)


Environment


10.5;10.10;11.5;11.6;11.7;12.0;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Privilege Cloud Web Portal;Vault PAM

Cause


The above error message indicates a problem with host name resolving.

Under the LDAP Integration setting , i.e. PVWA > Options page > LDAP > Directories > choose the relevant Directory, if "SupportReferralsChasing" parameter is set to "Yes", name resolution attempts will be generated for referrals.


Resolution


If referrals support is not required for the directory in use, then set "SupportReferralsChasing" to "No".

If referrals support is necessary, update the hosts file as instructed in this KB Article .


Additional Information


Details

SYMPTOM:
When adding an external user from LDAP to a safe, the search is very slow.
After setting "DebugLevel=PE(1),PERF(1),LDAP(14,15)", the following is seen in the Vault trace files:
"Failed to connect to host, Reason: Failed to perform customized function ProcessLevelPreConnect. Code(13, -1) (13)"

PROBLEM:
This error message indicates a problem with host name resolving. For each such error you can go back in the trace and see which host name is problematic. For example: DomainDnsZones.MyCompany.corpĀ 
In the
LDAPDirectory.ini file, "SupportReferralsChasing" is set to "yes" which generates name resolution attempts for referrals.

SOLUTION:
If referrals support is not needed for the directory in use then - set "SupportReferralsChasing=no" and restart the Vault for the change to take effect.
If referrals support is necessary - correct the host name resolving issue within the organization's network configuration.

On Vault v6.0 and above installed Windows 2008 R2 BaseOperating system make sure that DNS Client service is running and startsautomatically.




Actions
  • Print
  • Copy Link

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