Check that your Directory Server instances are synchronized.
Run the following command on ds1:
# /opt/SUNWdsee/ds6/bin/insync -D "cn=Directory Manager" -s ds2:389
When prompted, type the directory-manager-password.
The response should resemble the following:
Replica DN Consumer Supplier Delay dc=pstest,dc=com ds1:389 -1 *CSN has not been intialized. No changes received. |
Add an entry to the Directory Server instance on ds1.
# ldapmodify -h ds1 -p 389 -D "cn=Directory Manager" <<EOF
dn: o=id1,dc=pstest,dc=com
changetype: add
objectClass: top
objectClass: organization
description: ds1
EOF
When prompted, type the directory-manager-password.
The response should resemble the following:
adding new entry o=id1,dc=pstest,dc=com |
Verify that the entry is replicated on ds2.
# ldapsearch -h ds2 -p 389 -D "cn=Directory Manager" -b o=id1,dc=pstest,dc=com objectClass=*
When prompted, type the directory-manager-password.
The response should resemble the following:
dn: o=id1,dc=pstest,dc=com objectClass: top objectClass: organization description: ds1 o: id1 version: 1 |
Add an entry to the Directory Server instance on ds2.
# ldapmodify -h ds2 -p 389 -D "cn=Directory Manager" <<EOF
dn: o=id2,dc=pstest,dc=com
changetype: add
objectClass: top
objectClass: organization
description: ds2
EOF
When prompted, type the directory-manager-password.
The response should resemble the following:
adding new entry o=id2,dc=pstest,dc=com
Verify that the entry is replicated on ds1.
# ldapsearch -h ds1 -p 389 -D "cn=Directory Manager" -b o=id2,dc=pstest,dc=com "objectClass=*"
When prompted, type the directory-manager-password.
The response should resemble the following:
dn: o=id2,dc=pstest,dc=com objectClass: top objectClass: organization description: ds2 o: id2 version: 1 |