Howard Chu wrote:
No. Specifying the port number only does that, it doesn't turn on SSL at all. (Nor should it. The Microsoft tools are, as usual, playing fast and loose with the LDAP specs.) The way to get SSL is to use a URI, and stop using the old/deprecated -h and -p options. Read the ldapsearch(1) manpage.

   ldapsearch -H ldaps://adserver:636

Thanks Howard. I've tried that as well and have read some of the man page. However, I suspect that perhaps the server is not configured correctly if the above should work. I still get:

ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)

I haven't installed the server's cert on the client. However, I would think that I'd see a different error rather than the above if a missing cert was my only problem. Say I manage to figure out how to get the cert off of the AD server(someone else set up this server and says they have all the certs configured correctly), I would then use TLS_CACERT and TLS_CACERTDIR in the client's ldap.conf file to specify it's location. Am I getting this?

Thanks for your advice - much appreciated.

Simon

Reply via email to