httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] MODIFIYING THE REMOTE_USER VARIABLE
Date Fri, 22 Apr 2005 16:12:27 GMT
On 4/22/05, Bud P. Bruegger <bud@comune.grosseto.it> wrote:
> At 16.47 22/04/2005 +0200, you wrote:
> >Hye,
> >
> >With Apache HTTP Server ver 2.0.40 and LDAP autentication, is it possible
> >to OVERWRITE the REMOTE_USER Variable ? With the mod_rewrite module ?
> >
> >If Yes, What is the syntax according to the RewriteRule Directive , the
> >{LA-U:REMOTE_USER} and E=VAR:VAL flag ?
> 
> Brian just proposed this:
> 
> RewriteEngine On
> RewriteCond %{HTTP:HTTP_SOME_HEADER_FIELD} (.*)
> RewriteRule .* - [E=REMOTE_USER:%1]
> 
> and it works for me on Apache 1.3.  So I assume that also 2.0 will work.

As far as I know, this technique cannot be used to override the
standard CGI env variables, including REMOTE_USER.  In fact, it is not
possible at all to override these variables, which is generally a good
thing.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message