get windows client login

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have to create an intranet website by php, sql server and IIS.
One requirement is to get the user name from the windows client login.
I'd like to know if it is possible, and if yes how?

I think it should be possible by asp, but in php??

Re: get windows client login

Quoted text here. Click to load it

No idea, and if it can be done it's probably a very bad idea.

You can (and I have done this) authenticate a user against Active Directory
using the LDAP protocol. There is even a class to help you do this.

Re: get windows client login


On 11/15/2004 02:32 PM, wrote:
Quoted text here. Click to load it

You just have to make your Web server require NTLM authentication for
the pages that are served by PHP and you can get the authenticated user
calling GetEnv("LOGON_USER"); .


Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP /

PHP Reviews - Reviews of PHP books and other products /

Metastorage - Data object relational mapping layer generator

Re: get windows client login

On Mon, 15 Nov 2004 16:32:59 GMT, wrote:

Quoted text here. Click to load it

 In IIS, turn off anonymous access, turn on "integrated Windows
authentication", and use phpinfo() to find where it puts the username,
somewhere in $_SERVER. Far from ideal in various circumstances, but might be a
start for you.

< Space: disk usage analysis tool

Site Timeline