httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Mycock <ken.myc...@one-name.org>
Subject Re: [users@httpd] Rewrite REMOTE_USER environment variable
Date Mon, 29 May 2017 16:53:40 GMT
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@one-name.org> 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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message