Thursday, September 26, 2013

LDAP - Filter syntax example

Example:

ldap_filter = "(&(objectClass=user)(|(sn=*{lastname}*)(givenName=*{firstname}*))(!(userAccountControl:1.2.840.113556.1.4.803:=2)))"


& => AND
|  => OR
!  => NOT


References:

http://www.zytrax.com/books/ldap/apa/search.html