How to Reconcile a Domain Admin Account Without Domain Admin Membership for the Reconcile Account
Objective
Environment
10.5;10.10;11.5;11.6;11.7;12.0;12.2;12.6;13.0;14.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
Procedure
Accounts that are members of the "Domain Admin" group, along with a pre-defined list of other groups, are considered protected accounts and have additional pre-configured controls. One of these controls is not inheriting their ACL from their location in the domain but from the ACL of an object called "AdminSDHolder" located in the System container. Every 60 mins a process called SDPROP is run by the PDCE to ensure that inheritance of the local ACL is disabled on all protected accounts and those account ACLs are updated to match the ACL of AdminSDHolder.
To get a list of all protected accounts you can run the following command in PowerShell:
Get-ADObject -LDAPFilter "(adminCount=1)"
Note: When an account is added to a protected group SDPROP updates the attribute "adminCount" to 1, however when an account is removed from all protected groups SDPROP does NOT remove adminCount or update its value.
If this ability is not granted, the CPM will return an error of 5 with a return code of 2121 when attempting to reconcile accounts.
For more information, please see the page from Microsoft below.
Network access - Restrict clients allowed to make remote calls to SAM
The full list of permissions possibly required by a Reconcile Account include the following.
- Reset Password
- Change security information
- Read and Write to Account Restrictions
- Read and Write to LockoutTime
Below is an example of using dsacls.exe to grant "Reset Password" permissions:
Domain: lab.local
Reconcile account: PGPassMgrs group.
dsacls.exe CN=AdminSDHolder,CN=System,DC=lab,DC=local /G lab\PGPassMgrs:CA;"Reset Password"
Once the command is run, you must wait for the SDPROP process to apply the updated AdminSDHolder ACL to all protected accounts. This process is started, by default, every 60 minutes.
After the ACL has been propagated, your Reconcile account will be able to reconcile Domain Admin accounts as well as other accounts in Protected Groups.
---------------------------------------------------------------------------------------------------------------
If the platform is configured with "UnlockUserOnReconcile" set to "Yes" the ability to change security information and read and write to "Account Restrictions" and "LockOuttime" is also required.
Domain: lab.local
Reconcile account: PGPassMgrs group
dsacls.exe CN=AdminSDHolder,CN=System,DC=lab,DC=local /G lab\PGPassMgrs:WD
dsacls.exe CN=AdminSDHolder,CN=System,DC=lab,DC=local /G lab\PGPassMgrs:WPRP;"LockoutTime"
dsacls.exe CN=AdminSDHolder,CN=System,DC=lab,DC=local /G lab\PGPassMgrs:WPRP;"account restrictions"
For a list of the Protected Accounts and Groups in Active Directory by version and more information about protected groups, please see the URLs below.
Appendix C - Protected Accounts and Groups in Active Directory | Microsoft Learn
Protected Users Security Group | Microsoft Learn
Note: These instructions show how to grant a reconcile account or group the ability to manage accounts that are members of protected groups. These instructions do not show how to grant the reconcile account the ability to manage accounts that are not members of protected groups. Permissions to reconcile accounts not in protected groups will need to be granted at the domain, OU, and/or user object level either directly to the account or via a group the account is a member of.
Additional Information
Details
Q:Reset Password
Domain: ca.lab
New Group for Password Reset of Protected Groups: PGPassMgrs
Reconcile account is a member of PGPassMgrs
dsacls.exe CN=AdminSDHolder,CN=System,DC=ca,DC=lab /G CA\PGPassMgrs:CA;"Reset Password"
The above grants Reset Password permissions to CA\PGPassMgrs on all accounts that will receive the AdminSDHolder template.
Once the command is run, you must wait for the SDPROP process to apply the template. This process is started, by default, every 60 mintues.
After the permissions have been propagated, your Reconcile account will be able to reconcile Domain Admin accounts as well as other accounts in Protected Groups. It will not, however, have all of the other privileges granted to a standard domain admin account.
Read Property, LockoutTimeWrite Property, LockoutTime
Modify PermissionsRead Property, account restrictionsWrite Property, account restrictions
https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/appendix-c--protected-accounts-and-groups-in-active-directory