Re: NetGroupGetUsers() occasional failures
- From: "Dave Lowther" <davel@xxxxxxxxx>
- Date: Fri, 18 Nov 2005 06:29:46 -0000
"Eugene Gershnik" wrote
> Dave Lowther wrote:
>> 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
>> calling the API once every 10 seconds, so it works 73 times, then
>> fails once, then works 73 times etc.
>
> Even if the code worked perfectly this kind of polling is a bad idea. Do
> you really expect groups to change so often?
No.
This isn't released code, I've not decided what the real polling rate will
be.
Is there a way to register with the DC to be sent an event driven message
when group membership changes ?
> Enumerating groups is an expensive operation (especially on large domains)
> both in terms of server CPU time and in network traffic.
Yes, I've come to realise that whilst looking at the amount of network
traffic
and the elapsed time taken to complete the dialogue with the DC.
> Doing it very often (and I guess you will also do it from multiple
> machines)
> puts unnecessary strain on your DC and network.
It won't be done from multiple machines, the application is a server and
there will, in almost all cases, only be one on a domain.
The server administrator will be able to allow / deny clients access to some
application specific resources, using a combination of client PC name,
client user name and client group membership.
I didn't want to slow down the server response to the client by talking to
the
DC when the client connects so I cache the group membership information
locally.
> Also remember that all Net APIs are remote RPC calls. As such you must
> *expect* them to fall occasionally.
Point taken.
> I am not saying that the symptoms you are seeing are not a result of some
> faulty software on your box but even if so it doesn't really matter.
At the moment I want to understand why it's happening to determine if
its a problem with my code or not. Like you say, my code needs to be
able to cope with occasional failures, and it does. I only know about the
failures because they get written to a log, it doesn't affect the behaviour
of the server.
Thanks again for the comments.
Dave.
.
- Follow-Ups:
- Re: NetGroupGetUsers() occasional failures
- From: Eugene Gershnik
- Re: NetGroupGetUsers() occasional failures
- References:
- NetGroupGetUsers() occasional failures
- From: Dave Lowther
- Re: NetGroupGetUsers() occasional failures
- From: Dave Lowther
- Re: NetGroupGetUsers() occasional failures
- From: Eugene Gershnik
- NetGroupGetUsers() occasional failures
- Prev by Date: Re: How to set network adapter IP , mask and gateway ?
- Next by Date: Re: NetGroupGetUsers() occasional failures
- Previous by thread: Re: NetGroupGetUsers() occasional failures
- Next by thread: Re: NetGroupGetUsers() occasional failures
- Index(es):
Relevant Pages
|