Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a user is created by normal drupal methods, then tries to login via webserver authentication, the user won't be logged in. This patch changes the user_external_load to a user_load call to take care of this.
Comment | File | Size | Author |
---|---|---|---|
webserver_auth.module.preexisting_users_not_logged_in.patch | 712 bytes | barry_johnson |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commenteduser_external_load() makes our mapping more robust. a user can change his drupal username and still get logged in properly. perhaps we should just forget about that feature. comments?
Comment #2
barry_johnson CreditAttribution: barry_johnson commentedI think that is a nice feature to have. It just bit me because I was adding your auth module after we already had several people using the site. Their webserver userid was the same as their drupal userid and it wouldn't work for them the other way. I think mine is a special case and not really the norm. Perhaps we could make it a an admin panel checkbox? Something like "[] allow pre-existing drupal users to authenticate with webserver auth?"
Just thinking out loud..
B.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentednot too fond of that checkbox.
Comment #4
xxvelcrar CreditAttribution: xxvelcrar commentedI was having some issues like this, namely when an account was created before I turned on the auth module. This fixes the SQL error that comes up:
http://drupal.org/node/284515
Comment #5
gaards CreditAttribution: gaards commentedClosed because Drupal 5 is not supported. If the issue verifiably applies to later versions, please reopen with details and update the version.