]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r15541: Only ever store a user's password in a WINBINDD_CCACHE_ENTRY struct when
authorGünther Deschner <gd@samba.org>
Thu, 11 May 2006 23:07:34 +0000 (23:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:16:57 +0000 (11:16 -0500)
we have a reason to do so.

Guenther
(This used to be commit 4da79bd10c17277171aad26ee0278f8e5b64abdb)

source3/nsswitch/winbindd_cred_cache.c

index 84c316dbf8bc652fda589461c67844d2366bec09..8fc80584413ddec03861e7a22fbc3f28778964d8 100644 (file)
@@ -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);
        }