May 22
Installing LDAP Integration Module in Drupal [How To]
Windows Vista Guides, Windows XP Guides Add commentsIn this guide, you’ll learn how to set up LDAP integration on Drupal. This guide is written for WAMP server, but should work on a LAMP server as long as you have root access.
This guide is part of the Turning Your Computer into a Local Web Server series. Learn more from the main page.
Installing LDAP Integration Module in Drupal
To install LDAP in Drupal, do the following:
- Download the LDAP Integration module here
- Go to C:\wamp\www\[your project directory]\modules and paste the contents of the zip file in
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 1](http://img.mywindowspc.com/wg/0902/27wamp/ldap01.png)
- Go to the administration panel of Drupal and click Modules
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 2](http://img.mywindowspc.com/wg/0902/27wamp/ldap02.png)
- Enable Authentication (Under LDAP Integration)
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 3](http://img.mywindowspc.com/wg/0902/27wamp/ldap03.png)
- Now go back to the Administration Panel and click LDAP Authentication
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 4](http://img.mywindowspc.com/wg/0902/27wamp/ldap04.png)
- Enter your LDAP information
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 5](http://img.mywindowspc.com/wg/0902/27wamp/ldap05.png)
- When you try to login via LDAP, you’ll get the following error: Fatal error: Call to undefined function ldap_connect() in [PATH] on line 132 You’ll need to enable LDAP and allow Apache access
- First, go to C:\wamp\bin\Apache\[Apache Version]\bin\php.ini and uncomment (remove the semi-colon) from extension=php_ldap.dll
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 7](http://img.mywindowspc.com/wg/0902/27wamp/ldap07.png)
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 8](http://img.mywindowspc.com/wg/0902/27wamp/ldap08.png)
- In the same file, ensure extension_dir = “c:/wamp/bin/php/[php version]/ext/” is uncommented
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 9](http://img.mywindowspc.com/wg/0902/27wamp/ldap09.png)
- Click Start, right click on My Computer, and select Properties
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 10](http://img.mywindowspc.com/wg/0902/27wamp/ldap10.png)
- Under the Advanced tab, click Environment Variables
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 11](http://img.mywindowspc.com/wg/0902/27wamp/ldap11.png)
- Find the PATH variable, double click on it, and add WAMP’s PHP installation path (see screenshot) to the variable value field (ensure you use a semi colon to differentiate from the previous paths)
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 11](http://img.mywindowspc.com/wg/0902/27wamp/ldap12.png)
- Click OK twice.
- Click on the WampServer icon and click Restart All Services
![Installing LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 13](http://img.mywindowspc.com/wg/0902/27wamp/ldap13.png)
- LDAP will now work


1 Response to Installing LDAP Integration Module in Drupal [How To]
Trackbacks (Trackback URL)