LAB7: SYNCHRONIZING DOMAINS
AND REPLICATION
In this exercise, we will learn to synchronize the BDC and PDC of
the domain together. Windows NT server, by default, has a
synchronization time of 5 minutes. This means account changes to
the Domain accounts database is reflected to the BDC every 5
minutes.
- Ensure that the PDC and BDC are both running
- If you are logged on the BDC, then log off the BDC now
before proceeding
- Log on to the PDC as administrator
- Run User Manager for Domains
- Create a new user account, with the following properties
no password change at log on required
username = user2
- Perform the following steps immediately after creating
the user on the PDC
- Logon at BDC as user2
- Could you log on as this user at the BDC? [YES NO]
- As administrator on the PDC, start Server
manager
- Select the BDC in the list of servers, then Choose Computer->Synchronize
With Primary Domain Controller
- Choose Yes to send the changes in the domain
accounts database to the BDC. This will cause the
following dialog box to pop up
- Click Ok
- Try to log on at the BDC as user2
- Could you log on successfully? [YES NO]
- Perform the following at the PDC as administrator
Run User Manager for Domains
Select Policies->User Rights
Grant the right to allow Everyone to log on
locally
- Re-synchronize the domain to send the account changes to
BDC
- Try to log on at the BDC as user2
- Could you log on successfully? [YES NO]
DIRECTORY REPLICATION
In this exercise, we shall enable directory replication between
the PDC and the BDC of the domain. This will replicate the log on
scripts and the system policies in the domain.
- Log on to the PDC as administrator
- Run User Manager for Domains
- Create a user account for the replication service, using
the following details
username = replicate
all log on hours allowed
membership of Domain Backup Operators and Replicators
password never expires
the user must not change password at next log on is NOT
selected
- Once you have added the user, run the Services
Icon under Control Panel
- Configure the directory replicator service to start
automatically, and log on as the user account replicate
- In order to copy log on scripts and policy files [which
reside in the Netlogon share under the \<winnt_root>\system32\repl\import\scripts
sub-directory], the required files must be copied to the
export directory first.
- Copy the NTConfig.pol and logon1.bat files
from the import/scripts to the export/scripts
sub-directory.
- Start Server Manager
- Double click on the Primary Domain Controller and access
the Replication button of the properties box
- Specify the Export directory path and the Export
Computer
In this example, the name of the export computer, the
BDC for the domain, is HOUNDOG
- Click on OK, then Close Server Manager
- Log on to the BDC as administrator
- Run the Services Icon under Control Panel
- Configure the directory replicator service to start
automatically, and log on as the user account replicate
- Start Server Manager
- Double click on the Backup Domain Controller and access
the Replication button of the properties box
- Specify the Import directory path and the Import
Computer
- Click on OK, and Windows NT will attempt to start
the Replicator Service on each Domain Controller.
- On the PDC, use Server Manager to look at the Replication
details on the PDC. Choose manage and ensure that
the entire sub-directory tree is being exported, then
Click on OK
- On the PDC, use Server Manager to look at the Replication
details on the BDC. Choose manage and check
that the Status is OK [should be similar to that
shown below]
If the status is No Master, this indicates a problem with
the Export Computer. Try stopping the replicate service
on the PDC then restarting it. The status should change
to OK after a couple of minutes following the replicate
service restart on the PDC.
- Use NT Explorer to verify that the import/scripts
directory on the BDC contains the files NTConfig.pol
and Blast.cmd
- Previously, logging on to the BDC did not implement the
system policies or run the log on script. Test these
features out by logging on the BDC as user1
- Did the system policies and log on script execute? [YES
NO]
- Log off the BDC and also log off the PDC
Summary
The domain accounts database is replicated from the PDC to each
BDC in the domain. This occurs at a preset time interval [controlled
by a setting in the registry], and defaults to 5 minutes. Only
changes to the accounts database are sent to the BDCs.
The PDC holds the user accounts database for the domain, and
BDCs hold copies. Any changes to the domain accounts are
done on the PDC, then changes are forwarded to each BDC. Because
BDCs also are involved in validating user log on requests,
it is possible for the user account information to not be
available at the BDC when the user tries to log on.
Default rights at a server prevent ordinary users from logging
on. Servers and domain controllers provide resources across the
network, so users are prevented by default from logging on
locally. Permission to log on locally is granted to a few users
and groups.
If the PDC is to be taken down for maintenance or upgrading,
the BDC is promoted to PDC. This ensures that new accounts can be
added and changes to accounts are possible. If there is no PDC,
no changes to the accounts database is possible till the PDC is
restored.