代码之家  ›  专栏  ›  技术社区  ›  quantumSoup

更改PHP插件配置(LDAP)

  •  0
  • quantumSoup  · 技术社区  · 15 年前

    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 error:

    “错误:14090086:SSL例程:ssl3_get_server_certificate:证书验证失败”

    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?

    提前谢谢。

    1 回复  |  直到 15 年前
        1
  •  3
  •   Marco Ceppi    15 年前

    显然,您需要将ldap.conf文件放在以下目录中:

    C:\openldap\sysconf\
    

    因为它是硬编码到dll文件中的。 PHP.net Manual: LDAP Functions - Comment #47427