Windows LDAP Query

From richud.com
Jump to: navigation, search

Quick reminder for basic LDAP searches on a M$ Windows pc.

Quite a good starter in Windows world is http://technet.microsoft.com/en-us/library/cc261947(v=office.12).aspx

These simple queries will probably narrow it down enough to work the rest out, View > Choose columns is a good idea, adding First Name, Last Name, and Initials.

Find > Custom Search > Advanced

Find someone by surname(last name) containing 'oo'

(sn=*oo*)

Find someone who's username contains 'mo'

(name=*mo*)

Find someone who's first name contains 'rr'

(givenName=*rr*)


Can use AND OR etc for joining but probably not necessary if just trying to find someone.

Find someone who with matching surname AND firstname

(&(sn=*oo*)(givenName=*fm*))

OR

(|(sn=*oo*)(givenName=*fm*))