PingDirectory

Testing proxy transformations

You can test the proxy transformation service by imitating example client requests to search and modify users.

About this task

After setting up the deployment scenario, the PingDirectoryProxy server will respond to requests to the dc=example,dc=com and o=sample base distinguished names (DNs).

Steps

  1. To view a Sample Corporation entry, run ldapsearch.

    Example:

    The following example fetches the user with sampleID=scase under the ou=east,o=sample base DN.

    root@proxy-east-01: bin/ldapsearch --bindDN "cn=directory manager" \
    --bindPassword password --baseDN "ou=east,o=sample" "(sampleID=scase)"

    Result:

    dn: sampleID=scase,ou=People,ou=east,o=sample
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    objectClass: exampleAccount
    objectClass: top
    description: A customer account migrated from Sample merger
    sampleID: scase
    userPassword: {SSHA}A5O4RrQHWXc2Ii3btD4exGdP0TVW9VL3CR3ZXA==
    exAccountNumber: 234098
    givenName: Sterling
    cn: Sterling Case
    sn: Case
    telephoneNumber: +1 804 094 3356
    street: 00468 Second Street
    mail: sterlingcase@maildomain.com
    l: Arlington
    st: VA
    sampleRegion: east
    sampleLinkedAccounts: sampleID=jcase,ou=People,ou=east,o=sample
  2. Modify the sampleRegion value by changing it to west.

    Example:

    To modify the value, create an ldapmodify input file, called scase-mod.ldif, with the following contents.

    dn: sampleID=scase,ou=People,ou=east,o=sample
    changetype: modify
    replace: sampleRegion
    sampleRegion: west
  3. Use the file as an argument in the ldapmodify command.

    Example:

    root@proxy-east-01: bin/ldapmodify --bindDN "cn=Directory Manager" \
    --bindPassword password --filename scase-mod.ldif

    Result:

    Processing MODIFY request for sampleID=scase,ou=People, ou=east,o=sample
    MODIFY operation successful for DN sampleID=scase,ou=People, ou=east,o=sample
  4. Search for the scase sampleRegion value under o=sample

    Example:

    root@proxy-east-01: bin/ldapsearch --bindDN "cn=directory manager" \
    --bindPassword password --baseDN "o=sample"  "(sampleID=scase)" \
    sampleRegion

    Result:

    dn: sampleID=scase,ou=People,ou=east,o=sample
    sampleRegion: west
  5. To search for scase, use uid instead of sampleID, under the dc=example,dc=com base DN.

    Example:

    You can see the Example.com schema version of the entry in the following sample.

    root@proxy-east-01: bin/ldapsearch --bindDN "cn=directory manager" \
    --bindPassword password --baseDN "dc=example,dc=com"  "(uid=scase)"

    Result:

    dn: uid=scase,ou=People,dc=example,dc=com
    objectClass: person
    objectClass: exampleAccount
    objectClass: inetOrgPerson
    objectClass: organizationalPerson
    objectClass: top
    description: A customer account migrated from Sample merger
    uid: scase
    userPassword: {SSHA}A5O4RrQHWXc2Ii3btD4exGdP0TVW9VL3CR3ZXA==
    exAccountNumber: 234098
    givenName: Sterling
    cn: Sterling Case
    sn: Case
    telephoneNumber: +1 804 094 3356
    street: 00468 Second Street
    mail: sterlingcase@maildomain.com
    l: Arlington
    st: VA
    exSampleRegion: west
    exSampleLinkedAccounts: uid=jcase,ou=People,dc=example,dc=com