In our environment we use a coustom environment variable to store the authenticated username. For example HTTP_LOGIN.
To be able to read this option I added a new configuration option with this patch called "webserver_auth_user_env_var". When this option is set the given $_SERVER var gets read and used as username. When none is set the default way (Trying REDIRECT_REMOTE_USER and REMOTE_USER) is being used.
| Comment | File | Size | Author |
|---|---|---|---|
| dynamic_env_var.patch | 1.25 KB | LaMi |
Comments
Comment #1
codexmas commentedGreat idea, I have an excellent use case for this code and was thinking of doing something similar. I will update you on the progress and see if we can't get this committed.
Comment #2
drscales commentedDid we get anywhere doing this for 5.x also?
http://drupal.org/node/327135
Comment #3
ezheidtmann commentedThis should now be doable with a custom module, thanks to a new alter hook:
https://drupal.org/node/2098823
Comment #4
gaards commentedClosed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.