Configuring Consumers from the Command

Object Class or Attribute

 

Description

 

 

Values

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

bind DN.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

nsds5replicareferral: URL

 

Optional. An LDAP URL

 

 

Any LDAP URL. For example:

 

 

 

 

which a consumer or hub to

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

which a consumer or hub can

 

 

nsds5replicareferral:

 

 

 

forward update requests. By

 

 

ldap://supplier1.example.com:389

 

 

 

default, update requests are

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

sent to the masters for the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

consumer; use this parameter

 

 

 

 

 

 

 

 

to override the default.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 8.2. Replica Attributes

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) which 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 -v -h consumer1.example.com -p 389 -D "cn=directory manager" -w password

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

315

Page 335
Image 335
HP UX Red Hat Direry Server Software manual Configuring Consumers from the Command Line, Replica Attributes