Re: Where is my REMOTE_USER?
| From: | David Robley | Date: | Fri, 30 Aug 2002 04:42:00 +0000 |
| Subject: | Re: Where is my REMOTE_USER? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114590@lists.php.net to get a copy of this message | ||
In article <5.1.0.14.0.20020829175840.055d00e0@u5.com>, php_list1@u5.com
says...
> At 06:03 29/8/2002 -0400, David T-G wrote:
>
> > Frank, et al --
> > ..and then Frank said...
> > %
> > % Hi,
> > %
> > % when logging in with username and password with the good old "Require
> user"
> > % mechanism in Apache I could earlier see the name of the user logging
> in as
> > % $REMOTE_USER.
> > This sort of thing has come up on the list frequently.
> > You should set
> > register_globals = on
> > in your php.ini file and kick your web server.
> >
> > HTH & HAND
>
> But! Two things:
>
> 1. register_globals were already turned on
> 2. Surely the PHP designers would not force users to have such a major
> security advantage turned off for getting a variable that is a true apache-var?
>
> So problems remains: Where did the REMOTE_USER go?
>
> I am BTW running Apache 2.0 with PHP 4.2.2 as a CGI-module. When it worked
> last time I was "only" running Apache 1.3.26. Maybe the Apache-guys changed
> something?! Could be a RTFM-case...
>
> Well, probably I should drop using Apache's old auth-sceme and run all in
> PHP anyway.
>
> Thank you for the input.
>
> Best
>
> Frank
> U5com
Is this snippet from the docs possibly relevant?
Chapter 17. HTTP authentication with PHP
The HTTP Authentication hooks in PHP are only available when it is running
as an Apache module and is hence not available in the CGI version.
--
David Robley
Temporary Kiwi!
Quod subigo farinam