As a root user, log in to the Directory Server 1 host machine.
Run ldapmodify to create a new directory entry.
# ldapmodify -a -h DirectoryServer-1.example.com -p 1389 -D cn=admin,cn=Administrators,cn=config -w d1rm4n4ger dn: ou=People,dc=example,dc=com objectclass: top objectclass: organizationalUnit ou: People description: Container for user entries Hit ENTER to indicate end of input. adding new entry ou=People,dc=example,dc=com Hit Control C to terminate the command. ^C |
This step creates a new organization unit on Directory Server 1.
As a root user, log in to the Director Server–2 host machine.
Run ldapsearch on Directory Server 2 to verify that the entry was successfully replicated.
# ldapsearch -b "dc=example,dc=com" -p 1389 -D "cn=Directory Manager" -w d1rm4n4ger "objectclass=organizationalUnit" version: 1 dn: ou=People,dc=example,dc=com objectClass: top objectClass: organizationalUnit ou: People description Container for user entries |
Run ldapdelete on Directory Server 2 to delete the entry.
# ldapdelete -h DirectoryServer-2.example.com -p 1389 -D "cn=Directory Manager" -w d1rm4n4ger "ou=People,dc=example,dc=com" |
Run ldapsearch on Directory Server 1 to verify that the entry was deleted.
# ldapsearch -b "dc=example,dc=com" -p 1389 -D "cn=Directory Manager" -w d1rm4n4ger "objectclass=organizationalUnit" |
If the delete was successfully replicated to Directory Server 1, the search will return no results.
Log out of the Directory Server host machines.