Re: winNT user

From: Date: Tue, 12 Dec 2000 11:25:13 +0000
Subject: Re: winNT user
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29863@lists.php.net to get a copy of this message
No. That would be a serious security flaw. On *nix you would set a htaccess file to allow access to your web site. This would then populate $HTTP_SERVER_VARS["remote_user"] with the username on a successful login. On NT I think you have to change security configs from the IIS Administrator this works in a similar way to htaccess. Regards Andy Woolley www.databasewatch.com ----- Original Message ----- From: "Dominick Vansevenant" <dv@mobyus.com> To: "Florian Clever" <clever@ukl.uni-freiburg.de>; <php-general@lists.php.net> Sent: Tuesday, December 12, 2000 10:39 AM Subject: RE: [PHP] winNT user > Can it be done in javascript then? > > D. > > -----Original Message----- > From: Florian Clever [mailto:clever@ukl.uni-freiburg.de] > Sent: dinsdag 12 december 2000 11:35 > To: php-general@lists.php.net > Subject: [PHP] winNT user > > > >> how can I see with my webapp in php which user on the windows NT client > is > >> logged on? On Windows and on linux? > > > >Put this in a PHP file and surf to it: > ><?php phpinfo();?> > > > >This screen will show you everything there is to show. > > > >If you don't see your username, then the browser and server are not > >providing it. > > > >I don't think username on the end-user's computer is sent to the server. > > $HTTP_SERVER_VARS["remote_user"] contains the user name if you are > authenticated. Thus if you are allowing anonymous connections it will > not be set. > > Florian > > -- > > Florian Clever > > fc@clever-soft.com > http://www.Clever-Software-Solutions.de/ > > PGP Key @ ldap://certserver.pgp.net/ > > 2 + 2 = 4 (for the time being). > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#29863) next »