James Lloyd

Blog of James Lloyd pro geek, and IT Evangelist

 

 
Home » Active Directory
 

Getting PHP to Connect to SLDAP

  • Category: Active Directory
  • November 22, 2007
  • James Lloyd
  • No comments yet
  • 500 views
  • Tags: , ,

  • Category  Active Directory

    Note: This does not work without a service pack, requires Windows 2003 Service Pack 1 at least

    I have been pulling my hair out trying to get, PHP to bind to Active Directory with Secure LDAP (LDAPS) on port 636. This is in fact rediculously simple, so I can only assume everyone who’s has worked this out doesn’t want to share it with the rest of us!. Solution

    In order to enable connections on LDAPS your domain must have a Root CA installed. Once installed LDAPS is now enabled.

    This can be verified if you have the windows 2003 support tools installed and you can use lpd.exe to connect to your server on port 636 with ssl enabled.

    Once this is done you can create the following directory:

    c:\openldap\sysconf

    Note: php seems to be hardcoded to look in that location
    Note: also note that openldap is not actually installed

    within that directory create a file called ldap.conf with the following line it in:

    TLS_REQCERT never

    Restart IIS

    and you done.

    Related Pages: PHP Active Directory Search


     
    What i'm doing!
    • Ordered new laptop, Hoorah, like Darrens laptop except er, its mine 6 days ago
    • Dammit my wordpress theme is broke 3 weeks ago
    • wordpress turbo mode like super persuit mode but with out all the extra wings 2008-07-15
    • More updates...
  • Recent Posts

  • Categories

  • Archives




  •  
    View blog authority

    This site is powered by wordpress
    Wordpress Theme JLBP2 by James Lloyd, based upon the css framework Blueprint