Closed (won't fix)
Project:
LDAP integration
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2007 at 04:37 UTC
Updated:
6 Aug 2011 at 18:56 UTC
Any one know why this would be? It's not a big deal, just have to make sure users log in twice before they get roles...
Thanks
Comments
Comment #1
smerrill commentedI can also confirm that this is the case using the same setup.
I'd like to take people to an instructions page (using login_destination) based on their role the first time they log in, but instead I'm going to have to make a page for authenticated user, and then take tell them to log out and then back in.
(I even tried some hacking inside of _ldapauth_save_user(), including hardcoding 'roles' values into $userinfo, but to no avail.)
Any help on this would be greatly appreciated - I love using LDAP auth, and it works perfectly after the second login.
Thank you.
Comment #2
hoyaemt commentedI discovered that the 'ldap_config' attribute is set in the $user variable on subsequent logins but NOT on the initial login when the user is created the first time. I solved this by modifying _ldapauth_save_user() in ldapauth.module.
Original line:
New line:
Farther down in the function, you'll see that this is being done unconditionally anyway:
Therefore, it's probably a bug that needs to be fixed by simply adding 'ldap_config' to the $user variable at the beginning of the function. Hopefully this helps!
Comment #3
kpm commentedThanks that seems to have done the trick for me.
I'll switch this over to 'bug' rather than support.
Comment #4
junyor commentedDuplicate of http://drupal.org/node/171092, I believe.
Comment #5
johnbarclay commentedClosing 5.x issues to clean out issue queue.