Re: How can I retrieve a users Windows logon name?

From: Date: Mon, 17 Sep 2001 16:25:34 +0000
Subject: Re: How can I retrieve a users Windows logon name?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9385@lists.php.net to get a copy of this message
If I run phpinfo() on a server where the files are password protected (basic authentication from IIS), I get 4 different entries, all of which contain the logon domain and name: AUTH_USER LOGON_USER REMOTE_USER UNMAPPED_REMOTE_USER Isn't this the thing you are looking for? Server: Win 2000, PHP 3.0.16 as CGI module Andrian Christian Sandfeld wrote: > > Debra, > > Unfortunately $REMOTE_USER is not set by IIS (atleast not on mine) and > to my > knowledge IIS does not support .htaccess files. > > But thanks anyway ;-) > > Any other ideas out there ? > > /Christian > > -----Original Message----- > From: samsom, debra [mailto:dsamsom@bristol.ca] > Sent: 17. september 2001 16:19 > To: 'Christian Sandfeld' > Subject: RE: [PHP-WIN] How can I retrieve a users Windows logon name? > > Have you looked at .htaccess and using $REMOTE_USER in your PHP code to > get > the userid. Under Apache it works great, I'm not sure about IIS. > > -----Original Message----- > From: Christian Sandfeld [ mailto:csa@zen-sys.com > <mailto:csa@zen-sys.com> ] > > Sent: Monday, September 17, 2001 7:01 AM > To: 'Ertan Tike' > Cc: 'php-windows@lists.php.net' > Subject: RE: [PHP-WIN] How can I retreive a users Windows logon name? > > Ertan, > > Thank you for your speedy reply. I had hoped for some sort of 'pure' PHP > > solution, but hey, this might work. I will definately give it a try :) > > Meanwhile, if there are others who have an idea how this could be > accomplished through PHP, I would be happy to hear from you. > > Regards, > > Christian > > -----Original Message----- > From: Ertan Tike [ mailto:ertant@eczacibasi.com.tr > <mailto:ertant@eczacibasi.com.tr> ] > Sent: 17. september 2001 12:43 > To: 'Christian Sandfeld' > Cc: 'php-windows@lists.php.net' > Subject: RE: [PHP-WIN] How can I retreive a users Windows logon name? > Importance: Low > > hi, > i have a attached security verification c++ project (i'm found this in > ms > site). > you can compile then exec in php (i'm not sure at this point) > exe giving a exit code.. 0 (invalid) or 1 (valid).. > this is may work.. (cause i'm use same way.. but not under the web..) > > -----Original Message----- > From: Christian Sandfeld [ mailto:csa@zen-sys.com > <mailto:csa@zen-sys.com> > < mailto:csa@zen-sys.com > <mailto:csa@zen-sys.com> > ] > > Sent: Monday, September 17, 2001 12:23 PM > To: 'php-windows@lists.php.net' > Subject: [PHP-WIN] How can I retreive a users Windows logon name? > > Hi group, > > Is there any way I can retreive a users Windows logon name? > > I'm running a system with IIS 4/PHP 4.0.6/MySQL 3.23.xx. > > Basicaly what I'm after is some simple way to verify what user is > accessing > our intranet, without having to prompt the user for his initials. > > I am aware that this does not provide for much security, but that's ok > (I'm > not after security, only after a simple user verification). > > I thank you in advance for your time ;-) > > /Christian > > ---------------------------------------------- > Christian Sandfeld > Zensys A/S > ---------------------------------------------- > > -- > PHP Windows Mailing List ( http://www.php.net/ > <http://www.php.net/> < > http://www.php.net/ > <http://www.php.net/> > ) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#9385) next »