Wednesday, July 25, 2012

Enabling LDAP on XAMPP 1.8.0 for Active Directory on Windows XP


Recently I installed XAMPP 1.8.0 on Windows XP. The XAMPP Server was working fine after installation and the control panel has really been given a good, clean and detailed look.

One of my applications needed PHP's LDAP Module so I went into the php.ini file located at [Your Drive]:\xampp\php\php.ini. and simply un-commented the line:

extension=php_ldap.dll

After doing the above I saved the INI file and restarted Apache service from the XAMPP Control Panel only to find the warning:

Warning PHP Startup: Unable to load dynamic library '\xampp\php\ext\php_ldap.dll'
After a bit of Googling I found this solution on the XAMPP Support Forum:


  • Added  [Your Drive]:\xampp\php to the PATH environment variable.
  • Move the file: libsasl.dll, from  [Your Drive]:\xampp\php to  [Your Drive]:\xampp\apache\bin.
  • Restart Apache from XAMPP Control Panel

After this Apache successfully started without any warnings or errors and phpinfo() also reported the LDAP Module as running. Hope it will save your time and effort from searching, browsing and understanding what is written at the link below :)

Source: Use LDAP extension ? [XAMPP Support Forum]

CHEERS :D

1 comment: