Deployment Example: Single Sign-On, Load Balancing and Failover Using Sun OpenSSO Enterprise 8.0

ProcedureTo Verify Successful User Data Replication

Before You Begin

This procedure assumes you have just completed To Initialize the Replication Agreements and are still logged into the ds–1 host machine as a root user.

  1. Run ldapmodify on the ds-1 host machine to create a new directory entry.

    # cd /var/opt/mps/serverroot/dsrk6/bin
    # ./ldapmodify -a -h -p 1489 
     -D cn=admin,cn=Administrators,cn=config -w dsmanager
    dn: ou=People,dc=company,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=company,dc=com
    Hit Control C to terminate the command.

    This step creates a new organizational unit on Directory Server 1.

  2. After the entry is created, log in to the ds–2 host machine as a root user.

  3. Run ldapsearch on Directory Server 2 to verify that the directory entry was successfully replicated.

    # cd /var/opt/mps/serverroot/dsrk6/bin
    # ./ldapsearch -b "dc=company,dc=com" -p 1489 
    -D "cn=Directory Manager" -w dsmanager 
    version: 1
    dn: ou=People,dc=company,dc=com
    objectClass: top
    objectClass: organizationalUnit
    ou: People
    description Container for user entries
  4. Now run ldapdelete on Directory Server 2 to delete the entry just created.

    # ./ldapdelete -h -p 1489 
     -D "cn=Directory Manager" -w dsmanager 
  5. Now, as a root user on Directory Server 1, run ldapsearch to verify that the entry was deleted.

    # ./ldapsearch -b "dc=company,dc=com" 
    -p 1489 -D "cn=Directory Manager" -w dsmanager 

    The search will return no results as the delete was successfully replicated.

  6. Log out of both Directory Server host machines.