Overview#

LDAP Query Basic Examples are some simple examples of LDAP Search Filters Examples.

Return all Values for an AttributeType#

(mail=*) # returns all entries which have a mail attribute

Return All LDAP Entries#

(objectclass=*) # returns all entries

Wildcard LDAP SearchFilters#

(mail=*@*) # return entries with any valid [rfc822Name] [mail] address
(sn=s*) # returns entries with surnames starting with s or S
(telephonenumber=*555) # return entries with telephone numbers that end with 555
(cn=*a*i*) # return entries with common names with both a and i anywhere

Exact Match #

(sn=smith) # exact match returns Smith but NOT Smit
(objectclass=person) #return entries which use person objectclass

More Information#

There might be more information for this subject on one of the following:

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-5) was last changed on 19-Jun-2017 13:04 by jim