NetServerEnum2 and looking for dc
sfrench at us.ibm.com
Sun Feb 10 20:26:01 GMT 2002
That function was meant to find primary domain controllers not just any
logon server (although the function is slightly less useful in Windows 2000
since all domain controllers are primary domain controllers - no more
BDCs). Although it may have been used by a pam module (which is now
obsolete) which looked for PDCs first (then failing that - look for backup
domain controllers), there really were cases in the NT and OS/2 world (ie
when not using active directory APIs) where you had to find the primary
domain controller - so you could determine the correct target of certain
RPC and RAP calls (like "NetUserAdd" and "NetUserDelete" for example) that
needed to go to the primary and would fail to backup domain controllers or
Senior Software Engineer
Linux Technology Center - IBM Austin
email: sfrench at us.ibm.com
02/10/2002 06:29 PM
To: Rafal Szczesniak <mimir at diament.ists.pwr.wroc.pl>
cc: samba-technical at samba.org, Steven French/Austin/IBM
From: Jim McDonough/Portland/IBM at IBMUS
Subject: Re: NetServerEnum2 and looking for dc (Document link: Steven
Rafal Szczesniak wrote:
>While working on trusted domains, I've noticed that cli_get_pdc_name
>function (libsmb/clirap2.c) using NetServerEnum2 call looks only for
>Primary Domain Controller and not for Backup Domain Controller.
>Is it on purpose or just forgotten ?
Well, ahem, umm, well, uhhh....
This is a function that never gets called...er...ummm
The best explanation I can give is: it was for some other work we were
doing, didn't finish, but I don't quite remember what it was anymore.
That aside, since it's "cli_get_pdc_name", I'd say it was intentionally
only looking for a PDC. If you'd like to modify it to look for PDCs and
BDCs, have fun! Otherwise we should probably remove it.
Steve, do you have any recollection?
IBM Linux Technology Center
6 Minuteman Drive
Scarborough, ME 04074
jmcd at us.ibm.com
jmcd at samba.org
Phone: (207) 885-5565
IBM tie-line: 776-9984
More information about the samba-technical