Re: Start external Process under different user account in ASP.NET???
From: bruce barker (nospam_brubar_at_safeco.com)
Date: 07/13/04
- Next message: Raterus: "Re: Forcing Reauthentication for a Webform with NTLM auth..ion"
- Previous message: Jim Cheshire [MSFT]: "RE: Private Assemblies & Strong Names??"
- In reply to: Shawn Anderson: "Start external Process under different user account in ASP.NET???"
- Next in thread: Shawn Anderson: "Re: Start external Process under different user account in ASP.NET???"
- Reply: Shawn Anderson: "Re: Start external Process under different user account in ASP.NET???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 13 Jul 2004 08:52:13 -0700
you should use CreateProcessWithTokenW. you will have use DuplicateToken to
get a primary token necessary for the call.
-- bruce (sqlwork.com)
"Shawn Anderson" <sanderson@eye-catcher.com> wrote in message
news:O6kE4jOaEHA.2056@TK2MSFTNGP12.phx.gbl...
> Does anyone know how to get Process.Start() to use the security context of
> the user that my ASP.NET app is impersonating? It seems that it is always
> run as the ASPNET User no matter what I do.
>
> I know that I can look into CreateProcessWithLogonW, but I really do not
> want to ask and store a users password.
>
> Anyone have any thoughts?
>
> Thanks
> Shawn
>
>
- Next message: Raterus: "Re: Forcing Reauthentication for a Webform with NTLM auth..ion"
- Previous message: Jim Cheshire [MSFT]: "RE: Private Assemblies & Strong Names??"
- In reply to: Shawn Anderson: "Start external Process under different user account in ASP.NET???"
- Next in thread: Shawn Anderson: "Re: Start external Process under different user account in ASP.NET???"
- Reply: Shawn Anderson: "Re: Start external Process under different user account in ASP.NET???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
Loading