Auto Detection - How does the CPM auto detect computers that have been rebuilt in Active Directory?
Question
Environment
9.10;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Answer
After a password has been created in the Vault, its properties are updated each time the CPM searches the external directory based on the Auto Detect policy. The unique identifier of the computer record in the Directory (SID) is used to produce the machine name. When a computer is rebuilt/reinstalled, even if a computer has the same machine name, a new password object matching the auto-detection rule will be generated for the computer with the new SID.
If a computer has been deleted from the external directory, the password will automatically be deleted from the Password Vault the next time the CPM searches the external directory. Disabled machines will not be added automatically and their passwords in the Vault will be removed if they already exist.
This is controlled by the ADUserAccountControlField To archive passwords in a different folder that are no longer detected on the Active Directory, specify the following parameter: > ADArchiveFolder – The name of the folder where archived passwords will be stored.
To delete passwords that are no longer detected on the Active Directory, specify the following parameter: > ADDeleteOnArchive – Whether or not password objects will be deleted. The default value is ‘Yes’, which deletes passwords.
Additional Information
Details
Q:
How does the CPM auto detect computers that have been rebuilt in Active Directory? If a server is rebuilt and given a new SID, what is the flow for auto detection\password resets? Does the old SID object get archived? Since the server has a new SID, does it get auto detected again based on the policy configuration?
A:
After a password has been created in the Vault, its properties are updated each time the CPM searches the external directory based on the Auto Detect policy. The unique identifier of the computer record in the Directory (SID) is used to produce the machine name. When a computer is rebuilt/reinstalled, even if a computer has the same machine name, a new password object matching the auto-detection rule will be generated for the computer with the new SID.
If a computer has been deleted from the external directory, the password will automatically be deleted from the Password Vault the next time the CPM searches the external directory. Disabled machines will not be added automatically and their passwords in the Vault will be removed if they already exist. This is controlled by the ADUserAccountControlField
To archive passwords in a different folder that are no longer detected on the Active Directory, specify the following parameter:
> ADArchiveFolder – The name of the folder where archived passwords will be stored.
To delete passwords that are no longer detected on the Active Directory, specify the following parameter:
> ADDeleteOnArchive – Whether or not password objects will be deleted. The default value is ‘Yes’, which deletes passwords.