r2822: Fix parameter confusion in priming of name-to-sid cache. Found by
authorTim Potter <tpot@samba.org>
Tue, 5 Oct 2004 00:48:56 +0000 (00:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:53 +0000 (10:52 -0500)
Qiao Yang.
(This used to be commit 30ae13cb9fbe5f04e46bcbd5e0c19da9b33341d5)

source3/nsswitch/winbindd_cache.c

index 493255a5a653167a83dcbb69cd2b63f1f68e6b25..a6ebafca965b94c1156590499537dbaf8bfa3755 100644 (file)
@@ -751,8 +751,8 @@ do_query:
                if (domain->backend->consistent) {
                        /* when the backend is consistent we can pre-prime some mappings */
                        wcache_save_name_to_sid(domain, NT_STATUS_OK, 
                if (domain->backend->consistent) {
                        /* when the backend is consistent we can pre-prime some mappings */
                        wcache_save_name_to_sid(domain, NT_STATUS_OK, 
-                                               (*info)[i].acct_name, 
                                                domain->name,
                                                domain->name,
+                                               (*info)[i].acct_name, 
                                                (*info)[i].user_sid,
                                                SID_NAME_USER);
                        wcache_save_sid_to_name(domain, NT_STATUS_OK, 
                                                (*info)[i].user_sid,
                                                SID_NAME_USER);
                        wcache_save_sid_to_name(domain, NT_STATUS_OK,