Enable PHP LDAP Module in XAMPP

As in our experience, on a very rare situation, we were required to use Windows Active Directory or OpenLdap as our user database in WordPress. We need to enable php ldap module in XAMPP. By default this php ldap module is not enable in XAMPP as most web servers are not using ldap as their database or directory. Follow these simple steps to enable this module.

To enable php ldap module in XAMPP, find the following files and copy them.

From C:&#92xampp&#92php copy the following files to C:&#92Windows&#92system.

  • libeay32.dll
  • libsasl.dll
  • ssleay32.dll

Find and edit C:&#92xampp&#92php&#92php.ini and uncomment β€œextension=php_ldap.dll” around line 965.

Restart XAMPP (restart Apache service) and you should now have access to the PHP LDAP functions.

You can check ldap functions enabled in ldap by clicking phpinfo() inΒ http://localhost/xampp/.



Check out our previous post on XAMPP:

Run Web Server on Your Computer Using XAMPP

Install WordPress Locally on Your Computer Using XAMPP


Try this and enjoy!

  • Sarvesh

    Great Man, I have been stuck in same issue,
    Finally I got appropriate solution, Thanks once again πŸ™‚
    I have one question, On my another machine i have installed xampp 1.7.2
    I just comment out the extension=php_ldap.dll in php.ini & it’s work for me,
    But when same things i did on different machine it’s not work for me,
    I had to follow above specified steps to enable ldap.
    Why this happened?

  • tango

    thanks bro.. good days..

  • Ajax

    Thank you man! πŸ™‚

  • Lokendra Khandelwal

    Thanks man! you make my day, worked like a charm.

  • bugslacks

    thanks, it’s worked, but after that i can’t login as admin user. πŸ™

  • asasd

    very nice one, works in 30 seconds. thanks!

  • Shokeen Menaria

    Thanks! You are a star πŸ™‚

  • Praveen Kumar E

    That was super easy! Thank you very much it helped me and saved lot of time

    Here is my suggestion

    One change I suggest is have Environment variables configured instead of copying the dlls directly to system folder. Following is the help for this

  • Arlekos

    thanks a lot works fine to me!!!