Re: impersonation, thread and w2k
From: Frank Samuel (FSamuel_nospam_at_misag.com)
Date: 08/12/03
- Previous message: Stefan: "Where to store secret information"
- In reply to: Fabio Cavazzuti: "impersonation, thread and w2k"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 12 Aug 2003 15:37:46 +0200
Hi,
perhaps you should call AppDomain.SetThreadPrincipal() - then new threads
get the modified principal by default.
Frank
"Fabio Cavazzuti" <fabio@cavazzuti.org> wrote in message
news:O96jWa$WDHA.2444@tk2msftngp13.phx.gbl...
> Hi all,
> under framwork 1.1 and 1.0, in C# but it's a detail, impersonation
> process level work fine (UserLogon(), WindowsIdentity etc. etc.).
>
> How i can impersonate a user in a thread ?
>
> After the impersonation, the access to the remote resources by methods
> of the main thread work, but not if invoked in a thread.
>
>
> Many thanks, Fabio
>
>
- Previous message: Stefan: "Where to store secret information"
- In reply to: Fabio Cavazzuti: "impersonation, thread and w2k"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]