1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

libads/ldap.c: if the client belongs to no site at all any dc is the closest

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher 2008-10-27 19:38:15 +01:00 committed by Günther Deschner
parent c2d4a84abe
commit f86ef9b53a

View File

@ -156,6 +156,11 @@ BOOL ads_closest_dc(ADS_STRUCT *ads)
return True;
}
if (ads->config.client_site_name == NULL) {
DEBUG(10,("ads_closest_dc: client belongs to no site\n"));
return True;
}
DEBUG(10,("ads_closest_dc: %s is not the closest DC\n",
ads->config.ldap_server_name));