svn commit: samba r15541 - branches/SAMBA_3_0/source/nsswitch
trunk/source/nsswitch
gd at samba.org
gd at samba.org
Thu May 11 23:07:38 GMT 2006
Author: gd
Date: 2006-05-11 23:07:34 +0000 (Thu, 11 May 2006)
New Revision: 15541
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15541
Log:
Only ever store a user's password in a WINBINDD_CCACHE_ENTRY struct when
we have a reason to do so.
Guenther
Modified:
branches/SAMBA_3_0/source/nsswitch/winbindd_cred_cache.c
trunk/source/nsswitch/winbindd_cred_cache.c
Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cred_cache.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_cred_cache.c 2006-05-11 23:04:38 UTC (rev 15540)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_cred_cache.c 2006-05-11 23:07:34 UTC (rev 15541)
@@ -227,7 +227,7 @@
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);
}
Modified: trunk/source/nsswitch/winbindd_cred_cache.c
===================================================================
--- trunk/source/nsswitch/winbindd_cred_cache.c 2006-05-11 23:04:38 UTC (rev 15540)
+++ trunk/source/nsswitch/winbindd_cred_cache.c 2006-05-11 23:07:34 UTC (rev 15541)
@@ -227,7 +227,7 @@
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);
}
More information about the samba-cvs
mailing list