Re: Re: How to Pass the Username which from Windows Log in

From: Date: Fri, 29 Mar 2002 19:18:02 +0000
Subject: Re: Re: How to Pass the Username which from Windows Log in
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12832@lists.php.net to get a copy of this message
Actually it retrieves the userid of the server instead of the client's. ----- Original Message ----- From: "Vail, Warren" <Warren.Vail@schwab.com> To: "'J Wynia'" <letterj@phpgeek.com>; <php-general@lists.php.net>; <php-windows@lists.php.net> Sent: Friday, March 29, 2002 9:44 AM Subject: RE: [PHP-WIN] Re: How to Pass the Username which from Windows Log in > Does this retrieve the userid of the machine where the web server is > running, or does it retrieve the userid of the machine where the browser is > running? > > > Warren Vail > Tools, Metrics & Quality Processes > (415) 667-7814 > Pager (877) 774-9891 > 215 Fremont 02-658 > > > -----Original Message----- > From: J Wynia [mailto:letterj@phpgeek.com] > Sent: Friday, March 29, 2002 8:38 AM > To: php-general@lists.php.net; php-windows@lists.php.net > Subject: [PHP-WIN] Re: How to Pass the Username which from Windows Login > > > $network = new COM("WScript.Network"); > $computername = $network->ComputerName; > $username = $network->UserName; > > Password can't be grabbed for fairly obvious reasons. > > "Jack" <jack@nedcor.com> wrote in message > news:20020325062554.44036.qmail@pb1.pair.com... > > Dear all > > I want to prevent user to make another login before they can browse the > > Intranet, so is there anyway that php can grep the username from the > windows > > Login or Domain Login? > > Which means if a user can login to the Windows NT, then he/she will have > the > > right to browse the Intranet! > > > > Thx a lot > > Jack > > jack@nedcor.com > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.windows (#12832) next »