Closed (won't fix)
Project:
LDAP integration
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2007 at 02:19 UTC
Updated:
6 Aug 2011 at 18:38 UTC
When using the setting, "Do not store users' passwords during sessions", several errors appear in watchdog when creating new users:
* LDAP Bind failure for user [...]. Error 49: Invalid credentials (twice)
* User load: user [...]'s data could not be read in the LDAP directory
This happens because the password is overwritten with a random generic password in _ldapauth_save_user(), then saved to the $_SESSION variable. The attached patch avoids this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| contrib-5.ldapauth-bind-error.junyor.patch | 1.78 KB | junyor |
Comments
Comment #1
amariotti commentedAnybody else tested this? I may go and test it out on a test site.
Comment #2
amariotti commentedJust verified that this patch does fix the errors that come up in the log. It sure cleans things up for me. I also noticed increased speed on the initial login... could this be what is hanging up my LDAP logins initial sign in??? If so then commit this to the module please!
Comment #3
amariotti commentedI just double checked to make sure it was working and it only worked the first time. I'm still getting the following error:
User load: user username's data could not be read in the LDAP directory
Any ideas?
UPDATE: It was only on one user though (so far) so I'll keep an eye on it.
Comment #4
johnbarclay commentedClosing 5.x issues to clean out issue queue.