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
-
To view a Sample Corporation entry, run
ldapsearch.Example:
The following example fetches the user with
sampleID=scaseunder theou=east,o=samplebase 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 -
Modify the
sampleRegionvalue by changing it towest.Example:
To modify the value, create an
ldapmodifyinput file, calledscase-mod.ldif, with the following contents.dn: sampleID=scase,ou=People,ou=east,o=sample changetype: modify replace: sampleRegion sampleRegion: west
-
Use the file as an argument in the
ldapmodifycommand.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
-
Search for the
scasesampleRegionvalue undero=sampleExample:
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
-
To search for
scase, useuidinstead ofsampleID, under thedc=example,dc=combase 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