Author: tpot Date: 2004-10-05 00:48:56 +0000 (Tue, 05 Oct 2004) New Revision: 2822
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=2822&nolog=1 Log: Fix parameter confusion in priming of name-to-sid cache. Found by Qiao Yang. Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c trunk/source/nsswitch/winbindd_cache.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c =================================================================== --- branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2004-10-04 22:13:57 UTC (rev 2821) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2004-10-05 00:48:56 UTC (rev 2822) @@ -751,8 +751,8 @@ if (domain->backend->consistent) { /* when the backend is consistent we can pre-prime some mappings */ wcache_save_name_to_sid(domain, NT_STATUS_OK, + domain->name, (*info)[i].acct_name, - domain->name, (*info)[i].user_sid, SID_NAME_USER); wcache_save_sid_to_name(domain, NT_STATUS_OK, Modified: trunk/source/nsswitch/winbindd_cache.c =================================================================== --- trunk/source/nsswitch/winbindd_cache.c 2004-10-04 22:13:57 UTC (rev 2821) +++ trunk/source/nsswitch/winbindd_cache.c 2004-10-05 00:48:56 UTC (rev 2822) @@ -752,8 +752,8 @@ if (domain->backend->consistent) { /* when the backend is consistent we can pre-prime some mappings */ wcache_save_name_to_sid(domain, NT_STATUS_OK, + domain->name, (*info)[i].acct_name, - domain->name, (*info)[i].user_sid, SID_NAME_USER); wcache_save_sid_to_name(domain, NT_STATUS_OK,