Last updated April 19, 2011. Created by donkasok on June 9, 2009.
Edited by johnbarclay, silverwing, bekasu. Log in to edit this page.

HI,

I was trying to solve the Active directory authentication with my drupal project. It took 2 days to figure it out the stuffs i missing. Finally i solved it.

1) Enable php_ldap module

2) Download LDAP inteegration module from drupal

3) Copy it into your module folder

4) Enable Your modules - under LDAP (Authentication, Data , Groups)

5) Goto Administer -> Site configuration -> LDAP Authentication

------] Add server
..............Server Settings
..............============

----------] Name: A unique name for your AD (Eg: My AD server)
----------] LDAP server: ip address of your server or servername.example.com
----------]LDAp Port : 389

..............Login procedure
..............============
----------]Base DNs: cn=Users,dc=example,dc=com
----------]UserName attribute:cn

..............Advanced configuration
..............=================
----------]DN for non-anonymous search: Display Name (BINND user name)[create a user in AD with limited privilage so that he can search all users in AD]
----------]Password: password for the user
6) SAVE CoNFIGURATION

7) Clear CACHE

Cheers
DON ASOK

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

These worked for Ubuntu Hardy and with Drush installed:

1) apt-get install php5-ldap
1.5) restart Apache (so it recognizes the new PHP module)
2) cd /usr/local/drupal (or wherever your Drupal root is)
4) drush dl ldap_integration

Then I'm continuing on using the rest of your steps. Thanks for posting. This helped a lot!

Genny Engel