Php – How to enable LDAP in PHP – Windows Server 2008

ldapPHPwindows-server-2008

I've installed PHP in my Win Server 2008 using Web Platform Installer.
The installation was success and I can correctly display phpinfo page from my virtual directory. How can I enable LDAP support? c:\Program Files\PHP\Ext\ doesn't contain php_ldap.dll. Do I have to download this file first?

Edit :

  • I'm using Win Svr 2008 Standard Edition, updated to the latest patch
  • The PHP Version is 5.2.11
  • extension_dir is c:\Program Files\PHP\ext\ (as confirmed by
    phpinfo())
  • I already downloaded the full PHP zip package (10 megs), and : copythe
    contents of ext dir to c:\Program
    Files\PHP\ext\
  • I've already modified the php.ini to include php_ldap.dll extension
  • Here's the screen capture of my phpinfo test page

and the LDAP extension is still not working.

Best Answer

Your best bet would be to download the latest Zip version of PHP from the PHP.net site and get the DLL from that and extract the DLL file from that.

Not sure why its not included with the web platform installer, seems a little odd.