From: Günther Deschner Date: Thu, 11 May 2006 23:07:34 +0000 (+0000) Subject: r15541: Only ever store a user's password in a WINBINDD_CCACHE_ENTRY struct when X-Git-Tag: samba-4.0.0alpha6~801^2~8464 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9a4dcb4daf58929a7be23c2482364cbfd8a850b;p=thirdparty%2Fsamba.git 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) --- diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c index 84c316dbf8b..8fc80584413 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); }