svn commit: samba r2822 - branches/SAMBA_3_0/source/nsswitch trunk/source/nsswitch

tpot at samba.org tpot at samba.org
Tue Oct 5 00:48:57 GMT 2004


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, 



More information about the samba-cvs mailing list