From 850b7c4e87fe50beb785e95241d592065f616826 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 6 Jan 2006 14:55:26 +0000 Subject: r12742: Don't write null sid mappings into the winbindd_cache.tdb. Guenther (This used to be commit 1e0124efc54810125bbfae6dce536b2c4fff62c1) --- source3/nsswitch/winbindd_cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 81dd85e588..eea0d16ca8 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -989,7 +989,9 @@ do_query: 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 (NT_STATUS_IS_OK(status)) { + 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