July 8th, 2013, 11:12 PM
Join Date: Jun 2008
Time spent in forums: 1 Day 17 h 43 m 9 sec
Reputation Power: 8
IIS 7/PHP Intranet Site - Windows Authentication Not Working As Intended
Under IIS 6 you could configure integrated Windows Authentication by going to the Directory Security or File Security tab to select the Windows Integrated Authentication check box. You could then uncheck Anonymous Authentication to get IIS to display information related to the user.
$user = $_SERVER['LOGON_USER'];
Would display DOMAIN\Username of the logged on user.
Under IIS 7 when I try to repeat this behavior it does not work as it did under IIS 6.
I have enabled Windows Authentication within II 7 and disabled Anonymous and Basic Authentication within IIS. Doing so prompts the user for a username and password. If the user inputs their username (or DOMIAN\username) and password it still fails.
Not sure why something so simple under IIS 6 seems to be so overly complicated in IIS 7. Could I be missing a step?
Thank you for reading.