The system worked at first and would pull down User DN and set it up to authenticate via LDAP. Now any new user, though they are allowed in (they weren't when I set the read/write password wrong) are not set up to authenticate via LDAP, have no user DN and of course don't have the right profile information because of this. It worked with one user at first but then stopped. I have it set up to use LDAP only. I then completely uninstalled the module and copied settings from another intranet Drupal site here at my company that has it working (i copied the settings via MySQL) and then asked another user to login. Again, his account was created but no LDAP info.
What could be the cause here? What other information do you need?
Comments
Comment #1
cridenour commentedI wouldn't normally *bump* anything but this is plaguing me. I have the exact settings as another site using ldap_integration here in the company and one will create new users fine - the other will not. I have disabled, uninstalled, reinstalled and copied the settings over using SQL statements. They are quite literally the same.
Why would one site fill in the User DN and the other not?
Comment #2
cridenour commentedSome more information - I was getting errors on the user.module because the external authentication was not passing along a role to user_access but a patch found here fixed those errors. So now with no errors (again) I cannot download LDAP settings. If I manually set them - still works. I can't log in without proper LDAP user/pass combo.
Please any acknowledgment of this issue would be appreciated. I don't know what else I can do.
Comment #3
cridenour commentedFor some reason, 1.3 is incompatible with Securesite, causing errors in the user creation and stopping the whole process. May investigate later - for now, closing issue.
Comment #4
scafmac commentedSorry for not responding sooner. It's not a big surprise considering what securesite does that there is a conflict. But if there is an easy fix, it would be worth addressing - I'm reopening & changing to bug report.
Thanks for pointing out the problem.
Comment #5
thierry.beeckmans commentedI noticed the same with new users BUT ALSO when they log in the second time I see that their profile fields gets filled.
My authentication system is both LDAP and Drupal though.
I tracked down the problem and noticed that the password, used to bind the user, gets hashed somewhere during the creation process and is stored in the session.
The second time the user logs in, the password doesn't get hashed and is stored, as written, in the session.
a quick fix is to change the following function in ldapdata.module:
Comment #6
cridenour commentedI will test thierry's fix early this week and post my results.
Thierry, Was this only fixing your second problem or did this address all issues?
Comment #7
andytrek commentedHi,
I'm not sure this is related to this fix or a different one, but I downloaded version 5.x-1.3 and found a bug in the ldapdata.module.
The select statement in the _ldapdata_edition(&$user) function references columns that don't exist in the current table schema for ldapauth. The statement references ldapdata_binddn, ldapdata_bindpw but the table definition only contains binddn, bindpw.
I fixed the code on my side, but wasn't sure of the process to push it back to the community. Here's my code fix:
Please let me know if there is a different location you would like me to post this info.
Cheers,
Andy
Comment #8
zetxek commentedI have had the same problem when retrieving the user info from the LDAP, using the same from that atrek used solves the problem.
Comment #9
johnbarclay commented