summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-05-11 23:07:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:57 -0500
commitf9a4dcb4daf58929a7be23c2482364cbfd8a850b (patch)
treebc4e5445dd616aa46a03d0e02163be0575aed611
parent71465a6fbc2941c77141607bd4af312d15fe3892 (diff)
downloadsamba-f9a4dcb4daf58929a7be23c2482364cbfd8a850b.tar.gz
samba-f9a4dcb4daf58929a7be23c2482364cbfd8a850b.tar.bz2
samba-f9a4dcb4daf58929a7be23c2482364cbfd8a850b.zip
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)
-rw-r--r--source3/nsswitch/winbindd_cred_cache.c2
1 files changed, 1 insertions, 1 deletions
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);
}