[SCM] Samba Shared Repository - branch v3-6-test updated

Karolin Seeger kseeger at samba.org
Sat Oct 15 11:44:33 MDT 2011


The branch, v3-6-test has been updated
       via  095a8c2 s3: Fix bug 8455 -- Samba PDC is looking up only primary user group
      from  a97cbf0 Another part of the fix for Bug 8473 - smb2_find uses a hard coded max reply size of 0x10000 instead of smb2_max_trans.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test


- Log -----------------------------------------------------------------
commit 095a8c2c42c8af5563bb7e0657bf2c2806d5da25
Author: Volker Lendecke <vl at samba.org>
Date:   Fri Sep 16 15:45:47 2011 +0200

    s3: Fix bug 8455 -- Samba PDC is looking up only primary user group
    
    group_sids_to_info3 does a sid_peek_check_rid on the domain sid before adding
    the rids to the array. If the domain sid is 0x0, then the check will always
    fail.
    
    Autobuild-User: Volker Lendecke <vlendec at samba.org>
    Autobuild-Date: Sat Sep 17 00:51:27 CEST 2011 on sn-devel-104
    (cherry picked from commit 3dcec44f3edbc9c4f1946ead3480f6d01cd53e7a)

-----------------------------------------------------------------------

Summary of changes:
 source3/auth/server_info.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c
index 3190b75..c6d68c2 100644
--- a/source3/auth/server_info.c
+++ b/source3/auth/server_info.c
@@ -438,6 +438,13 @@ NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx,
 	info3->base.logon_count	= pdb_get_logon_count(samu);
 	info3->base.bad_password_count = pdb_get_bad_password_count(samu);
 
+	info3->base.domain.string = talloc_strdup(info3,
+						  pdb_get_domain(samu));
+	RET_NOMEM(info3->base.domain.string);
+
+	info3->base.domain_sid = dom_sid_dup(info3, &domain_sid);
+	RET_NOMEM(info3->base.domain_sid);
+
 	status = pdb_enum_group_memberships(mem_ctx, samu,
 					    &group_sids, &gids,
 					    &num_group_sids);
@@ -468,13 +475,6 @@ NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx,
 		RET_NOMEM(info3->base.logon_server.string);
 	}
 
-	info3->base.domain.string = talloc_strdup(info3,
-						  pdb_get_domain(samu));
-	RET_NOMEM(info3->base.domain.string);
-
-	info3->base.domain_sid = dom_sid_dup(info3, &domain_sid);
-	RET_NOMEM(info3->base.domain_sid);
-
 	info3->base.acct_flags = pdb_get_acct_ctrl(samu);
 
 	*_info3 = info3;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list