HP-UX Directory Server 8.1 administrator guide

objectclass: nsds5replica
objectclass: extensibleObject
cn: replica
nsds5replicaroot: dc=example,dc=com
nsds5replicatype: 2
nsds5ReplicaBindDN: cn=replication manager,cn=config
nsds5flags: 0
The replica entry attributes are described in Table 8-2 “Replica attributes”. These attributes are
described in more detail in the HP-UX Directory Server configuration, command, and file reference.
8.7.3 Configuring hubs from the command line
Hubs are intermediate read-only replicas that receive updates from suppliers and pass them on
to other consumers. These are part of the cascading replication scenario, described in “Cascading
replication”. Creating the hub has two steps: first, creating the changelog database because the
hub keeps a record of changes sent by the supplier, and second, configuring the hub replica.
1. On the hub server, such as hub1.example.com, use ldapmodify to create the changelog
entry.
ldapmodify -D "cn=directory manager" -w secret -p 389
-h hub1.example.com -v
dn: cn=changelog5,cn=config
changetype: add
objectclass: top
objectclass: extensibleObject
cn: changelog5
nsslapd-changelogdir: /var/opt/dirsrv/slapd-instance_name/changelogdb
There is one important attribute with the changelog, nsslapd-changelogdir, which sets
the directory where the changelog is kept. The default changelog file location for HP-UX
Directory Server is /var/opt/dirsrv/slapd-instance_name/changelogdb.
The changelog entry attributes are described in Table 8-1 “Changelog attributes”. These
attributes are described in more detail in the HP-UX Directory Server configuration, command,
and file reference.
2. On the hub host, create the replica entry. This ldapmodify command creates a new hub
replica on the hub1.example.com host for the dc=example,dc=com subtree.
ldapmodify -D "cn=directory manager" -w secret -p 389 -h hub1.example.com -v
dn: cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config
changetype: add
objectclass: top
objectclass: nsds5replica
objectclass: extensibleObject
cn: replica
nsds5replicaroot: dc=example,dc=com
nsds5replicatype: 2
nsds5ReplicaPurgeDelay: 604800
nsds5ReplicaBindDN: cn=replication manager,cn=config
nsds5flags: 1
This entry identifies the database and suffix as participating in replication and sets what
kind of replica the database is. There are five key attributes:
nsds5replicaroot sets the subtree (suffix) that is being replicated.
nsds5replicatype sets what kind of replica this database is. For a hub, this value
must be 2.
nsds5ReplicaPurgeDelay sets how long the hub holds onto its change record before
deleting it. The default value is 604800 (one week).
8.7 Configuring replication from the command line 367