CoInitializeSecurity & RPC_C_AUTHN_LEVEL_NONE does not work with XP SP2?

From: Sergey V (sergey-v_at_mail.ru)
Date: 08/18/05


Date: Thu, 18 Aug 2005 16:43:13 +0300

Hi Everyone,

I'm receiving DCOM access permissions problem AFTER reinstalling the Windows
XP system (application running under IIS invokes DCOM server on the same
computer).
Following is from system event log

----------------------------------
Event Type: Error
Event Source: DCOM
Event Category: None
Event ID: 10016
....

The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{A2A1FD95-FE67-4A0B-90F5-35E4F769F073}
to the user HOST\IWAM_HOST SID
(S-1-5-21-117609710-436374069-1343024091-1007). This security permission can
be modified using the Component Services administrative tool.
-----------------------------------

I do not care about security for my DCOM server and have disabled security
in the code of the DCOM server using

        hr = CoInitializeSecurity(NULL, -1, 0, 0,
            RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IDENTIFY, 0,
            EOAC_NONE, 0);

but this does not help now. Do I really need to explicitly configure access
permissions using dcomcnfg? or is there way to enable access to everyone
automatically?

Thanks, Sergey.



Relevant Pages

  • Re: RE:ERROR IN DCOM
    ... I am wondering whether it could be a result of a hijacker or spyware. ... Verify that the user has the appropriate permissions to start the DCOM server. ... > I checked in the Event viewer, in that system i found an ...
    (microsoft.public.windowsxp.perform_maintain)
  • DCOM launch problem
    ... I have a DCOM server that I am trying to launch locally. ... If I set the identity to "The interactive user" then I can create an object ... I've tried giving "Everyone" full permissions in each security category to ...
    (microsoft.public.vc.atl)