mardi 4 août 2015

LDAP Sub Query to fetch SamAccountName from CN

Currently I have this query as mentioned below which returns all users but each user has a parameter called manager which returns "CN=Peder Ellingsen,OU=Users,OU=NO,OU=Countries,DC=xds,DC=xxx,DC=com"

Need the samAccountName instead of the CN above ,need help with LDAP Subquery which can help me to get the SamAccountName directly by modifying the query mentioned below

Wanted to avoid double hits to ldap server just to get the SamAccountName.

(&(objectCategory=person)(objectClass=user)(memberof=cn=MyCompass_NO,OU=Groups,OU=Common,OU=Applications,DC=xds,DC=xxx,DC=com))

Aucun commentaire:

Enregistrer un commentaire