80

O

AXIS 700 User’s Manual

 

 

 

Using the Boolean operators and a prefix notation, the basic filters can be combined to form more complex ones. The ‘&’ character represents AND, the ‘’ character represents OR and the ‘!’ character represents NOT. Here are some examples that explain how to do that:

n

n

m

u

 

 

 

 

 

 

 

AND

 

(&(<filter1>

(&(sn=smith)

Entries with

 

 

)(<filter2>)

(objectclass

an object

 

 

...)

 

=person))

class of

 

 

 

 

 

person and a

 

 

 

 

 

surname

 

 

 

 

 

exactly

 

 

 

 

 

equal to

 

 

 

 

 

Smith.

 

 

 

 

 

OR

 

((<filter1>

((sn=smith)

Entries with

 

 

)(<filter2>)

(cn=*smith))

a surname

 

 

...)

 

 

exactly

 

 

 

 

 

equal to

 

 

 

 

 

Smith or a

 

 

 

 

 

commonname

 

 

 

 

 

ending in

 

 

 

 

 

“smith”.

 

 

 

 

 

NOT

 

(!(<filter>)

(!(mail=*))

Entries

 

 

)

 

 

without a

 

 

 

 

 

mail

 

 

 

 

 

attribute.

 

 

 

 

 

 

va

ο It is wise to create filters that sort out unwanted entries based on

 

their object class. For example, in an address book, you might

 

only want to retrieve entries of the “people” class, with the

 

common name “John”, leaving out computers called John. This

 

could be achieved with the following filter:

 

(&(objectclass=person)(cn=john))

Page 81
Image 81
Axis Communications 700 user manual Only want to retrieve entries of the people class, with, Objectclass=personcn=john