summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-01-31 20:05:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:37 -0500
commit8162d5ef3a9ff47bf8e55c6608f59bba7f99811b (patch)
tree801893331cc7ffb89fd1171aa5e1f98eb6d1cc74
parent4e1a6ca7104cd64d336d3b4d35708b48bdee80ae (diff)
downloadsamba-8162d5ef3a9ff47bf8e55c6608f59bba7f99811b.tar.gz
samba-8162d5ef3a9ff47bf8e55c6608f59bba7f99811b.tar.bz2
samba-8162d5ef3a9ff47bf8e55c6608f59bba7f99811b.zip
r21098: When get_dc_name_via_netlogon() in get_dcs() fails to find a trusted DC
we may not just assume that we look for our own realm's dcs next. Guenther (This used to be commit bf0c4ce7b1194e18cc16a044b042d0066463cf87)
-rw-r--r--source3/nsswitch/winbindd_cm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c
index 35017d39a4..e1434ef32b 100644
--- a/source3/nsswitch/winbindd_cm.c
+++ b/source3/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. */