Theoretically, there are no limitations on ldap-filters. (said Tim Howes)
As Andy Coulbeck, Hallvard B. Furuseth and Roland Hedberg have suggested, the
culprit is the "c" part. Having more than two characters here will not return anything.
Therefore, " (&(objectClass=*)(|(sn~=Bre)(l~=Bre)(c~=Bre)))" does not work.
Hallvard Furuseth suggested (to Roland Hedberg) that he (probably meaning me) should
check the results.
Andy Coulbeck also said that I should have received an error with that filter, but I did not!
So, even though the server rejects one part of the filter, it returned no results, and
LDAP_RES_SEARCH (I am using asynchronous calls with ldap_result).
Regards,
Nils Andreas Thommesen