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

From: Manfred Braun (aa_at_bb.cc)
Date: 11/21/05


Date: Mon, 21 Nov 2005 13:34:59 +0100

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



Relevant Pages

  • A services threads outgoing security:how to manage?
    ... I am writing a management application, which has to access remote machines ... efficiently a registry access]. ... object, I do the CreateEventSource call, which fails with "General Access ... Because I cannot specify explicit credentials while access the registry, ...
    (microsoft.public.dotnet.security)
  • RE: WinXP-SP2 fails because cant change Registry SSDPSRV
    ... Permissions and manual changing this registry entry, but it fails every time. ... First make sure your machine is clean from malware and viruses then try the ... "Access Denied" error when trying to install SP2 ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Launchcast, other streaming sources dont work
    ... Error accessing the OLE registry. ... "My Lunatic Friends" by "Deathray" in Windows Media Player 10. ... I don't blame you, Chris, but it ain't ... >>> Launchcast and every other streaming source I've tried fails. ...
    (microsoft.public.windowsmedia.player)
  • Checking if path is valid.
    ... specify the path of where he or she wants the log file in the registry. ... I will be calling NtCreateFile to create the log file ... calling NtOpenFile to see if it fails and if it fails, ...
    (microsoft.public.development.device.drivers)
  • Re: Dialog size in pixel
    ... Read the Registry from HKCU ... if that fails, ... This allows the sysadmin to set up "standard defaults" during installation but allows the ... we needed to have the path to the DLL for an explicit LoadLibrary ...
    (microsoft.public.vc.mfc)

Quantcast