In 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
![Install 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
![Install 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)
![Install 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
- Enter your LDAP information
![Install 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
![Install 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
![Install 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
![Install 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
![Install 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)
![Install 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
- LDAP will now work
![Install LDAP Integration Module in Drupal [How To] delicous Install LDAP Integration Module in Drupal [How To]](http://mintywhite.com/wp-content/plugins/socialize/images/delicous.png)
![Install LDAP Integration Module in Drupal [How To] Installing WAMP in Windows 13](http://img.mywindowspc.com/wg/0902/27wamp/ldap13.png)
Comments