diff options
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_cm.c | 4 |
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. */ |