Re: Auth_User
| From: | Gabor Niederl�nder | Date: | Mon, 21 Jun 2004 08:23:43 +0000 |
| Subject: | Re: Auth_User | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188723@lists.php.net to get a copy of this message | ||
If you are using IIS with PHP as an ISAPI-module, it is possible to find out
the NT-User through $_SERVER['AUTH_USER'].
Apparently it is not so easy on Apache.
Does anyone know a solution?
Gabor
"Gerben" <gerbendekeijzer@12move.nl> schrieb im Newsbeitrag
news:20040620165657.57593.qmail@pb1.pair.com...
> This var means something else
> when you write the following code:
> Header("WWW-Authenticate: Basic realm=\"Enter username and
password\"");
> Header("HTTP/1.0 401 Unauthorized");
> Your browser will produce a popup requesting a username an password
>
> This it what you get returned when using $_SERVER['AUTH_USER']
>
>
>
>
> "Gabor NiederläNder" <gabor.niederlaender@wu-wien.ac.at> wrote in message
> news:20040620111141.22566.qmail@pb1.pair.com...
> > Hi!
> >
> > I have installed a Apache Server (+php) in a Windows NT network. I
> > would like to identify the Windows NT user visiting my php pages.
> > When I was using IIS, I think it was quite easy to find it out through
> > the $_SERVER['AUTH_USER'] variable. But it doesn't seem to work with
> > apache. Is there another way?
> >
> > Cheers,
> > Gabor