REMOTE_USER is not available at the time of external function call in httpd RewriteMap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am trying to set HTTP basic auth header for an user which is already authenticated by external application. For doing that, we have to set base64 encoded of "username:dummy"  where password is any dummy value.  In ssl config, REMOTE_USER is getting captured properly in RequestHeader(Line 5) but not in RewriteRule (Line 3).  In line 3, I tried with REMOTE_USER, LA-U:REMOTE_USER, HTTP:REMOTE_USER. But all these variables are null. Am I missing any config here?


ssl.conf

Line 1- RewriteEngine on
Line 2- RewriteMap base64map "prg:/opt/scripts/base64.pl"
Line 3- RewriteRule .* - [E=AUTHN:${base64map:%{LA-U:REMOTE_USER}:%{LA-U:REMOTE_USER}},NE]
Line 4- RequestHeader set Authorization "Basic %{AUTHN}e"

Line 5- RequestHeader set X-Remote-User2 %{REMOTE_USER}s

Thanks,
Chudamani

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux