NetServerEnum2 and looking for dc

Rafal Szczesniak mimir at
Mon Feb 11 00:17:05 GMT 2002

On Sun, 10 Feb 2002, Jim McDonough wrote:

> 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

Now it gets once :)

> 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.

No, if Samba is supposed to behave exactly like WinNT Server when
establishing trust, then it should stay. cli_get_pdc_name is used already
once and, as I see, for the first time :-)

Anyway, I'll modify it to look for BDCs also.

|Rafal 'Mimir' Szczesniak <mimir at>   |
|*BSD, GNU/Linux and Samba                                  /

More information about the samba-technical mailing list