git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f0c1fa
)
s3:libads/ldap.c: if the client belongs to no site at all any dc is the closest
author
Stefan Metzmacher
<metze@samba.org>
Mon, 27 Oct 2008 18:38:15 +0000
(19:38 +0100)
committer
Michael Adam
<obnox@samba.org>
Tue, 16 Dec 2008 15:16:25 +0000
(16:16 +0100)
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit
f86ef9b53a903485deba94febf90dd4e657cc02b
)
(cherry picked from commit
a8040d59659e58c5cb92c1107a7ff012eff12729
)
(cherry picked from commit
7baceea20252dec6b64e86ec8b5a73b62b373758
)
source/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source/libads/ldap.c
b/source/libads/ldap.c
index 9045552c81e4e7b93168140b6c828934c64afbf2..a462f463c772683c6bed519b20fc931ccb12e178 100644
(file)
--- a/
source/libads/ldap.c
+++ b/
source/libads/ldap.c
@@
-162,6
+162,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));