1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-04 08:23:50 +03:00

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 commit is contained in:
Günther Deschner
2006-11-10 12:42:50 +00:00
committed by Gerald (Jerry) Carter
parent 1bc834455d
commit ff004f7284
4 changed files with 28 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ static BOOL ads_dc_name(const char *domain,
}
#ifdef HAVE_KRB5
if ((ads->config.flags & ADS_KDC) && ads_sitename_match(ads)) {
if ((ads->config.flags & ADS_KDC) && ads_closest_dc(ads)) {
/* We're going to use this KDC for this realm/domain.
If we are using sites, then force the krb5 libs
to use this KDC. */