Closed (outdated)
Project:
Webserver authentication
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Apr 2007 at 15:50 UTC
Updated:
30 May 2016 at 11:37 UTC
Jump to comment: Most recent
Comments
Comment #1
moshe weitzman commentedthat makes sense but there was some reason i did it that way. i think in some cases you want to login as another user and we won't be able to change users if we never execute this code. note end of this comment:
//do nothing because user is already logged into Drupal, and hasn't presented different credentials vis web server
Comment #2
ronnqvist commentedOK... problem solved, wrap the code in this instead.
if ($user->name != $_SERVER["REMOTE_USER"]) {(Of course you might want to do the trimming stuff to $_SERVER["REMOTE_USER"] first, but this worked for me.)
Comment #3
geste commentedWith respect to Moshe's point #1....
In my circumstance, I never want to allow anybody to log in to Drupal as any ID other than what they are showing in REMOTE_USER. Although it was tricky at first to get my REMOTE_USER account promoted to admin.
After it was all set I simply removed login block. There's probably a gotcha here somewhere :)
Comment #4
ronnqvist commentedgeste, I think you might have misunderstood Moshe here a little bit. I think he was talking about that if one wanted to log in as a different user, Drupal wouldn't recognise that change of user. My later patch fixes that however.
Comment #5
gaards commentedClosed because Drupal 4.7 is not supported. If the issue verifiably applies to later versions, please reopen with details and update the version.