How do I configure Directory Replication?
August 5, 1999
A. Directory Replication is the process of replicating directories and their contents from one machine to one or more machines. The only machines that can be export servers are Windows NT Server machines. Import servers can be an NT server, NT workstation or OS/2 LAN Manager machine.
The main usage for Directory Replication is for the export of login scripts from the PDC to the BDC(s), where the PDC is the export server and the BDC the import server. This means when you login the BDC can also supply the login script as well as the authentication of the user, leaving the PDC free. This is the case that will be explained below.
You must add an account that will be used for the Directory Replication (i.e. Repuser). You cannot use the name Replicator as there is a user group of this name. Start User Manager for Domains (Start - Programs - Administrative Programs - User Manager for Domains)
From the User menu, select New User.
Name the user RepUser, with a full name and description. Set the password.
Unselect "User must change password at next logon" and select "Password never expires"
Click Groups and add to "Backup Operators" group
Click Hours and ensure the user has 24hours for all days
Close User Manager for Domains
The user has now been added to the domain, and the export server now needs to be configured
Logon to the Export Server machine, the Primary Domain Controller as an Administrator
From Control Panel click on Services
Select "Directory Replication" and click Startup. Select Automatic, and for "Log on as" click the "..." button and select the Repuser and click Add. Next type in the password for the Repuser that you set.
Click OK and a message "User Repuser has been granted the Logon as a Service right and added to the local Replicator local group" will be displayed.
Close the Services Control Panel applet
Double click the "Server" Control Panel applet and click the Replication button
In the export by default it will show %systemroot%/system32/Repl/Export which is where login scripts should be held. Clear any entries in the Export or Import machine list.
Make sure "Export Directories" and "Import Directories" are checked, and close the Replication applet.
From the Services Control Panel Applet click on "Directory Replication" and click Start
Logoff of the PDC and logon to the BDC (or whatever the import machine)
Start the Services Control Panel Applet and as before enable the Replication Service to automatically start at reboot but do not manually start it now.
Start the Server Control Panel Applet and select Replication
Select "Import Directories" and check the list of machines to import from is blank
Click OK and it will start the "Directory Replication" service
You may be wondering why you should keep your login scripts in the export area, when your NETLOGON share is import/scripts, well it will actually replicate to itself from the export/scripts to import/scripts so they will be the same.
Some people have problems with replication and adding Repuser to the Domain Administrators group may fix the problem. Also only directories directly under the /export directory will be replicated, files will not be, they have to be in a subdirectory of export.
If you have problems you may also need to add an entry to the registry to allow the replicator service to access the remote registries. Open hkey_local_machinesystemcurrentcontrolsetcontrolsecurepipeserverswinregallowedpaths and add "systemcurrentcontrolsetservicesreplicator"
About the Author
You May Also Like