Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to query LDAP by UID

Status
Not open for further replies.

perryair

IS-IT--Management
Apr 7, 2005
91
0
0
IL
Hi Guys,
I am looking for ldap query string that will show me specific value (Extension-Attribute-6) by 'uid' objectclass..

I am using the following string but it show me all the users that existing on the address book....

strQuery= "<LDAP://" & strServername & ">;(objectClass=person);uid,Extension-Attribute-6,objectClass;subtree"


Thanks...
 
Here is the correct string..

strQuery = "<LDAP://" & strServername & ">;(&(objectClass=*)(uid=" & strName & "));uid,Extension-Attribute-6,objectClass;subtree"

--> the 'strName' is Request.Form method.

Thanks anyway...




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top