
LDAP
AXIS 7100 User’s Manual
148
The attribute types are used to create search filters. There are six
types of basic search filters and the syntax of the filters is in the
<attribute><operator><value> format. Complex search filters
can easily be constructed by combining these basic search filters
and other complex filters using the Boolean operations AND, OR
and NOT. The six basic filter components are presented in the
table below:
Filter Type
Format
Example
Matches
Equality
(<attr>=<val
ue>)
(sn=Smith)
Surnames
exactly equal to
Smith.
Approximate
(<attr>~=<va
lue>)
(sn~=Smitt)
Surnames
approximately
equal to Smitt
(for example,
that sounds like
Smitt - note the
misspelling).
Substring
(<attr>=[<le
ading>]*[<an
y>]*[<traili
ng>])
(sn=*smith*)
Surnames
containing the
string “smith”.
(sn=smith*)
Surnames
starting with
“smith”.
(sn=*smith)
Surnames
ending with
“smith”.
(sn=s*mi*th)
Surnames
starting with “s”,
containing “mi”
and ending with
“th”.
Greater than
or equal
(<attr>>=<va
lue>)
(sn>=Smith)
Surnames
lexicographically
greater than or
equal to Smith.