Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / August 2007

Tip: Looking for answers? Try searching our database.

Impersonation - connecting to a machine in it's own workgroup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
glennanthonyb - 02 Aug 2007 12:43 GMT
Hi

I'm trying to check the status of a service running on a machine in its own
workgroup.

Is there anyway of impersonating a user in the workgroup to allow the
ServiceController to connect and retrieve the state of the service?

The process performing the check sits in a domain and is running 2003.  The
target machine is running NT.

Thanks

Glenn
Joe Kaplan - 03 Aug 2007 16:48 GMT
You might be able to hack up a solution to this by creating a local machine
account with the same name and password as an account on the remote machine
and impersonating the local account before attempting the RPC call to get
the service status.

You would be better off if you could get the remote machine in a domain so
you wouldn't have to resort to this type of hack.

Joe K.

Signature

Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--

> Hi
>
[quoted text clipped - 10 lines]
>
> Glenn

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.