HP-UX Directory Server 8.1 administrator guide
Table 8-2 Replica attributes (continued)
ValuesDescriptionObject class or attribute
1 to 65534, inclusive, for suppliers, or
65535 for hubs and consumers.
The ID of the replica.
nsds5replicaid: number
2 for consumers and hubs (read-only
replicas)
3 for both single and multi-master
suppliers (read-write replicas)
Sets the type of replica, either
read-only or read-write.
nsds5replicatype: number
0 means the replica does not write to
the changelog; this is the default for
consumers.
1 means the relics writes to the
changelog; this is the default for hubs
and suppliers.
Sets whether the replica writes to the
changelog.
nsds5flags: number
0 (keep forever) to 2147483647 (the
maximum 32-bit integer); the default
value is 604800, one week.
Sets the period of time in seconds to
wait before purging the entries from
the changelog. This is not required
for consumers, but is required for
hubs and suppliers.
nsds5ReplicaPurgeDelay:
number
Any DN; the recommended DN is
cn=Replication
Manager,cn=config.
NOTE:
For security, HP strongly recommends
that you do not use the Directory
Manager as the supplier bind DN.
The supplier bind DN used by the
supplier to bind to the consumer. This
is required for consumers, hubs, and
multi-master suppliers, but not for
single-master suppliers.
nsds5ReplicaBindDN: DN
Any LDAP URL. For example:
nsds5replicareferral:
ldap://supplier1.example.com:389
Optional. An LDAP URL that a
consumer or hub to which a
consumer or hub can forward update
requests. By default, update requests
are sent to the masters for the
consumer; use this parameter to
override the default.
nsds5replicareferral: URL
8.7.2 Configuring consumers from the command line
On the consumer host, such as consumer1.example.com, create the replica entry. This entry
identifies the database and suffix as participating in replication and sets what kind of replica the
database is. There are four key attributes:
• nsds5replicaroot sets the subtree (suffix) that is being replicated.
• nsds5replicatype sets what kind of replica this database is. For a consumer, this value
must be 2.
• nsds5ReplicaBindDN give the DN as which the supplier will bind to the consumer to
make changes.
• nsds5flags sets whether the replica writes to the changelog. For a consumer, this value
must be 0.
This ldapmodify creates a new consumer replica on the consumer1.example.com host for
the dc=example,dc=com subtree.
ldapmodify -D "cn=directory manager" -w secret -p 389 -h
consumer1.example.com -v
dn: cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config
changetype: add
objectclass: top
366 Managing replication