Re: Capturing Windows Login Name
- From: Manuel Lemos <mlemos@xxxxxxx>
- Date: Sun, 03 Feb 2008 04:22:11 -0200
Hello,
on 02/03/2008 01:17 AM Jerry Stuckle said the following:
I know it is not possible to get Windows login name using PHP because
it is a server-side script, but I dunno whether anyone has tried using
This is not accurate, the Windows logon name is passed to servers by
several browsers (not just IE) when servers ask for Windows NTLM
authentication.
You just need to configure your Web server to require Windows
authentication, and you get the current logged user logon name using
GetEnv('LOGON_USER'); .
Forget Javascript, it would never work.
And which browsers are these? I want to ensure they are never installed
on my system. Such operation would be a tremendous breach of security.
Internet Explorer and Firefox support NTLM. Maybe other browser
NTLM is an authentication protocol. The client (the browser) does not
send passwords to the server. There is nothing insecure about this. The
browsers just send the hashed passwords to the server. The server just
compares hashes and tells if what the browser sent was correct.
If the authentication succeeds, the server allows the access of whatever
page (including PHP scripts).
This is a multi-step protocol. The user name is only passed to the
server in the last step, if the previous steps succeed.
The idea is to not make the user enter the same password again to access
a site under the same Windows controller domain, after he has logon on
his Windows machine account that belongs to the same Windows domain.
--
Regards,
Manuel Lemos
PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
.
- Follow-Ups:
- Re: Capturing Windows Login Name
- From: Jerry Stuckle
- Re: Capturing Windows Login Name
- References:
- Capturing Windows Login Name
- From: K. A.
- Re: Capturing Windows Login Name
- From: Manuel Lemos
- Re: Capturing Windows Login Name
- From: Jerry Stuckle
- Capturing Windows Login Name
- Prev by Date: Re: why does 69.99*100=6998?
- Next by Date: Re: why does 69.99*100=6998?
- Previous by thread: Re: Capturing Windows Login Name
- Next by thread: Re: Capturing Windows Login Name
- Index(es):
Relevant Pages
|