summaryrefslogtreecommitdiff
path: root/source3/utils/net_ads.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/net_ads.c')
-rw-r--r--source3/utils/net_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index c17367a0a4..b614432292 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -1466,7 +1466,7 @@ int net_ads_join(struct net_context *c, int argc, const char **argv)
/* We enter this block with user creds */
ADS_STRUCT *ads_dns = NULL;
- if ( (ads_dns = ads_init( lp_realm(), NULL, NULL )) != NULL ) {
+ if ( (ads_dns = ads_init( lp_realm(), NULL, r->in.dc_name )) != NULL ) {
/* kinit with the machine password */
use_in_memory_ccache();