Re: Using WinNT login

From: Date: Thu, 08 Apr 2004 14:13:58 +0000
Subject: Re: Using WinNT login
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182825@lists.php.net to get a copy of this message
From: "Alex Hogan" <Alex.Hogan@AlliedElec.com> > Is it possible to use the users WinNT network login for a php app? > If so can someone point me in the direction for a tutorial or directions. Assuming IIS, turn off "anonymous access", which will force them to log in as a user that has permission to reach the file they reqested. I believe you can then use $_SERVER['LOGON_USER'] or something similar to find out their username. (This also assumes an NTFS file system, but that should already be in place). It's the same as restricting access to any other file on Windows using the security settings. You remove the "Everyone" user and give access to either specific users or groups. If this is confusing or I wasn't clear on something, feel free to ask more questions. ---John Holmes...

« previous php.general (#182825) next »