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

AttachmentSize
dynamic_env_var.patch1.25 KB

#1

codexmas - June 17, 2009 - 15:31

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

DRScales - June 30, 2009 - 11:03

Did we get anywhere doing this for 5.x also?
http://drupal.org/user/372189

 
 

Drupal is a registered trademark of Dries Buytaert.