Author: gd Date: 2006-01-09 12:51:57 +0000 (Mon, 09 Jan 2006) New Revision: 12787
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12787 Log: Revert last commit that removed our logic of memorizing negative name_to_sid lookups in the cache. Guenther Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c trunk/source/nsswitch/winbindd_cache.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c =================================================================== --- branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2006-01-09 08:24:33 UTC (rev 12786) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2006-01-09 12:51:57 UTC (rev 12787) @@ -989,9 +989,7 @@ status = domain->backend->name_to_sid(domain, mem_ctx, domain_name, name, sid, type); /* and save it */ - if (NT_STATUS_IS_OK(status)) { - wcache_save_name_to_sid(domain, status, domain_name, name, sid, *type); - } + wcache_save_name_to_sid(domain, status, domain_name, name, sid, *type); /* We can't save the sid to name mapping as we don't know the correct case of the name without looking it up */ Modified: trunk/source/nsswitch/winbindd_cache.c =================================================================== --- trunk/source/nsswitch/winbindd_cache.c 2006-01-09 08:24:33 UTC (rev 12786) +++ trunk/source/nsswitch/winbindd_cache.c 2006-01-09 12:51:57 UTC (rev 12787) @@ -1204,9 +1204,7 @@ status = domain->backend->name_to_sid(domain, mem_ctx, domain_name, name, sid, type); /* and save it */ - if (NT_STATUS_IS_OK(status)) { - wcache_save_name_to_sid(domain, status, domain_name, name, sid, *type); - } + wcache_save_name_to_sid(domain, status, domain_name, name, sid, *type); /* We can't save the sid to name mapping as we don't know the correct case of the name without looking it up */
