summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-01-09 12:51:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:03 -0500
commit7745148580cc9ab71d2335d55fc63dae4c021662 (patch)
tree8f1af380124d4c0208961b43eea2a9f3a850cd1a /source3/nsswitch
parent263cbe122a8ae3e335c80e78fc565f7ddd8b4f79 (diff)
downloadsamba-7745148580cc9ab71d2335d55fc63dae4c021662.tar.gz
samba-7745148580cc9ab71d2335d55fc63dae4c021662.tar.bz2
samba-7745148580cc9ab71d2335d55fc63dae4c021662.zip
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)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_cache.c4
1 files changed, 1 insertions, 3 deletions
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 */