Re: impersonation, thread and w2k

From: Frank Samuel (FSamuel_nospam_at_misag.com)
Date: 08/12/03

  • Next message: John Swaringen: "Running .NET Program from Network Share (includes COM components)"
    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
    >
    >


  • Next message: John Swaringen: "Running .NET Program from Network Share (includes COM components)"