I am leveraging the Zend Framework 2 Zend\Authentication\Adapter\Ldap to authenticate against Windows Active Directory. It all works perfectly when I do not attempt to use SSL. With SSL I cam getting the following error:
0x51 (Can't contact LDAP server; error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (unable to get local issuer certificate)):
I suspect this is because we use self-signed certificates. I would like to bypass the certificate check. Using the standard php ldap_set_option I could set TLS_REQCERT to never. I cannot find in the ldap options provided by the Zend authentication adaptor how to set this property. Is there a configuration setting I have just missed in the documentation that speaks to this?
Does anyone know how to set REQCERT = never inside ZF2?
On connect over SSL the client verifys the server certificate by default - one way to disable this is to set
TLS_REQCERT neverin your LDAP'sldap.conffile and restarting Apache.If you really care about the server's cert you should put a cert on the web server.