Re: How can I retreive a users Windows logon name?

From: Date: Mon, 17 Sep 2001 20:50:28 +0000
Subject: Re: How can I retreive a users Windows logon name?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9394@lists.php.net to get a copy of this message
It's important to note that this only works for pages that require authentication. I don't believe that there is a way to retrieve username information via pages that are accessed anonymously (i.e. if you were trying to retrieve the name of the anonymous web user.) I only say this because I tried to retrieve user name for debugging purposes and couldn't do it. There are/were some POSIX functions/modules that supposedly do this but I think I screwed something up trying to use them, and needed to dl() the module or something like that, which I didn't do because I'm the laziest person alive ^_^ > If you change the access control from Basic to NT LM for the Intranet web site you will gain the following things: > [snip] > > 2) The users login name and auth method will be available in $AUTH_USER and $AUTH_TYPE.

« previous php.windows (#9394) next »