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.

CommentFileSizeAuthor
dynamic_env_var.patch1.25 KBLaMi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

codexmas’s picture

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.

DRScales’s picture

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

ezheidtmann’s picture

Issue summary: View changes

This should now be doable with a custom module, thanks to a new alter hook:

https://drupal.org/node/2098823

gaards’s picture

Status: Needs review » Closed (outdated)

Closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.