« Previous Next »

Thread: LDAPS with PHP under IIS 6.0

Last post 11-05-2009 2:54 PM by jchertudi. 0 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (1 items)

Sort Posts:

  • 11-05-2009, 2:54 PM

    • jchertudi
    • Top 500 Contributor
    • Joined on 11-02-2006, 1:48 AM
    • Portland, OR
    • Posts 18

    LDAPS with PHP under IIS 6.0

    Hope this is the right forum here.

    We have been trying to get php 5.2.11 to connect to a remote LDAPS server for authentication. This works fine using LDAP (no SSL), but when we try to use ldaps we get a "Can't contact LDAP server server.com:636"

    From this same web server we can use WAB / find to contact the LDAPS server, but php-cgi launched via IIS can not connect. I believe it is related to php not trusting the certificate of the remote system. We had to install their certificate locally on the web server before WAB would connect, otherwise it too gave the "Can't contact LDAP server" message. Once we installed the remote cert locally the WAB error went away.

    I have tried to specify in computer Environment Variables

    LDAPCONF
    C:\Inetpub\wwwroot\ldap.conf
    In this file I placed only the line TLS_REQCERT never

    I verified with Filemon that php-cgi is reading the ldap.conf file. Still, the issue persists.

Page 1 of 1 (1 items)
Microsoft Communities