Re: Authentication for remote Processes and Services

From: Rob Teixeira [MVP] (RobTeixeira_at_@msn.com)
Date: 09/24/04


Date: Thu, 23 Sep 2004 18:07:55 -0400

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsIdentityClassImpersonateTopic.asp

When dealing with impersonation, be careful. Not all impersonation logon
tokens have network priveleges. In other words, depending on how you make
the API calls, you might impersonate a user as far as the local machine is
concerned, but a remote machine might reject that logon because it isn't a
primary token or a token with network priveleges. Make sure you pass the
correct the flags and use the correct API calls.

-Rob Teixeira [MVP]

"Vivek" <v_mangal@hotmail.com> wrote in message
news:e1cq6eaoEHA.2764@TK2MSFTNGP11.phx.gbl...
> Hi,
> I am trying to get remote process and servicecontroller objects. While
they
> code works if i have privilages in the remote machine, it does not when i
> dont have them. Now my question is how do i specify
> username/password/privilages when i use process and servicecontroller
> objects. Any code example would be really helpful.
>
> Thanks
> Vivek
>
>



Relevant Pages

  • RE: Impersonating and Windows Authentication
    ... impersonation tokens. ... to access a network resource a primary token is ... forwarding) and enable credentials forwarding on the web server and ad ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: RegLoadKey while impersonated.
    ... The application is complete except for the impersonation. ... if I get my hive information, ... certain it’s related to the tokens ... string retvalue = dPrinter.ToString; ...
    (microsoft.public.dotnet.languages.csharp)
  • RegLoadKey while impersonated.
    ... The application is complete except for the impersonation. ... if I get my hive information, ... certain it’s related to the tokens ... string retvalue = dPrinter.ToString; ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: RegLoadKey while impersonated.
    ... The application is complete except for the impersonation. ... if I get my hive information, ... certain it’s related to the tokens ... string retvalue = dPrinter.ToString; ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: RegLoadKey while impersonated.
    ... The application is complete except for the impersonation. ... if I get my hive information, ... certain it’s related to the tokens ... string retvalue = dPrinter.ToString; ...
    (microsoft.public.dotnet.languages.csharp)