Directory Services

Adding or Deleting an Application Directory Partition Replica

The first replica of an application directory partition is created on the domain controller that was bound to when create the application directory partition was created. Additional replicas can be created on any domain controller in the forest, not necessarily in the same domain as the initial domain controller. An application directory partition replica can only exist on a domain controller that is running Windows Server 2003 or later.

To add a replica for an application directory partition, perform the following steps

  1. Search the Partitions container for a crossRef object that has an nCName attribute value that is equal to the distinguished name of the application directory partition.
  2. Bind to the crossRef object with delegation enabled. This is required because the crossRef object can only be modified on the Domain-Naming FSMO role holder. With delegation enabled, the domain controller can contact the Domain-Naming FSMO role holder using the same credentials.
  3. Add the distinguished name of the nTDSDSA object for the domain controller that will host the new replica to the msDS-NC-Replica-Locations attribute of the crossRef object.

When the new msDS-NC-Replica-Locations attribute value is replicated to the new domain controller that will host a replica of the application directory partition, the KCC will be triggered to replicate the application directory partition to the target domain controller.

To remove a replica for an application directory partition, perform the same steps above to locate the crossRef object that represents the application directory partition and remove the value that cooresponds to the domain controller from the msDS-NC-Replica-Locations attribute of the crossRef object.

When the new msDS-NC-Replica-Locations attribute value is replicated to the domain controller that will no longer host a replica of the application directory partition, the KCC will be triggered to remove the replica of the application directory partition on the target domain controller.

If a domain controller that is hosting an application directory partition replica is removed or demoted, Active Directory will automatically remove the value corresponding to the domain controller from the msDS-NC-Replica-Locations attribute of all crossRef objects.