Page 1 of 1

IIS 7 Auto-Authentication - (Solved)

Posted: Mon Feb 13, 2012 1:40 pm
by Bigun
I've seen this done with classic ASP, so I know it is possible, but I just cannot seem to get it to work with PHP. Here is the situation.

I have an application I am re-writing into PHP from classic ASP. I can do authentication through form input and ldap_bind, however I would like to somehow capture the username of the LDAP authenticated user automatically via internet explorer with no user input needed. Anonymous access is already turned off as this is an internal site for company employee use only. I'm trying to echo various $_SERVER variables (REMOTE_USER, PHP_AUTH_USER, USER_AUTH) and they are all showing up blank through IE. Here is the server setup:

Windows Server 2008 R2 64-bit
IIS v7.5
PHP 5.3.8 (Fast CGI)

I don't know where else to ask this, but I just have a feeling more support will be shown from an open-source community rather than a closed one. :wink:

Am I missing a piece to this puzzle?

*EDIT*

There were some IIS settings that needed to be tweaked. I got things working now.

http://learn.iis.net/page.aspx/785/enab ... decisions/