Re: NetServerEnum fails on large networks

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Eugene Gershnik (gershnik_at_hotmail.com)
Date: 01/26/05


Date: Wed, 26 Jan 2005 06:37:51 -0800

Thomas Hjort wrote:
> Sorry for missing such vital information, but I'm afraid it won't
> narrow down the problem, because I see the problem on both Win2K
> (SP3) and WinXP (SP1).

But it helps a lot nevertheless.
I beleive your problem is caused by the fact that all Net APIs are generally
limited to buffers of 64k. Theorectically this was an old limitation of
16-bit OSes but it looks like even XP wouldn't ask for more than 64k when
sending a remote request. In your case 64k / 4096 = 16 bytes which is
probably what sizeof of internal structure for level 100 is.

I don't think there is any workaround to this problem except using AD
interfaces (I hope your domain is an AD one).

Incidentally googling for "64k NetServerEnum" brings some interesting links.
Apparently Samba folks had seen this problem quite often.

--
Eugene


Relevant Pages