diff options
-rw-r--r-- | source3/utils/net_ads.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index 03ec2920b9..b9388f3349 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -101,7 +101,9 @@ retry: free(prompt); } - ads->password = strdup(opt_password); + if (opt_password) + ads->password = strdup(opt_password); + ads->user_name = strdup(opt_user_name); status = ads_connect(ads); |