LDAP search for attributes in the hierarchy of an object -


i looking query allowing extract information object, information hierarchy of object. example,

1) user name dn is
dn:cn=user.name@location,ou=org1,ou=org2,o=org

attributes of cn=user.name@location are
cn=user@location
sn=name
givenname=user name mail=user.name@thecompany.com

2) org1 dn is
dn: ou=org1,ou=org2,o=org

attributes org1 are
ou=org1
areacode=london
distcode=125

3) org2 dn is
dn:ou=org2,o=org

attributes org2 are
ou=org2
countrycode=gb
dealcode=2

when set filter on cn=user.name@location, how can attribute value of distcode ou=org1 , value of dealcode ou=org2 1 (or multiple) query?

thank you.

if values of "ou" , "cn" attributes unique on different levels of hierarchy (e.g. "cn=user.name@location,ou=org1,ou=org2,o=org" not contain "ou" attribute!), perform sub-tree search on base "ou=org2,o=org" (or "o=org") filter "(|(ou=org2)(ou=org1)(cn=user@location)) , 3 objects back.


Comments