8.14. Replicating o=NetscapeRoot for Administration Server Failover

8.14. Replicating o=NetscapeRoot for Administration Server Failover

Replication usually occurs between Directory Server user databases to distribute directory data, but it is also possible to use replication to provide failover support for the Administration Server database, o=NetscapeRoot.

  1. Install and configure the first Directory Server instance.

    The setup-ds-admin.pl script has an option, -f, which references an inf. The inf can be used to import LDIF files through the ConfigFile parameter, and the LDIF files can create databases, suffixes, and replication entries. (The inf file is described in more detail in the Directory Server Installation Guide.)

    /usr/sbin/setup-ds-admin.pl -f /tmp/server1.inf
    

    To configure the o=NetscapeRoot database on server1 as a multi-master supplier replica, use the following statements in the inf file:

    [slapd]
    ...
    ConfigFile = repluser.ldif example supplier bind DN entry
    ConfigFile = changelog.ldif example changelog entry
    ConfigFile = replica.ldif example replica entry
    ConfigFile = replagreement.ldif example replication agreement entry
    ...
    
  2. Install and configure the second Directory Server instance. For the second server, server2.example.com, use the setup-ds.pl command, which installs a Directory Server instance without installing a local Administration Server.

    /usr/sbin/setup-ds.pl -f /tmp/server2.inf
    

    With server2, use the inf file to create and configure a o=NetscapeRoot database on server2 as a multi-master supplier replica:

    [slapd]
    ...
    ConfigFile = netscaperootdb.ldif example suffix entry
    ConfigFile = repluser.ldif example supplier bind DN entry
    ConfigFile = changelog.ldif example changelog entry
    ConfigFile = replica.ldif example replica entry
    ConfigFile = replagreement.ldif example replication agreement entry
    ...
    
  3. Initialize the o=NetscapeRoot database on server2 from server1. Add the nsds5replicarefresh attribute to the replication agreement on server1.

    ldapmodify -h supplier1.example.com -p 389 -D "cn=directory manager" -w password
    
    dn: cn=ExampleAgreement1,cn=replica,cn="o=NetscapeRoot",cn=mapping tree,cn=config
    changetype: modify
    replace: nsds5beginreplicarefresh
    nsds5beginreplicarefresh: start
    
  4. Run the register-ds-admin.pl to create a local Administration Server on server2 and switch the configuration directory for server2 to its own o=NetscapeRoot database from server1.

    /usr/sbin/register-ds-admin.pl
    
  5. Disable the PTA Plug-in on server2 so that it does not pass bind operations for the administrative users in its o=NetscapeRoot to server1.

    See Section 16.2, “Enabling and Disabling Plug-ins”.


Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.