From 8e309cc7c70ab9c94b954f2fed5c4d8e2945f48c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 23 Aug 2004 13:25:10 +0000 Subject: r2001: Fix bug 1622. Thanks to Qiao Yang for the patch and Sven Thomsen for testing it. Volker (This used to be commit 0a3413fbe378bc378aea7ffe9a6af8b65ce49f4a) --- source3/nsswitch/winbindd_cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index bbd98a620f..b81f8ecd45 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -1048,7 +1048,9 @@ do_query: /* and save it */ refresh_sequence_number(domain, False); wcache_save_sid_to_name(domain, status, sid, *domain_name, *name, *type); - wcache_save_name_to_sid(domain, status, *domain_name, *name, sid, *type); + + /* We can't save the name to sid mapping here, as with sid history a + * later name2sid would give the wrong sid. */ return status; } -- cgit