<p>I have a website that works correctly under IIS 6.0: It authenticates users with windows credentials, and then when talking to the service that hits the DB, it passes the credentials.</p>

<p>In IIS 7.0, the same config settings do not pass the credentials, and the DB gets hit with NT AUTHORITY\ANONYMOUS.</p>

<p>Is there something I'm missing? I've turned ANONYMOUS access off in my IIS 7.0 website, but I can't get the thing to work.</p>

<p>These are the settings that I'm using on both IIS 6.0 and 7.0:</p>

<pre><code>&lt;authentication mode="Windows"&gt;
&lt;identity impersonate="true"&gt;
</code></pre>

<p>What changed from 6.0 to 7.0?</p>

[{'answer_id': 10444, 'author': 'Guy', 'author_id': 993, 'author_profile': 'https://Stackoverflow.com/users/993', 'pm_score': 0, 'selected': False, 'text': '<p>Interesting... I have the opposite problem - <strong>Not being able</strong> to get the authentication to be passed from the client browser, through the webserver and onto the database within a large corporate network over firewalls.</p>\n\n<p>I also feel that "end to end user" authentication to the database is a bad idea and a potential security risk.  There is nothing to stop the end user from loading up SQL Query and connecting directly to your database, so you\'d better have your schema locked down!</p>\n\n<p>@Esteban - Clarified my <em>not very useful in helping you</em> answer.</p>\n'}, {'answer_id': 80558, 'author': 'Christopher G. Lewis', 'author_id': 13532, 'author_profile': 'https://Stackoverflow.com/users/13532', 'pm_score': 0, 'selected': False, 'text': "<p>Typically if you are doing double hop authentication like this, Kerberos is typically involved unless the first authentication is Basic.</p>\n\n<p>I would check the authentication on the IIS 6 servers and make sure that it's the same on IIS 7.</p>\n\n<p>If the IIS 6 box is set to Windows Integrated, then you need to verify the kerberos settings - SPNs, Delegation etc.</p>\n"}, {'answer_id': 228364, 'author': 'tvanfosson', 'author_id': 12950, 'author_profile': 'https://Stackoverflow.com/users/12950', 'pm_score': 1, 'selected': False, 'text': "<p>Is your IIS server set up to be trusted for delegation by the SQLServer? I've run into this before with WebDAV where we've had to have the server running IIS trusted by the file server to authenticate on the file server's behalf.</p>\n"}, {'answer_id': 267243, 'author': 'Maxime Rouiller', 'author_id': 24975, 'author_profile': 'https://Stackoverflow.com/users/24975', 'pm_score': 4, 'selected': True, 'text': '<p>There has been changes between IIS7 and IIS6.0. I found for you one blog post that might actually help you (<a href="http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applications-Integrated-mode.aspx" rel="noreferrer">click here to see it</a>).</p>\n\n<p>Are you running your application in Integrated Mode or in Classic Mode? From what I saw, putting the Impersonate attribute at true should display you a 500 error with the following error message:</p>\n\n<blockquote>\n  <p>Internal Server Error.  This is HTTP\n  Error 500.19: The requested page\n  cannot be accessed because the related\n  configuration data for the page is\n  invalid.</p>\n</blockquote>\n\n<p>Here is the workaround that is proposed:</p>\n\n<blockquote>\n  <p>Workaround:</p>\n  \n  <p>1) If your application does not rely\n  on impersonating the requesting user\n  in the BeginRequest and\n  AuthenticateRequest stages (the only\n  stages where impersonation is not\n  possible in Integrated mode), ignore\n  this error by adding the following to\n  your application’s web.config:\n  </p>\n\n<pre><code>&lt;validation validateIntegratedModeConfiguration="false"\n</code></pre>\n  \n  <p>/></p>\n  \n  <p></p>\n  \n  <p>2) If your application does rely on\n  impersonation in BeginRequest and\n  AuthenticateRequest, or you are not\n  sure, move to classic mode.</p>\n</blockquote>\n\n<p>I hoped that was useful to understand how IIS 7.0 now works.</p>\n'}]
['https://Stackoverflow.com/questions/10435', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/781/']