From: Volker Lendecke Date: Mon, 23 Aug 2004 13:25:10 +0000 (+0000) Subject: r2001: Fix bug 1622. Thanks to Qiao Yang for the patch and Sven Thomsen for testing X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5885 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a3413fbe378bc378aea7ffe9a6af8b65ce49f4a;p=thirdparty%2Fsamba.git r2001: Fix bug 1622. Thanks to Qiao Yang for the patch and Sven Thomsen for testing it. Volker --- diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c index bbd98a620f6..b81f8ecd45a 100644 --- a/source/nsswitch/winbindd_cache.c +++ b/source/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; }