Re: Re: NT username detectable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 09/03/2004 11:12 AM, Trevor Gryffyn wrote:
Won't "GetEnv" get the environment of the machine the script is run on?
So wouldn't that end up giving you the login of the user logged into the
web server, not the remote user?

No, that is an environment variable set by IIS for pages on which it is requesting NTLM authentication. This means that IIS already has successfully authenticated the remote user. The LOGON_USER contains the user name.



I just did a test and it didn't work.  And I don't see my domain
username anywhere in the $_ENV variable either.

You need to configure IIS to require NTLM authentication for that page or else nothing happens.



The PHPINFO shows a LOGON_USER but mine doesn't.  How odd.  Their
LOGON_USER is blank, but it still shows up where it doesn't on my
server.  Wonder why?  Anyone have any thoughts?  (Maybe it's blank
because it's trying to get MY username and that doesn't work across the
internet?  Still not sure why it shows up on their PHPINFO and not
mine).

It will only work if the remote user has logged in the same Windows domain.


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux