要PHP能夠鏈接到用self-signed certificate的ldaps服務器,須要在/etc/ldap.conf中添加一行:服務器
TLS_REQCERT neverco
要PHP在Apache中鏈接到用self-signed certificate的ldaps服務器,須要在httpd.conf中添加一行:ps
LDAPVerifyServerCert Offhttpd