A search string of the form attribute operator value defines the filter syntax. The default filter, objectclass=*, returns all entries for the attribute.
The following table lists the filter operators. Note the prefix notation for the Boolean operators.
CFLDAP Filter Operators
|
Operator
|
Example
|
=
|
o=allaire - organization name equals allaire
|
~=
|
o~=alliare - organization name approximates allaire
|
>=
|
st>=ma - names appearing after "ma" in an alphabetical state attribute list
|
<=
|
st<=ma - names appearing before "ma" in an alphabetical state attribute list
|
*
|
o=alla* - organization names starting with "alla"
o=*aire - organization names ending with "aire"
o=all*aire - organization names starting with "all and " ending with "aire"
|
&
|
(&(o=allaire)(co=usa)) - organization name = "allaire" AND country = "usa"
|
|
|
(|(o=allaire)(sn=allaire)) - organization name = "allaire" OR surname = "allaire"
|
!
|
(!(STREET=*)) - all entries that do NOT contain a StreetAddress attribute
|
Although sophisticated search criteria can be constructed from these filter operators, performance may degrade if the LDAP server is slow to process the synchronous search routines supported by CFLDAP. The TIMEOUT and MAXROWS attributes can be used to control query performance.
|