svn commit: samba r13025 - in trunk/source/nsswitch: .
gd at samba.org
gd at samba.org
Thu Jan 19 00:04:05 GMT 2006
Author: gd
Date: 2006-01-19 00:04:03 +0000 (Thu, 19 Jan 2006)
New Revision: 13025
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13025
Log:
Attempt to fix an issue with cached logon.
Guenther
Modified:
trunk/source/nsswitch/winbindd_cache.c
Changeset:
Modified: trunk/source/nsswitch/winbindd_cache.c
===================================================================
--- trunk/source/nsswitch/winbindd_cache.c 2006-01-19 00:03:07 UTC (rev 13024)
+++ trunk/source/nsswitch/winbindd_cache.c 2006-01-19 00:04:03 UTC (rev 13025)
@@ -1189,7 +1189,9 @@
status = domain->backend->name_to_sid(domain, mem_ctx, domain_name, name, sid, type);
/* and save it */
- wcache_save_name_to_sid(domain, status, domain_name, name, sid, *type);
+ if (domain->online || !is_null_sid(sid)) {
+ wcache_save_name_to_sid(domain, status, domain_name, name, sid, *type);
+ }
if (NT_STATUS_IS_OK(status)) {
strupper_m(CONST_DISCARD(char *,domain_name));
More information about the samba-cvs
mailing list