The search filter can be simple or advanced, using boolean operators in the format described in the LDAP doumentation (see the Netscape Directory SDK for full information on filters).
LDAP_DEREF_FINDING - aliases should be dereferenced when locating the base object but not during the search.