Having dug around in the Courier installation directories I find
another ldapsearch binary (in the /usr/lib/courier/share/sqwebmail
directory). I can get no response from that program at all.
I have managed to get ldapsearch to return information.
I did it by debugging the code and very quickly found it was not doing
anything LDAP-related. I went back to my notes and looked more carefully.
I installed the openldap development pkg, reconfigured and re-made - hey
presto. It works - just as the docs said (p 6).
I also can see no way to specify what filter to use with the search. I
would like to use "cn" for that.
The default search string is "(|(uid=<key>)(sn=<key>)(cn=<key>))", and if
that doesn't find anything,
"(|(uid=<key>*)(sn=<key>*)(mail=<key>*)(cn=<key>*))".
Although that can be customized using some environment variables, your
first order of business is to verify that there's some communication going
here.
Can I find out where this would be documented?
Each search on a name is returning multiple entries for the one user as we use
multiple CN values in our eDirectory implementation.
Thanks for the pointers and comments to date.
Stephen