I’m getting:
Warning: ldap_start_tls()
[function.ldap-start-tls]: Unable to
start TLS: Connect error in
/var/www/X.php on line Y
/etc/ldap/ldap.conf:
TLS_CACERT /etc/ssl/certs/ca.crt
ca.crt is the CA which signed the LDAP server certificate. The certificate on the LDAP server is expired and I can’t change it.
You can ignore the validity in windows by issuing
in your php code. In *nix you need to edit your
/etc/ldap.confto containAnother thing to be aware of is that it requires version 3 (version 2 is php default):
To get a better idea of what’s going on, you can enable debug logging by:
This can be done before the
ldap_connecttakes place.