Re: Using PHP with windows logon

From: Date: Thu, 10 Jul 2003 01:49:40 +0000
Subject: Re: Using PHP with windows logon
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-154661@lists.php.net to get a copy of this message
On Wed, 9 Jul 2003 19:02:21 +0930, you wrote: >can you use your windows logon as set it as a variable in php?? > >eg I log onto a windows machine using brenton can i use a php script to set >that as a variable, I have seen a similar type function before but i have no >idea how it works, I know windows sets the variable %username% that as a >network administrator i use in shortcuts to point to their home drive.. The name the remote user logged in as on the client machine, or the user the script is running under on the server? It's not really clear. get_current_user() does work under Windows. If you're trying to authenticate a user on an intranet... well, there's LDAP, or NTLM. I've seen NTLM authentication done with PHP under IIS, and there are NTML modules for Apache - http://modntlm.sourceforge.net/

« previous php.general (#154661) next »