Re: Thread identity
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 10/06/05
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: Forms authentication and search engines"
- Previous message: S.M. Altaf [MVP]: "Re: Forms authentication and search engines"
- In reply to: Raster Space: "Thread identity"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: Thread identity"
- Reply: Dominick Baier [DevelopMentor]: "Re: Thread identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 6 Oct 2005 15:07:03 -0500
You can impersonate an administrator for the duration of the call, or you
can run the worker process as the administrator and undo the impersonation
during the call. You can also put the admin code in a COM+ application that
runs under a different identity.
The WindowsImpersonationContext starts and stops impersonation. The only
other thing is getting the logon token for the administrator to use to
impersonate. The MSDN docs on WindowsImpersonationContext have a good
sample on that though. Then the problem is securely storing the
credentials...
Joe K.
"Raster Space" <raster2000@hotmail.com> wrote in message
news:di3v0t$pdn$1@phys-news1.kolumbus.fi...
>I have managed Web Application running on ASPNET user rights. How can I
>execute certain (not all) methods with administrator privileges? Any ideas?
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: Forms authentication and search engines"
- Previous message: S.M. Altaf [MVP]: "Re: Forms authentication and search engines"
- In reply to: Raster Space: "Thread identity"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: Thread identity"
- Reply: Dominick Baier [DevelopMentor]: "Re: Thread identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|