Project

General

Profile

Actions

Feature #2032

closed

Expose REMOTE_USER (con->authed_user) via magnet

Added by presbrey over 15 years ago. Updated over 8 years ago.

Status:
Obsolete
Priority:
Normal
Category:
mod_magnet
Target version:
ASK QUESTIONS IN Forums:

Description

This enhancement request is a follow-up to #1967.

The "REMOTE_USER" key can't be accessed because it is not created until the proxy_X_get_env call in mod_proxy_backend_X.c.

Attached is a patch that overlays REMOTE_USER in req_env as a key that directly accesses con->authed_user. This is very useful in lua scripts that do things on a per-authed_user basis. Modifying the user also works and is useful for customizing authentication schemes in lua that downstream CGI scripts can inherit via REMOTE_USER.


Files

mod_magnet-REMOTE_USER-r2585.patch (861 Bytes) mod_magnet-REMOTE_USER-r2585.patch patch to r2585 (trunk) presbrey, 2009-07-13 22:09

Related issues 1 (0 open1 closed)

Related to Feature #2495: lua/auth/REMOTE_USERFixed2013-07-25Actions
Actions #1

Updated by stbuehler over 15 years ago

I don't like such hacks :)

I propose replacing con->authed_user with env["REMOTE_USER"] in all modules instead.

Actions #2

Updated by gstrauss over 8 years ago

  • Missing in 1.5.x set to Yes
Actions #3

Updated by gstrauss over 8 years ago

  • Status changed from New to Obsolete
Actions

Also available in: Atom