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?Answer1:
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!
<img alt="pass through or user specific" class="b-lazy" data-src="https://i.stack.imgur.com/UXthB.png" data-original="https://i.stack.imgur.com/UXthB.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />Answer2:
On the enabling impersonation, check what types of security you have enabled:<ul><li>
Open IIS</li> <li>
Go to your site, click on it</li> <li>
Click on authentication (a blue guy with a lock icon)</li> <li>
Make sure you have ASP.NET impersonation enabled</li> </ul>
Impersonation should be enabled
<img alt="Enable impersonation" class="b-lazy" data-src="https://i.stack.imgur.com/FhWD8.png" data-original="https://i.stack.imgur.com/FhWD8.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />Answer3:
You have to configure IIS to pass the security token to ASP.NET. See <a href="http://msdn.microsoft.com/en-us/library/aa292118%28v=vs.71%29.aspx" rel="nofollow">here</a>Answer4:
Did you try turning on Windows Authentication?