Drupal 6 and LDAP Install

mtalebi - May 20, 2009 - 16:40

Hello all,

I am trying to connect a Drupal 6 site using the ldapauth module to our "Netscape/Sun/iPlanet 5.X" LDAP on our Sungardhe Luminis system. I would like to authenticate users through LDAP to start and I have aspirations to limit access to Drupal based on roles but right now I cannot even get LDAP authentication to work. Our LDAP server does not allow anonymous logins so I am trying to use a read-only account to access our LDAP directory. Is there a way for me to debug or log what is happening in the LDAP authentication module? I need to know where it is getting stuck so I can fix it. I am able to connect to our LDAP using the Linux ldapsearch command from the same machine that Drupal is installed on. Any help would be appreciated.

ldapauth - http://drupal.org/node/118092

check your ldap server logs

davea - July 23, 2009 - 01:27

I currently have a similar setup:

A sign up form using ldap-provisioning creates ldap users that I permit- I do this on a drupal 5 site.

Other sites on the same infrastructure use the same ldap account to login. I use ldap groups and map them to drupal roles and it works well once configured properly.

I would suggest:
- increase the verbosity of your ldap server
- add print_r() or dpm() within various places in the drupal code.
- use the dev version of the ldap modules.

I spent 2 full days getting it working but the overhead of account management is greatly reduced.

Be Blessed!
Dave

Dave
(IRC nick: Davea1)
www.ingraftedsoftware.com

 
 

Drupal is a registered trademark of Dries Buytaert.