Auto-detection error CACPM605E Error retrieving domain trusts for domain <domain>. Domain users will not be processed by Auto-detection (error: CACPM604E Error retrieving domain trusts with account
Symptom
In the pm.log, auto-detection logs an error that says the following:
CACPM605E Error retrieving domain trusts for domain <domain>. Domain users will not be processed by Auto-detection (error: CACPM604E Error retrieving domain trusts with account...)
Environment
11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.6;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
Cause
This is caused by a misconfigured ADLDAPConnectionObject in the auto-detection process.
Resolution
There are two separate objects that need to be configured in an Auto-Detection process.
The ADLDAPConnectionObject is used to query LDAP for a list of member machines in the domain. This is normally a standard account that requires no elevated privileges. Since it is doing a query to LDAP, it must bind to a specific address.
The ADMachineConnectionObject is used to log into each member machine (retrieved from said LDAP query) to scan for usages. It logs into the machine as DOMAIN\Username (NTLM).
If the ADLDAPConnectionObject is not configured properly, it will not be able to retrieve the machines from the domain. Hence:
1) The "address" object for the ADLDAPConnectionObject (configured in Accounts) should be set to a valid address of a primary or backup domain controller (or generally, the address of a machine from which the account can successfully query LDAP).
2) The "address" object for the ADMachineConnectionAccountObject (configured in Accounts) should be set to the actual BIOS domain name.
The same account can be used for both purposes. However, this is not a recommended practice because this violates the concept of "least privilege", i.e. the ADLDAPConnectionObject does not need any elevated privilege to do a query.
Note: An incorrect value in the ADBaseContext will cause search to fail, so it is recommended to validate it when configuring auto-detection.
Additional Information
Details
SYMPTOM:
In the pm.log, auto-detection logs an error that says the following:
CACPM605E Error retrieving domain trusts for domain <domain>. Domain users will not be processed by Auto-detection (error: CACPM604E Error retrieving domain trusts with account...)
PROBLEM:
This is caused by a misconfigured ADLDAPConnectionObject in the auto-detection process.
SOLUTION:
There are two separate objects that need to be configured in an Auto-Detection process.
The ADLDAPConnectionObject is used to query LDAP for a list of member machines in the domain. This is normally a standard account that requires no elevated privileges. Since it is doing a query to LDAP, it must bind to a specific address.
The ADMachineConnectionObject is used to log into each member machine (retrieved from said LDAP query) to scan for usages. It logs into the machine as DOMAIN\Username (NTLM).
If the ADLDAPConnectionObject is not configured properly, it will not be able to retrieve the machines from the domain. Hence:
1) The "address" object for the ADLDAPConnectionObject (configured in Accounts) should be set to a valid address of a primary or backup domain controller (or generally, the address of a machine from which the account can successfully query LDAP).
2) The "address" object for the ADMachineConnectionAccountObject (configured in Accounts) should be set to the actual BIOS domain name.
The same account can be used for both purposes. However, this is not a recommended practice because this violates the concept of "least privilege", i.e. the ADLDAPConnectionObject does not need any elevated privilege to do a query.
Note: An incorrect value in the ADBaseContext will cause search to fail, so it is recommended to validate it when configuring auto-detection.