Re: Rewrite REMOTE_USER environment variable

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

 



Thanks Rainer

I have no option but to fix the scripts, as I can't change the Apache installation on a shared server. The fix to each cgi script is easy, but the volume of scripts makes it a significant task. Best I get on with it then!

Ken


On 24/05/2017 15:41, Rainer Canavan wrote:
On Tue, May 23, 2017 at 8:45 PM, Ken Mycock <ken.mycock@xxxxxxxxxxxx> wrote:
Eric

It seems to make sense that REMOTE_USER wasn't set when the rule I tried in
htaccess ran, as that would explain RU not being set.

But, REMOTE_USER must be set by Apache, even if it is late in the sequence,
so where/how can I get at it?
ap_add_common_vars() sets REMOTE_USER from r->user, and practically nothing
happens between then and the execution of the cgi script (assuming you're using
mod_cgi, I haven't checked anything else). So it looks like your options are

- change the environment variable in the CGI process itself
- write an apache module to remove the leading zeroes
- possibly use mod_lua

rainer



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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