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.
Well, your first step would be to run this one as follows, and see what
happens:
ldapsearch [server] [port] [base] [search]
server - LDAP server's hostname, port - LDAP port, usually 389.
base - your LDAP root suffix
search - the search string
Ex:
ldapsearch ldap.example.com 389 dc=example,dc=com 'Smith'
Sorry, I may not have been completely clear in my original posting.
I get nothing back from the ldapsearch provided with sqwebmail.
The above syntax is quite different to the usual ldapsearch format which I
would expect to give as:
ldapsearch -x -h ldap.example.com -b 'base' '(cn=search)'
Either form gives nothing though.
The ldapsearch in sqwebmail doesn't even print anything out when I try
"--help" on the commandline.
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>*))".
Thanks for that.
Stephen