Manually Replicating Directory Partitions

From SambaWiki
Revision as of 16:01, 30 March 2017 by Mmuehlfeld (talk | contribs) (Added introduction and section titles)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Introduction

In some situations, it is necessary to manually force a replication between two domain controllers (DC). You need to run the replication for every Active Directory (AD) partition separately.



Replicating Each Directory Partition Manually

To replicate the AD partitions from the domain controller DC1 to DC2, run:

# samba-tool drs replicate DC2 DC1 dc=samdom,dc=example,dc=com
Replicate from DC1 to DC2 was successful.

# samba-tool drs replicate DC2 DC1 DC=ForestDnsZones,DC=samdom,DC=example,DC=com
Replicate from DC1 to DC2 was successful.

# samba-tool drs replicate DC2 DC1 CN=Configuration,DC=samdom,DC=example,DC=com
Replicate from DC1 to DC2 was successful.

# samba-tool drs replicate DC2 DC1 DC=DomainDnsZones,DC=samdom,DC=example,DC=com
Replicate from DC1 to DC2 was successful.

# samba-tool drs replicate DC2 DC1 CN=Schema,CN=Configuration,DC=samdom,DC=example,DC=com
Replicate from DC1 to DC2 was successful.

To resynchronise all objects between two domain controllers, pass the --full-sync option to the command.