I just created the base ASP MVC website for deployment on our intranet. He expects users to be in the same domain as the IIS mailbox, and if you are not an authenticated Windows user, you should not be granted access.
I just deployed this for IIS6 running on Server 2003 R2 SP2. The web application is configured with its own pool with its own pool user account. The IIS directory security settings for the web application are set only in the "Integrated Windows System", and the web.config file has:
<authentication mode="Windows" />
In a remote desktop session on the IIS6 server itself, the IE7 browser window can successfully authenticate and navigate the web application when accessed via http: // localhost / myapp .
However, also from the server, if it is accessible through the server name (i.e. http: // myserver / myapp ), then IE7 presents a credential dialog, which after three attempts to enter the correct credentials will eventually return "HTTP Error 401.1 - Unauthorized: Access denied due to invalid credentials. "
The same problem occurs when the workstation looks at the URL of the web application (naturally, using the server name, not "localhost").
IIS6 is a member of the only domain that we have and does not have a firewall.
Is there something that I could not properly configure for this?
Thanks,
I have tried offers from Matt Ryan, Graphain and Mike Dimmick so far without success. I just created a virtual machine test lab with a Server 2003 DC server and a separate server 2003 IIS6 server, and I can replicate the problem.
I see an entry in the IIS6 system event log when I first try to access the site through a non-localhost URL (i.e. http: // iis / myapp ). FQDN errors do not work either.
Source: Kerberos, Event ID: 4
The kerberos client received a KRB_AP_ERR_MODIFIED error from host / iis.test.local. The target name used is HTTP / iis.test.local. This indicates that the password used to encrypt the Kerberos service ticket is different from the password on the destination server. Typically, this is due to identically named computer accounts in the target area (TEST.LOCAL) and the client area.