summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 75bb29f213..bb87879044 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -131,7 +131,6 @@ static ADS_STRUCT *ads_startup(void)
if (opt_user_specified) {
need_password = True;
- use_in_memory_ccache();
}
retry:
@@ -142,8 +141,10 @@ retry:
free(prompt);
}
- if (opt_password)
+ if (opt_password) {
+ use_in_memory_ccache();
ads->auth.password = strdup(opt_password);
+ }
ads->auth.user_name = strdup(opt_user_name);