Re: Pass Windows credentials

From: Date: Wed, 31 Oct 2007 18:06:31 +0000
Subject: Re: Pass Windows credentials
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-263890@lists.php.net to get a copy of this message
The server variable AUTH_USER contains the windows login name. If I rememebr correctly, within IIS you need to have your website setup for windows authentication. Otherwise you will only be pull the Anonymous access name for your server. I haven't worked much on Linux, so I don't know if there is an option to use Windows Authentication or not. You can echo it out like this: <?php echo $_SERVER['AUTH_USER']; ?> Hope that helps. On 10/31/07, Simone Nanni <simone.nanni@ptvonline.it> wrote: > > Hi everybody, > i'm trying to do an hard stuff..... > I want to create a PHP page where users can authenticate themselves > passing their Windows (XP or 2000) logon credentials trasparently. > So, if i've made logon on my workstation with "username" and > "password" i > want to catch them and reuse to give them access. > > This stuff will run on a Linux Slackware box with Apache 2.2.4 - PHP 5.2.4and Samba > 3.0.26a > > Somebody can help me?! > Thanx a lot! > > Simone Nanni > ICT Technician > A.O.U. Policlinico Tor Vergata > Viale Oxford, 81 > 00133 - Roma - RM - Italy

« previous php.general (#263890) next »