From 7745148580cc9ab71d2335d55fc63dae4c021662 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 9 Jan 2006 12:51:57 +0000 Subject: r12787: Revert last commit that removed our logic of memorizing negative name_to_sid lookups in the cache. Guenther (This used to be commit 348d309688260d17d9cdbf11fc54ad30829ceae5) --- source3/nsswitch/winbindd_cache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index eea0d16ca8..81dd85e588 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -989,9 +989,7 @@ do_query: 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 */ -- cgit