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?
(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?