mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +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:
parent
c2d4a84abe
commit
f86ef9b53a
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user