XP SP2 Firewall

G

Guest

Hi All

I have a windows service installed on Machine having XP2 Service pack 2 OS

I am using this call in Run() Method
hr = CoInitializeSecurity(NULL, -1, NULL, NULL,
RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IMPERSONATE, NULL,
EOAC_NONE, NULL)
If i access this service from other computer it gives access denied error

If i disable Firewall security from Control Panel->Windows Firewall,and in Dcomcnfg add ANONYMOUS user and give it full access
access denied problem goes

Why do i want to add ANONYMOUS in Dcomconfg even i disable Firewall security?

if i dont want to do all above settings but still my service should be accessed from other computer ,what should i do,is there any way for this?

Any help is appreciated

Thank
Tushar Mahajan
 
J

Jerry

Go to the SP2 newsgroup and ask your question.

TusharM said:
Hi All,

I have a windows service installed on Machine having XP2 Service pack 2 OS.

I am using this call in Run() Method,
hr = CoInitializeSecurity(NULL, -1, NULL, NULL,
RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IMPERSONATE, NULL,
EOAC_NONE, NULL);
If i access this service from other computer it gives access denied error.

If i disable Firewall security from Control Panel->Windows Firewall,and in
Dcomcnfg add ANONYMOUS user and give it full access,
access denied problem goes.

Why do i want to add ANONYMOUS in Dcomconfg even i disable Firewall security??

if i dont want to do all above settings but still my service should be
accessed from other computer ,what should i do,is there any way for this??
 
W

Will Denny

You're welcome - best of luck.

--

Will Denny
MS-MVP Windows - Shell/User


|
| Thanks a Lot Will.
|
| Regards
| TusharM.
 
R

Roger Abell

Firewalls are firewalls.
If something should go through it needs to have
a setting made in firewall to allow this.

Relative to your CoInitializeSecurity call, you need
to stop using NULL and providing real security defs.
Nulling out security is why we have such problems
on the network !! And you are right, there is no good
reason whatsoever to allow Anonymous any DCom
privileges, in fact, that aren't even any bad reasons.

--
Roger Abell
Microsoft MVP (Windows Server System: Security)
MCSE (W2k3,W2k,Nt4) MCDBA
TusharM said:
Hi All,

I have a windows service installed on Machine having XP2 Service pack 2 OS.

I am using this call in Run() Method,
hr = CoInitializeSecurity(NULL, -1, NULL, NULL,
RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IMPERSONATE, NULL,
EOAC_NONE, NULL);
If i access this service from other computer it gives access denied error.

If i disable Firewall security from Control Panel->Windows Firewall,and in
Dcomcnfg add ANONYMOUS user and give it full access,
access denied problem goes.

Why do i want to add ANONYMOUS in Dcomconfg even i disable Firewall security??

if i dont want to do all above settings but still my service should be
accessed from other computer ,what should i do,is there any way for this??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top