From 8162d5ef3a9ff47bf8e55c6608f59bba7f99811b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 31 Jan 2007 20:05:48 +0000 Subject: 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) --- source3/nsswitch/winbindd_cm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch') 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. */ -- cgit