Oracle® Internet Directory Administrator's Guide 10g (9.0.4) Part Number B12118-01 |
|
Oracle Directory Replication Administration, 5 of 5
To help you install and configure a multimaster replication group with fan-out, this section offers an example with three systems as described in Table 25-2.
Node | Host Name | Port |
---|---|---|
Node1 |
mycompany1.com |
3000 |
Node2 |
mycompany2.com |
4000 |
Node3 |
mycompany3.com |
5000 |
In this example, the user requirements are:
cn=private users, cn=mycompany
is to be excluded from this replication.
ou=Americas,cn=mycompany
on node3 is to be partially synchronized from Node2 so that only changes made under ou=Americas, cn=mycompany
on Node2 are replicated to Node3. The following are to be excluded from this replication:
To meet the first requirement in this example, we set up a multimaster replication group for Node1 and Node2. To meet the second, we set up a partial replica for Node2 and Node3.
This section contains these topics:
To set up the multimaster replication group for Node1 and Node2, follow Tasks 1 through 5 in the section "Installing and Configuring a Multimaster Replication Group".
In the replication agreement between Node1 and Node2, specify the value for the orclExcludedNamingcontexts
attribute as cn=private users,cn=mycompany
. To do this:
mod.ldif
as follows:
dn: orclAgreementID=000001,cn=replication configuration Changetype:modify Replace: orclExcludedNamingcontexts orclExcludedNamingcontexts: cn=private users,cn=mycompany
orclExcludedNamingcontexts
attribute at both Node1 and Node2. To do this, enter:
ldapmodify -D "cn=orcladmin" -w administrator_password -h mycompany1.com -p 3000 -f mod.ldif ldapmodify -D "cn=orcladmin" -w administrator_password -h mycompany2.com -p 4000 -f mod.ldif
To do this, follow the instructions in "Task 6: Start the Replication Servers on All Nodes in the DRG".
To do this, follow the instructions in "Task 7: Test Directory Replication".
If you want to use the bootstrap capability of partial replication, then follow Tasks 1 through 3 in "Configuring an LDAP-Based Replica by Using Automatic Bootstrapping".
If you want to configure the replica by using the ldifwrite tool, then follow Tasks 1 through 7 in "Configuring an LDAP-Based Replica by Using the ldifwrite Tool".
Identify Node2 as the supplier and Node3 as the consumer.
To do this:
cn=oraclecontext
naming context is replicated by default. You can choose not to replicate it by deleting it at both the supplier and the consumer.
ldapdelete -D "cn=orcladmin" -w administrator_password -h mycompany2.com -p 4000 "cn=includednamingcontext000001,cn=replication namecontext,orclagreementid=000002,orclreplicaid==<node2_replica_ id>,cn=replication configuration" ldapdelete -D "cn=orcladmin" -w administrator_password -h mycompany3.com -p 5000 "cn=includednamingcontext000001,cn=replication namecontext,orclagreementid=000002,orclreplicaid==<node2_replica_ id>,cn=replication configuration"
To replicate the naming context ou=Americas,cn=mycompany
, and to exclude from replication the naming context cn=customer profile, ou=Americas, cn=mycompany
and the attribute userpassword
, create a naming context object as follows:
mod.ldif
as follows:
dn: cn=includednamingcontext000002,cn=replication namecontext,orclagreementid=000002,orclreplicaid=node2_replica_ id,cn=replication configuration orclincludednamingcontexts: ou=Americas,cn=mycompany orclexcludednamingcontexts: cn=customer profile, ou=Americas, cn=mycompany orclexcludedattributes: userpassword objectclass: top objectclass: orclreplnamectxconfig
ldapadd -D "cn=orcladmin" -w administrator_password -h mycompany2.com -p 4000 -f mod.ldif ldapadd -D "cn=orcladmin" -w administrator_password -h mycompany3.com -p 5000 -f mod.ldif
If you decide to use the automatic bootstrap capability of partial replication, then do the following:
dn: orclreplicaid=<node2's replica id>,cn=replication configuration changtype: modify replace: orclreplicastate orclreplicastate: 0
orclreplicastate
attribute at both Node2 and Node3.
ldapmodify -D "cn=orcladmin" -w administrator_password -h mycompany2.com -p 4000 -f mod.ldif ldapmodify -D "cn=orcladmin" -w administrator_password -h mycompany3.com -p 5000 -f mod.ldif
To do this, follow the instructions in "Task 9: Start the Directory Replication Server on the Consumer Replica".
|
![]() Copyright © 1999, 2003 Oracle Corporation. All Rights Reserved. |
|