summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-06-14 00:27:07 +0400
committerMatthieu Patou <mat@samba.org>2011-06-19 23:21:08 +0200
commit245b27774995b6ee8aef4b14bb3dc5518fc733d1 (patch)
treea612c45a1b85f54b04bc75047fe17c34a5fad4c7
parent930d2f28c99d5cf8823ca0837a632e13cead9fce (diff)
downloadsamba-245b27774995b6ee8aef4b14bb3dc5518fc733d1.tar.gz
samba-245b27774995b6ee8aef4b14bb3dc5518fc733d1.tar.bz2
samba-245b27774995b6ee8aef4b14bb3dc5518fc733d1.zip
s4: fix wrong index usage PRIMARY_USER_SID_INDEX when it should have been PRIMARY_GROUP_SID_INDEX
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.
-rw-r--r--source4/auth/system_session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/system_session.c b/source4/auth/system_session.c
index 54b8f514cf..3b9edd779d 100644
--- a/source4/auth/system_session.c
+++ b/source4/auth/system_session.c
@@ -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;