What permissions are needed for windows service to do C# impersonation when started under a user account?
From: Daniel (softwareengineer98037_at_yahoo.com)
Date: 12/22/04
- Next message: igkins: "rijndael high encryption pack"
- Previous message: Daniel: "is there any way to impersonate another account at the command line when logged into a windows 2000 server account via remote desktop?"
- Next in thread: Daniel: "Re: What permissions are needed for windows service to do C# impersonation when started under a user account?"
- Reply: Daniel: "Re: What permissions are needed for windows service to do C# impersonation when started under a user account?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 21 Dec 2004 16:38:31 -0800
I have a windows service that impersonates another account fine when it runs
under system account but fails to impersonate when run under a user account.
What permissions must the windows service user account have inorder to do
impersonation?
the error i get is:
System.ComponentModel.Win32Exception: Access is denied
at myService.Service1.impersonatetest(String domain, String login, String
password, String path)
at myService.Service1.OnStart(String[] args)
- Next message: igkins: "rijndael high encryption pack"
- Previous message: Daniel: "is there any way to impersonate another account at the command line when logged into a windows 2000 server account via remote desktop?"
- Next in thread: Daniel: "Re: What permissions are needed for windows service to do C# impersonation when started under a user account?"
- Reply: Daniel: "Re: What permissions are needed for windows service to do C# impersonation when started under a user account?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|