Does this version of ldap_integration require changes to the user.module like the old one, or require any other modules?
I have been unsuccesful getting it to work. It appears to be checking the ldap directory, but does not allow a login.
The error I get is:
Login attempt failed for user@example.com: Sorry. Unrecognized username or password.
Thanks for the help
Comments
Comment #1
pablobm commentedThis module needs no further installation besides leaving it in the modules directory.
The problem might lie in an incorrect setting. Have special care with the settings for
LDAP login patternandLDAP login replacement.This is the setting for my home LDAP directory:
This way, a login as
jmelavo@pablobm.comwill be treated asuid=jmelavo,dc=pablobm,dc=com.Comment #2
(not verified) commentedI have checked that. If I uncomment out this line in the function _ldap_integration_init:
I get the correct dn and password.
I do not get an ldap_bind error. It appears to be something after the ldap bind.
This is a fresh install of drupal 4.5.1, and I have tried your new 1.2 version in cvs with the same results.
thanks for looking at this. If you would like more details I can email you directly.
Comment #3
pablobm commentedMaybe the LDAP access control lists are not properly configured?.
Actually, I have no experience at all with LDAP and I created this module for a third organisation where, as far as I know, it has been tested succesfully.
In case it may help, I added the next lines to the
/etc/openldap2.2/slapd.access.confto make users able to authenticate against my home LDAP directory:Comment #4
pablobm commentedAAAAAAAAAAAAAAAAAARGH!!. Completely forgot this!
Tha problem arises in the fact that I forgot including in the documentation the fact that there's a preference to be set: in
/admin/user/configure, you have to set the preference 'Public registrations' to 'Visitors can create accounts and no administrator approval is required'.This sounds like a terrible security issue, but it doesn't seem to give anybody any special power and, moreover, a close examination of Drupal's authentification code reveals that it is necessary (see
modules/user.module, functionuser_authenticate()).Sorry to everybody who I have caused a headache to because of this.
Comment #5
(not verified) commentedThat's It!
I had set my system up to only allow registration by administrators. I will have to look around a bit to see if it is possible to get the ldap stuff to work both ways. Would you mind adding this little tidbit to your README?
Thanks
Comment #6
pablobm commentedThe README is already updated. Thanks to you for pointing out the problem.
Comment #7
(not verified) commentedComment #8
tclineks commentedI haven't looked over the code in much detail but couldn't it fallback to authenticating against existing (drupal-space) accounts and failing for those that aren't yet?
Comment #9
pablobm commentedSorry, but I don't follow you. Could you please leave an example?.
BTW, this thread is very old, code has undergone severe changes, some concepts are not the same... and anyway, I was terribly (and even dangerously) wrong when I wrote comment #4... I was young and clueless (one year younger than now, same cluelessness :P )