Hope this is the right forum here.
We have been trying to get php 5.2.11 to connect to a remote LDAPS server for authentication. This works fine using LDAP (no SSL), but when we try to use ldaps we get a "Can't contact LDAP server server.com:636"
From this same web server we can use WAB / find to contact the LDAPS server, but php-cgi launched via IIS can not connect. I believe it is related to php not trusting the certificate of the remote system. We had to install their certificate locally on the web server before WAB would connect, otherwise it too gave the "Can't contact LDAP server" message. Once we installed the remote cert locally the WAB error went away.
I have tried to specify in computer Environment Variables
LDAPCONF
C:\Inetpub\wwwroot\ldap.conf
In this file I placed only the line TLS_REQCERT never
I verified with Filemon that php-cgi is reading the ldap.conf file. Still, the issue persists.