0

We have hardened systems and currently in process of engineering an application that utilizes .NET Impersonation of a logged in user. I have scoured high and low, from google to alta-vista (:P) looking for an answer.

I came across this link, but it's lessons learned did not work on our systems.

User rights needed for IIS 7.5 application pool user (domain user, not the AppPoolIdentity)

Can any of you programmers share knowledge of what permissions (local policies, folder permissions, IIS settings etc.) are needed to get .NET Impersonation working?

Here is our code (sanitized for internet display):

using (impersonationContext = ((System.Security.Principal.WindowsIdentity)User.Identity).Impersonate())
  {
    returnResult["testStatus"] = ((System.Security.Principal.WindowsIdentity)User.Identity).Name;
  }
Community
  • 1
  • 1

0 Answers0