r19651: Fix interesting bug with the automatic site coverage in Active Directory:
authorGünther Deschner <gd@samba.org>
Fri, 10 Nov 2006 12:42:50 +0000 (12:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:44 +0000 (12:15 -0500)
commit61a38bd4b83b7f72b479e84daa5ea89164a92f85
tree233a96488361b043f3b94029a14355549bf0c4a9
parent331cafd30fc2de8ea1a6727b930933cf912fba27
r19651: Fix interesting bug with the automatic site coverage in Active Directory:

When having DC-less sites, AD assigns DCs from other sites to that site
that does not have it's own DC. The most reliable way for us to identify
the nearest DC - in that and all other cases - is the closest_dc flag in
the CLDAP reply.

Guenther
(This used to be commit ff004f7284cb047e738ba3d3ad6602e8aa84e883)
source3/libads/ldap.c
source3/libsmb/namequery_dc.c
source3/nsswitch/winbindd_cm.c
source3/utils/net_ads.c