NetGroupGetUsers() occasional failures



I've written a program which periodically (every 10 seconds for now) calls
NetGroupGetUsers() and NetLocalGroupGetMembers() for a small number of
groups, 3 local and 1 global.

On my PC (XP Pro fully up to date with all updates except the MS adware
detector which isn't installed), these calls normally work but fail,
reliably, once every 12 minutes 22 seconds (+/- 1 second) and all four calls
always fail.

NetGroupGetUsers() fails with error code 0x35, which I think means "Network
path not found", and NetLocalGroupGetMembers() fails with 0x6BA, which I
think means "The RPC server is unavailable".

There are no corresponding entries in the event log.

Exactly the same code running on another PC on the same LAN and talking to
the same domain controller never fails.

I'm thinking that it might be something that's running on my PC that's
causing this. I've tried shutting down quite a few things with no luck as
yet.

Has anyone else experienced this kind of problem or know what might be
causing it ?

I've got Ethereal traces of the successful / failing cases but I'm
completely new to the protocols being used: CLDAP, SMB, DCERPC, SAMR, LSA.

Can anyone suggest an on-line, free, tutorial or reference that explains how
these protocols are used to communicate between a PC that is a domain member
and the domain controller ? The RFCs alone, if they exist, may help a
little, but real examples with commentary would be better.

TIA

Dave.



.



Relevant Pages

  • Re: NetGroupGetUsers() occasional failures
    ... > My code has the domain controller name in the 1st param and works fine ... > except on my PC where it fails once every 12 mins 20 secs. I'm ... CPU time and in network traffic. ... Also remember that all Net APIs are remote RPC calls. ...
    (microsoft.public.win32.programmer.networks)
  • Domain Controller Cannot Locate Group Policy
    ... On a W2K Domain Controller, I'm unable to load group policy, and I get ... - ping myserver.my.domain.com works ... - net view \\my.domain.com FAILS ... Both of the failures get a command line response similar to "network ...
    (microsoft.public.win2000.active_directory)
  • Re: Active Directory recovery solution
    ... secondary DC and every entries (users and computers) are perfectly there but W ... What should i do if my Primary DC fails now? ... Promote ur Addtional Domain Contorller as a Primay Domain ... Contorller by assinging the roles to the addintional domain controller ...
    (microsoft.public.win2000.active_directory)
  • Re: adc
    ... Can you please explain more how it fails? ... > installed a new additional domain controller with ip ... > 192.168.100.5 and dns is 192.168.100.100,while installing ...
    (microsoft.public.win2000.active_directory)