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.
 
   So, I started thinking the handler was overwriting the REMOTE_USER
variable and created a new handler responsible for rewriting the environment
in the PerlFixupHandler stage.  Naturally, this didn't work either.
  
   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?
   
   Kory

Reply via email to