Using a search filter is a way of specifying a set of entries, based on the presence of a particular attribute or attribute value. You can combine and or or logical operators in the same search. Use & for and and | for or. Table 2-1 gives some examples of filters.
Table 2-1 Search Filter Examples|
Filter |
Definition |
|---|---|
|
l=London |
locality is "London" |
|
cn=*Rob* |
common name contains "Rob" |
|
(&(cn=Ch*)(cn=*Thomas*)) |
comman name starts with "Ch" and contains "Thomas" |
|
(|(sn=*bert*)(sn=*bort*)) |
surname contains "bert" or "bort" |
|
(&(cn=Rob*)(|(cn=*Green*)(cn=*Jones*)) |
common name starts with "Rob" and contains "Green" or "Jones" |