RE: [PHP-WIN] How can I retreive a users Windows logon name?
| From: | Christian Sandfeld | Date: | Tue, 18 Sep 2001 09:15:43 +0000 |
| Subject: | RE: [PHP-WIN] How can I retreive a users Windows logon name? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-9399@lists.php.net to get a copy of this message | ||
Eric,
Thanks for sharing. I too can not get the user name for pages where
anonymous access is allowed, but since it's on our intranet, that's ok (all
users are loged on to our NT domain).
Regards,
Christian
-----Original Message-----
From: Eric R. Gavin [mailto:jedi@tstonramp.com]
Sent: 17. september 2001 22:50
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] How can I retreive a users Windows logon name?
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.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net