Impersonating IIS User in Global.asax methods
From: Richard Szalay (cozmo@bigpond.net.au)
Date: 12/17/02
- Next message: Larry Hastings: "Re: how to set security rights in order to write to the registry?"
- Previous message: Trevor Lawrence: "Impersonation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: cozmo@bigpond.net.au (Richard Szalay) Date: 17 Dec 2002 14:06:20 -0800
Hi all,
I am attempting to impersonate as the IIS user in the Global.asax
methods (specifically, Application_Start). I am aware that ASP.NET
impersonation (configured in web.config) is done AFTER the Global.asax
methods are called.
Eg.
In an executing aspx page:
System.Security.Principal.WindowsIdentity.GetCurrent().Name ==
"THISCOMPUTER\MyWebUser"
In the global.asax:
System.Security.Principal.WindowsIdentity.GetCurrent().Name ==
"THISCOMPUTER\ASPNET"
Is it possible for me to manually do what ASP.NET does later on with
impersonating the IIS user (without hardcoding/storing the
username/password) ?
Any help would be greatly appreciated.
Cheers
Richard
- Next message: Larry Hastings: "Re: how to set security rights in order to write to the registry?"
- Previous message: Trevor Lawrence: "Impersonation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|