summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index 9d965675c0..d5426f40ba 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/nsswitch/winbindd_ads.c
@@ -120,7 +120,7 @@ static ADS_STRUCT *ads_cached_connection(struct winbindd_domain *domain)
about the name. Just setup affinity and the KRB5_CONFIG
file. */
- get_dc_name( "", ads->auth.realm, dc_name, &dc_ip );
+ get_dc_name( ads->server.workgroup, ads->server.realm, dc_name, &dc_ip );
status = ads_connect(ads);
if (!ADS_ERR_OK(status) || !ads->config.realm) {