PHP - LDAP - connect over SSL

Hi Forum,

We have many instance of SuiteCRM running on server for different clients. We have configured LDAP authentication. One client required to use LDAP over SSL. So for this specific requirement we enforce certificate via PHP code. But it throw error when we do ldap_bind after successful ldap_connect in PHP.

Error : Can’t contact LDAP server

Code :

putenv(‘LDAPTLS_CACERT=./ca.pem’);

Location of ca.pem is : etc/httpd/conf/ssl.crt/ca.pem

Please advice.

Environment : CentOS 6.6, Apache

Thanks.

hello,

i am getting the same issue and looking for solution.
i am using suiteCRM 7.4

Thank you.