Re: ASP.NET Impersonation in a Windows 2003 non domain member server



You need Windows authentication enabled for that.

Then you either generally impersonate for the length of the whole request using the <identity impersonate="true" /> config switch - or programmatically by calling

using (((WindowsIdentity)Context.User.Identity).Impersonate())
{
}

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Hi everybody,

Is it possible to do ASP.NET Impersonation in a windows 2003 non
domain member server (locate at the DMZ)? If so, how can I do that?

Thanks in advance for your kind reply

Best regards,

Johann Granados
Staff DotNet


.



Relevant Pages