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:[EMAIL PROTECTED]]
Sent: 17. september 2001 22:50
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]