Mailing List Archive

Won't override ENV variable
I'm writing a handler wherein the REMOTE_USER string needs to be changed
(after authentication) to another string so the CGI can continue on its
merry way. In order to do this, I used $r->subprocess_env to set the
variable. Unfortunately, this doesn't work. Something is rewriting the
REMOTE_USER after I change it. It looks something like this:

$r->subprocess_env('REMOTE_USER', $new_login); # CGI shows REMOTE USER is
$r->connection->user
$r->subprocess_env('MYID', $new_login); # creates new env. variable so
CGI shows proper string.

Any ideas on how I can make REMOTE_USER take on $new_login? Should I
un-base64 the basic authentication string and rebuild it with the new
REMOTE_USER?
Re: Won't override ENV variable [ In reply to ]
> I'm writing a handler wherein the REMOTE_USER string needs to be changed
> (after authentication) to another string so the CGI can continue on its
> merry way. In order to do this, I used $r->subprocess_env to set the
> variable. Unfortunately, this doesn't work. Something is rewriting the
> REMOTE_USER after I change it. It looks something like this:
>
> $r->subprocess_env('REMOTE_USER', $new_login); # CGI shows REMOTE USER is
> $r->connection->user
> $r->subprocess_env('MYID', $new_login); # creates new env. variable so
> CGI shows proper string.
>
> Any ideas on how I can make REMOTE_USER take on $new_login? Should I
> un-base64 the basic authentication string and rebuild it with the new
> REMOTE_USER?



wrong list! please repost to modperl@perl.apache.org




>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advocacy-unsubscribe@perl.apache.org
> For additional commands, e-mail: advocacy-help@perl.apache.org
>
>



______________________________________________________________________
Stas Bekman | JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ | mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org | http://perl.org http://stason.org/TULARC/
http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org
----------------------------------------------------------------------