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