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)
commitff004f7284cb047e738ba3d3ad6602e8aa84e883
treeff98cbb247628b5f59dfcf8042a5871ab06a891d
parent1bc834455de0088941609ed46fcecde5b796fe77
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
source/libads/ldap.c
source/libsmb/namequery_dc.c
source/nsswitch/winbindd_cm.c
source/utils/net_ads.c