first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

How To: Use Impersonation and Delegation in ASP.NET 2.0: Notes; http://msdn2.microsoft.com/en-us/library/ms998351.aspx

This official statement directly links delegation and impersonation and implies that you cannot use IIS to serve resources that are not on the same machine as IIS without delegation.

This is this first of many statements that distinguish Windows Server 2003 from previous platforms capable of running IIS.

This statement introduces WindowsIdentity.Impersonate and later it will compared to the Win32 API call, LogonUser().

This statement is a rare example of documenting the advantage WindowsIdentity.Impersonate() has over declaring <identity /> in web.config.

The LogonUser API apparently is only available on Windows 2000 Server or Windows Server 2003.

This shows the advantage LogonUser has over the WindowsIdentity object and reading carefully to this point should clearly sketch out a relationship among the <identity /> declaration, WindowsIdentity and LogonUser. This relationship is very complex and should be studied carefully.

This may be an indirect reference to the <alwaysFlowImpersonationPolicy /> element in addition to the AspCompat="true" setting referred to later in the prose hyperlink.

This describes IIS behavior when <authentication mode="Windows" /> and <identity impersonate="true" /> is declared in web.config.

When LogonSessionType.Interactive (=2) is sent to LogonUser, IIS can, “…access remote resources, request an interactive logon session. This results in a logon session that has network credentials. The user account passed to logon user must be granted the Log on locally user right.”

The LogonSessionType enum is defined in the subsequent code sample.

*“…if you are running on Windows Server 2003 with IIS 6.0 configured to run in worker isolation mode (the default), you can avoid impersonation by configuring your ASP.NET application to run in a custom application pool that runs under a specific domain identity.”

The options: Kerberos authentication and delegation, LogonUser and an Interactive logon session, protocol transition and basic authentication and impersonation.

mod date: 2007-10-04T22:53:47.000Z