git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d84af53
)
r21098: When get_dc_name_via_netlogon() in get_dcs() fails to find a trusted DC
author
Günther Deschner
<gd@samba.org>
Wed, 31 Jan 2007 20:05:48 +0000
(20:05 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:17:37 +0000
(12:17 -0500)
we may not just assume that we look for our own realm's dcs next.
Guenther
source/nsswitch/winbindd_cm.c
patch
|
blob
|
history
diff --git
a/source/nsswitch/winbindd_cm.c
b/source/nsswitch/winbindd_cm.c
index 35017d39a439642c7a65c636273675d753d25a53..e1434ef32bbbe9612feda6b54622517249ca79dc 100644
(file)
--- a/
source/nsswitch/winbindd_cm.c
+++ b/
source/nsswitch/winbindd_cm.c
@@
-1126,9
+1126,9
@@
static BOOL get_dcs(TALLOC_CTX *mem_ctx, const struct winbindd_domain *domain,
We deliberately don't care about the
return here. */
- get_dc_name(domain->name,
lp_realm()
, dcname, &ip);
+ get_dc_name(domain->name,
domain->alt_name
, dcname, &ip);
- sitename = sitename_fetch(
lp_realm()
);
+ sitename = sitename_fetch(
domain->alt_name
);
if (sitename) {
/* Do the site-specific AD dns lookup first. */