Search code examples
asp.netasp.net-mvc-2asp.net-mvc-3impersonationwindows-security

ASP.NET impersonation problem


I am trying to get my IIS 7.5 to impersonate the account of the user accessing a site through a browser.

If I use...

    <identity impersonate="true" userName="mydomain\myusername" password="mypassword" />

it works just fine. However, if I use...

    <identity impersonate="true" />

It won't pick up the user. Am I missing some code? Or is this an IIS 7.5 configuration issue?


Solution

  • I posted a previous answer, but I think this one applies better

    Try to select if you are using a specific user or pass through. Not 100% sure if this solves your problem, just trying to help!

    pass through or user specific