diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-06-03 22:21:42 +1000 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2012-06-19 10:38:13 +0200 |
commit | 873ec60f5406aecdbb1f6a1149af517f21939e43 (patch) | |
tree | 44d4afd9ced24d7787fe19effae7c2df251bb1a4 | |
parent | faf24ed6ced23dbeb560beaa5b44eea7f2520d6f (diff) | |
download | samba-873ec60f5406aecdbb1f6a1149af517f21939e43.tar.gz samba-873ec60f5406aecdbb1f6a1149af517f21939e43.tar.bz2 samba-873ec60f5406aecdbb1f6a1149af517f21939e43.zip |
s3-auth: Fix system token as just being SID_NT_SYSTEM
This removes the SID matching the sec_initial_uid().
Andrew Bartlett
Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source3/auth/auth_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index eb5961de15..91fecfedbf 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1049,6 +1049,9 @@ static NTSTATUS make_new_session_info_system(TALLOC_CTX *mem_ctx, (*session_info)->unix_info->system = true; + TALLOC_FREE((*session_info)->security_token->sids); + (*session_info)->security_token->num_sids = 0; + status = add_sid_to_array_unique((*session_info)->security_token->sids, &global_sid_System, &(*session_info)->security_token->sids, |