Download & Extend

Make webserver environment variable configurable

Project:Webserver authentication
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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.

AttachmentSize
dynamic_env_var.patch1.25 KB

Comments

#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/node/327135