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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

user_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?

barry_johnson’s picture

I 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.

moshe weitzman’s picture

not too fond of that checkbox.

xxvelcrar’s picture

I 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

gaards’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closed because Drupal 5 is not supported. If the issue verifiably applies to later versions, please reopen with details and update the version.