From c5871a1893ccaf81116defcdc20d644502e2f98c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 24 Feb 2003 22:25:19 +0000 Subject: Whenever we have a password, use the in-memory ccache. This fixes a bug where we were overwriting the user's ccache with the machine password (the -P option). Andrew Bartlett (This used to be commit 231d2f84ef36b30be98baf3b56ebf4a5cd8dad11) --- source3/utils/net_ads.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/utils') 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); -- cgit