Monday, November 1, 2010

Implement Impersonation:

Impersonate the Microsoft IIS Authenticated Account or User:
To impersonate the IIS authenticating user on every request for every page in an ASP.NET application, we must include an tag in the Web.config file of this application and set the impersonate attribute to true.
<identity impersonate="true" />


Impersonate a Specific User:
To impersonate a specific user for all the requests on all pages of an ASP.NET application, you can specify the userName and password attributes in the tag of the Web.config file for that application.
<identity impersonate="true" userName="AccountNAME" password="Password" />

No comments:

Post a Comment