开发者

Changing PHP plugin configuration ( LDAP )

I am running PHP (on Apache/Windows) and I am trying to connect to a LDAP server to authenticate users. PHP's LDAP plugin is just OpenLDAP.

While I've been successful in connecting to the LDAP server without SSL, I can't do it WITH SSL. I know I got everything right, except OpenLDAP won't connect to the server without the CA certificate. The connection fails and it gives me this erro开发者_如何学Cr:

"error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"

Now, I know I can suppress this behavior by setting TLS_REQCERT to "never" in the ldap.conf file. But the plugin on windows is just a dll file; and I have no idea on where to put the .conf file. Does anyone know?

Thanks in advance.


Apparently you need to place the ldap.conf file in the following directory:

C:\openldap\sysconf\

Since it's hardcoded into the DLL file. PHP.net Manual: LDAP Functions - Comment #47427

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜