s4: fix wrong index usage PRIMARY_USER_SID_INDEX when it should have been PRIMARY_GRO...
authorMatthieu Patou <mat@matws.net>
Mon, 13 Jun 2011 20:27:07 +0000 (00:27 +0400)
committerMatthieu Patou <mat@samba.org>
Sun, 19 Jun 2011 21:21:08 +0000 (23:21 +0200)
The system account was instanciated with wrong user an group SIDs, group
sid resulted being just the domain SID.
Bug seems to date from fbe6d155bf177c610ee549cc534650b0f0700e8a.

Andrew (B.) please check.

source4/auth/system_session.c

index 54b8f514cf1e9a2396b19177e12a27f49d5fb7c0..3b9edd779df7a466909ff6af1535d0a594ba6c3e 100644 (file)
@@ -190,7 +190,7 @@ static NTSTATUS auth_domain_admin_user_info_dc(TALLOC_CTX *mem_ctx,
        sid_append_rid(&user_info_dc->sids[PRIMARY_USER_SID_INDEX], DOMAIN_RID_ADMINISTRATOR);
 
        user_info_dc->sids[PRIMARY_GROUP_SID_INDEX] = *domain_sid;
-       sid_append_rid(&user_info_dc->sids[PRIMARY_USER_SID_INDEX], DOMAIN_RID_USERS);
+       sid_append_rid(&user_info_dc->sids[PRIMARY_GROUP_SID_INDEX], DOMAIN_RID_USERS);
 
        user_info_dc->sids[2] = global_sid_Builtin_Administrators;