Axis 7000 User Manual page 108

Network document server
Hide thumbs Also See for 7000:
Table of Contents

Advertisement

108
LDAP
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:
Filter Type
Format
AND
(&(<filter1>
)(<filter2>)
...)
OR
(|(<filter1>
)(<filter2>)
...)
NOT
(!(<filter>)
)
Note:
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))
Note:
The way you construct your filter will has a large impact on how fast the
search is conducted. If you create a filter involving structures that the
directory server can not evaluate efficiently, performance is likely to
suffer. Apart from being familiar with the administrator and/or the inner
workings of the server itself, only trial and error can tell you whether
your filter is working efficiently or not.
AXIS 7000/FX User's Manual
Example
Matches
Entries with an
(&(sn=smith)
object class of
(objectclass
person and a
=person))
surname exactly
equal to Smith.
Entries with a
(|(sn=smith)
surname exactly
(cn=*smith))
equal to Smith
or a
commonname
ending in
"smith".
Entries without
(!(mail=*))
a mail attribute.

Advertisement

Table of Contents
loading

This manual is also suitable for:

7000/fx

Table of Contents