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
In debian based systems:
Install the package: ldap-utils
and in the file
/etc/ldap/ldap.conf
, edit the line:
TLS_CACERT /etc/ldap/cacerts/cacert.asc
Create the directory /etc/ldap/cacerts
and copy the cacert to
/etc/ldap/cacerts/cacert.asc
Restart apache
.
In redhat based systems:
Install the package: openldap-clients
and in the file
/etc/openldap/ldap.conf
edit the line:
TLS_CACERT /etc/openldap/cacerts/cacert.asc
Create the directory /etc/openldap/cacerts
and copy the cacert to
/etc/openldap/cacerts/cacert.asc
Restart httpd