remote_user variable

Michal Kowalski kowalski.michal at
Sat Jun 6 06:42:48 MSD 2009


i'm doing different authorization method module and i want to set
remote_user variable upon success. but ngx_http_variable_remote_user
in src/http/ngx_http_variables.c assumes basic auth method.
for now i've added bogus, dummy mangling of authorization header
to my module in order to please the higher powers...
but i'd rather there was systemic way to deal with it.

i'm attaching a proposal for a patch to do the "trick". not tested yet.
so perhaps i could put more thought into it if it doesn't work... thaaaat way.

(let* ((mk "Michał Kowalski") (sig `(lambda () ,mk))) ((eval sig)))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ngx_http_variable_remote_user.diff
Type: application/octet-stream
Size: 676 bytes
Desc: not available
URL: <>

More information about the nginx mailing list