A service's threads outgoing security:how to manage?

A service's threads outgoing security:how to manage?

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
A service's threads outgoing security:how to manage? Manfred Braun 11-21-2005
Posted by Manfred Braun on November 21, 2005, 7:34 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Hello All!

I am writing a management application, which has to access remote machines
registry via System.Diagnostics.EventLog.CreateEventSource [which is
efficiently a registry access].

For each machine, I connect to, I create a DirectoryEntry and connect to
that machine specifying credentials. That's becauase the running user does
not has the right permissions [working with different domains, no trusts].
The application is written in C# and the action taken is done with threads
from the threadpool.
After I created the "secure channel" with the help of the DirectoryEntry
object , I do the CreateEventSource call, which fails with "General Access
Denied Error".

But this works fine, if the application runs - while testing - as a console
application, but fails, if it runs as a service!!!! It does also not work,
if I run the app temporarely with the Taskscheduler.

Because I cannot specify explicit credentials while access the registry, I
have no idea, what to do now. Access to the remote WMI service is well done
specifying explicit credentials.

I am running Windows Server 2003,en,SP1 and framework 1.1, SP1

Any help would be great!!
Sorry for crossposting;I am not sure, what's the right/best group.

Thanks so far and
best regards,
Manfred
Mannheim
Germany



Posted by D. Yates on November 21, 2005, 11:49 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Manfred,

The problem is probably the service's permissions. You need to have your
service run as a user with permission to access the remote computer. Do a
google search on Service Permission and you will get a lot of hits.

Dave

> Hello All!
>
> I am writing a management application, which has to access remote machines
> registry via System.Diagnostics.EventLog.CreateEventSource [which is
> efficiently a registry access].
>
> For each machine, I connect to, I create a DirectoryEntry and connect to
> that machine specifying credentials. That's becauase the running user does
> not has the right permissions [working with different domains, no trusts].
> The application is written in C# and the action taken is done with threads
> from the threadpool.
> After I created the "secure channel" with the help of the DirectoryEntry
> object , I do the CreateEventSource call, which fails with "General Access
> Denied Error".
>
> But this works fine, if the application runs - while testing - as a
> console application, but fails, if it runs as a service!!!! It does also
> not work, if I run the app temporarely with the Taskscheduler.
>
> Because I cannot specify explicit credentials while access the registry, I
> have no idea, what to do now. Access to the remote WMI service is well
> done specifying explicit credentials.
>
> I am running Windows Server 2003,en,SP1 and framework 1.1, SP1
>
> Any help would be great!!
> Sorry for crossposting;I am not sure, what's the right/best group.
>
> Thanks so far and
> best regards,
> Manfred
> Mannheim
> Germany
>



Similar ThreadsPosted
Re: A service's threads outgoing security:how to manage? November 23, 2005, 2:37 pm
Unable to Manage Security Settings in Security Center April 14, 2006, 11:14 pm
IPSec and outgoing HTTP August 21, 2006, 9:54 am
Outgoing e-mail problem January 24, 2007, 9:34 am
Monitor Email's - incoming and outgoing! November 17, 2005, 8:04 pm
server STD edition blocking outgoing communications November 9, 2007, 11:11 am
How to manage profiles??? October 3, 2008, 7:56 pm
How to Manage my network passwords in Win XP Home? December 19, 2005, 3:58 am
How do I manage local admin accounts without a domain or ADS? November 16, 2005, 6:22 pm
Survey Software - Can Help You To Manage and Conducting Your Business August 1, 2008, 8:52 am

The site map in XML format XML site map

Contact Us | Privacy Policy