Some rumors about ASP. Impersonation

Source: Internet
Author: User

The following are theoretical knowledge, unproven.

System.Web The following configuration section

<identity impersonate= "true" />

or <identity impersonate= "true" userName= "accountname" password= " Password " />

You can also use code to impersonate an identity by calling the Windows API, which is in place: http://www.cnblogs.com/awpatp/archive/2010/02/02/1662277.html

Note impersonation is local to a particular thread. When code changes threads, such as when using thread pooling, the new thread executes using the process identity by DEFA Ult.

Inpersonation is not compatible with IIS Integrated mode (ASP. Integrated mode is unable to impersonate the request identity in the beginrequest and Au Thenticaterequest pipeline stages.), can be adjusted by one configuration: http://www.allenconway.net/2010/11/how-to-use-impersonation-in-aspnet.html

<validationvalidateIntegratedModeConfiguration="false"/>

http://mvolo.com/breaking-changes-for-aspnet-20-applications-running-in-integrated-mode-on-iis-70/

It might be easier to have the program run under a generic account (application pool identity) relative to Imperonation, and then give the generic account enough permissions

Some rumors about ASP. Impersonation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.