NetServerEnum2 and looking for dc

Jim McDonough jmcd at us.ibm.com
Sun Feb 10 16:35:02 GMT 2002


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?

----------------------------
Jim McDonough
IBM Linux Technology Center
Samba Team
6 Minuteman Drive
Scarborough, ME 04074
USA

jmcd at us.ibm.com
jmcd at samba.org

Phone: (207) 885-5565
IBM tie-line: 776-9984





More information about the samba-technical mailing list