Active Directory target accounts in PAM are configured to a device with address ldap.example.com, which resolves to multiple domain controllers. PAM is sporadically failing to verify or rotate the credentials for Active Directory accounts, likely due to an issue with one of the domain controllers (DCs) in the environment. Is it possible to know which DC PAM was connecting to when the error occurred?
CA Privileged Access Manager (PAM) integrated with Active Directory for Credential Management.
This is possible if the DCs are configured with their own unique certificates, and the device address is a DNS load balancer or another type of load balancer that redirects the communication or lets it pass through rather than doing SSL bridging, so that PAM sees the individual DC certificate when it makes the LDAPS connection.
When the Tomcat Log Level is set to Info or higher on page Configuration > Diagnostics > Diagnostic Logs, PAM logs the LDAPS communication with the DCs. To start this communication, PAM retrieves the certificate, which is needed for a secure connection. In the Tomcat log, which can be downloaded as a text file from the Configuration > Diagnostics > Diagnostic Logs > Downloads page, a message similar to the following will be found at the time PAM connects to one of the DCs:
2023-05-17T21:50:42.621+0000 INFO [com.cloakware.cspm.server.plugin.targetmanager.WindowsDomainServiceTargetManager] com.cloakware.cspm.server.security.CSPMTrustManager.checkServerTrusted CSPMTrustManager.checkServerTrusted certificate:
-----BEGIN CERTIFICATE-----
ABCD.....WXYZ
-----END CERTIFICATE-----
If there is a "WindowsDomainServiceTargetManager" error a few lines afterwards, then PAM had an issue communicating with that domain controller.
Copy the certificate text, including the begin/end certificate lines, then paste it into a text editor such as Notepad and save it as a .cer file. On Windows hosts the default editor for .cer files is Crypt Shell Extensions. Open the file/certificate and it will show the server hostname. This is the DC which PAM was communicating with when the error occurred.
The tomcat log rotates 17 minutes past the hour, if the size exceeds 10MB at the time. If the log has rolled over after the problem was observed, and you cannot reproduce the problem within minutes, download the system logs (logs.bin) from the Configuration > Diagnostics > Diagnostic Logs > Downloads page using the Download button to the left of the "Past Days" label. Adjust the "Past Days" parameter to include the day the problem was observed. E.g. use Past Days = 1, if the problem occurred earlier in the day. Then contact PAM Support and have them review the system logs.