Re: [us...@httpd] How to remove an environment variable...

2009-12-18 Thread André Warnier
Krist van Besien wrote: ... Maybe I could use some mod_perl to manipulate this internal representation. Yes of course. Maybe try this PerlFixupHandler "sub { \ use Apache2::Const qw(:common); my $r = shift; \ $r->user(undef); \ return Apache2::Const::OK; \ }" Note : that's really

Re: [us...@httpd] How to remove an environment variable...

2009-12-18 Thread Krist van Besien
On Fri, Dec 18, 2009 at 3:16 PM, Eric Covener wrote: > mod_cgi (and anyone acting like mod_cgi) calls a utility function to > set REMOTE_USER from the internal representation of the user, right > before running the script (in the handler phase).  There does not seem > to be any window where you c

Re: [us...@httpd] How to remove an environment variable...

2009-12-18 Thread Eric Covener
On Fri, Dec 18, 2009 at 8:54 AM, Krist van Besien wrote: > > UnsetEnv REMOTE_USER > > However, this does not work. > > Also setting REMOTE_USER to something else doesn't work either. > Setting other variables works though. > > What are my options here? How can I remove REMOTE_USER? mod_cgi (and a

Re: [us...@httpd] How to remove an environment variable...

2009-12-18 Thread Peter Schober
* Krist van Besien [2009-12-18 14:54]: > Now for test purposes I want to offer a way to look at the site as > non authenticated users would see it, but without (for now) removing > the authentication. As the website is still under development I > don't want to allow unauthenticated access yet. Ma

[us...@httpd] How to remove an environment variable...

2009-12-18 Thread Krist van Besien
Hello all, I have a PHP content management system, Drupal on a apache 2.2 server. For the moment we use a Drupal add on that uses the webserver's own authentication. So I have set up apache basic auth, and Drupal asumes that whenever a request comes with the "REMOTE_USER" variable set, the user i