Make webserver environment variable configurable
LaMi - April 24, 2009 - 14:49
| Project: | Webserver authentication |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
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.
| Attachment | Size |
|---|---|
| dynamic_env_var.patch | 1.25 KB |

#1
Great 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.
#2
Did we get anywhere doing this for 5.x also?
http://drupal.org/user/372189