Windows Guides Feed

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:

  1. Download the LDAP Integration module here
  2. Go to C:\wamp\www\[your project directory]\modules and paste the contents of the zip file inldap01 Install LDAP Integration Module in Drupal [How To]
  3. Go to the administration panel of Drupal and click Modules ldap02 Install LDAP Integration Module in Drupal [How To]
  4. Enable Authentication (Under LDAP Integration)ldap03 Install LDAP Integration Module in Drupal [How To]
  5. Now go back to the Administration Panel and click LDAP Authenticationldap04 Install LDAP Integration Module in Drupal [How To]
  6. Enter your LDAP informationldap05 Install LDAP Integration Module in Drupal [How To]
  7. 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
  8. First, go to C:\wamp\bin\Apache\[Apache Version]\bin\php.ini and uncomment (remove the semi-colon) from extension=php_ldap.dllldap07 Install LDAP Integration Module in Drupal [How To] ldap08 Install LDAP Integration Module in Drupal [How To]
  9. In the same file, ensure extension_dir = “c:/wamp/bin/php/[php version]/ext/” is uncommentedldap09 Install LDAP Integration Module in Drupal [How To]
  10. Click Start, right click on My Computer, and select Propertiesldap10 Install LDAP Integration Module in Drupal [How To]
  11. Under the Advanced tab, click Environment Variablesldap11 Install LDAP Integration Module in Drupal [How To]
  12. 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)ldap12 Install LDAP Integration Module in Drupal [How To]
  13. Click OK twice.
  14. Click on the WampServer icon and click Restart All Services

    ldap13 Install LDAP Integration Module in Drupal [How To]

  15. LDAP will now work
 Install LDAP Integration Module in Drupal [How To]

About Rich

Rich is the owner and creator of Windows Guides; he spends his time breaking things on his PC so he can write how-to guides to fix the problems he creates.

Web | Twitter | Facebook | LinkedIn | Google+ | More Posts (1019)


Comments

  • Turning Your Computer into a L

    [...] Installing LDAP Integration Module in Drupal [...]

  • jadenilson

    Eu preciso é exatamente do que está sendo explicado aqui, só que pra linux. Alguem pode me ajudar?

  • http://richr.org/ Rich

    Google “LAMP” (Linux Apache, PHP & MySQL) for help on this.


Comments
Windows Guides on Facebook
Windows Forums

MVP Profile - Rich Robinson