
LDAP User’s Manual
144
Note:
Example searches Here are some advanced search examples:
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.
Searched Filter to use
All persons in Sweden. (&(objectclass=person)(c=SE))
All entries at Axis independent of country,
except the ones called Smith.
(&(o=axis)(!(sn=smith)))
All persons at Axis Marketing in Sweden. (&(objectclass=person)(c=SE)(
o=axis)(ou=marketing))
All persons with a common name contain-
ing “bert” at Axis Marketing or Sales.
(&(objectclass=person)(cn=*be
rt*)(|(ou=marketing)(ou=sales
)))
Kommentare zu diesen Handbüchern