<< <%SKIN-STRTRANS-SYNCTOC%> >> LDAP Query Examples |
LDAP Searches are systems interactions with an LDAP based server to return information efficiently. AT&T GSMS will now offer basic query and attribute filtering capabilities to help target customer specific content. The ‘LDAP Query’ text box will allow the addition of a set of search parameters. The following section outlines the basic formatting that can be used for these queries.
Filter Choice Name |
Symbol Notation |
Example |
---|---|---|
AND |
(& (...K1...) (...K2...) (...K3...)) |
NA |
OR |
(| (...K1...) (...K2...) (...K3...)) |
(|(cn=jim)(cn=james)) |
NOT |
(!attribute=abc) |
(!objectClass=group) |
Equality Match |
(attribute=abc) |
(&(objectclass=user)(displayName=Foeckeler) |
Substrings |
(mail=*@soprano.de) or (givenName=*Paul*) |
(mail=*@soprano.de) or (givenName=*Paul*)) |
Greater or Equal |
(attribute>=abc) |
(mdbStorageQuota>=100000) |
Less Or Equal |
(attribute<=abc) |
(mdbStorageQuota<=100000) |
Is Present |
(attribute=*) |
(mailNickName=*) |
Example:
(mail=*) # returns all entries which have a mail attribute (objectclass=*) # returns all entries (mail=*@*) # return entries with any valid RFC822 mail address (sn=smith) # exact match returns Smith but NOT Smit (sn=s*) # returns entries with surnames starting with s or S (cn=*a*i*) # return entries with common names with both a and i anywhere (telephonenumber=*555) # return entries with telephone numbers that end with 555 (objectclass=person) #return entries which use person objectclass |