From f9a4dcb4daf58929a7be23c2482364cbfd8a850b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 11 May 2006 23:07:34 +0000 Subject: r15541: Only ever store a user's password in a WINBINDD_CCACHE_ENTRY struct when we have a reason to do so. Guenther (This used to be commit 4da79bd10c17277171aad26ee0278f8e5b64abdb) --- source3/nsswitch/winbindd_cred_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c index 84c316dbf8..8fc8058441 100644 --- a/source3/nsswitch/winbindd_cred_cache.c +++ b/source3/nsswitch/winbindd_cred_cache.c @@ -227,7 +227,7 @@ NTSTATUS add_ccache_to_list(const char *princ_name, new_entry->service = talloc_strdup(mem_ctx, service); NT_STATUS_HAVE_NO_MEMORY(new_entry->service); } - if (pass) { + if (schedule_refresh_event && pass) { new_entry->pass = talloc_strdup(mem_ctx, pass); NT_STATUS_HAVE_NO_MEMORY(new_entry->pass); } -- cgit