summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 94adc3c7fc..9fbc7f1ba3 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -768,6 +768,15 @@ static NTSTATUS make_new_server_info_system(TALLOC_CTX *mem_ctx,
(*server_info)->system = true;
+ status = add_sid_to_array_unique((*server_info)->ptok->sids,
+ &global_sid_System,
+ &(*server_info)->ptok->sids,
+ &(*server_info)->ptok->num_sids);
+ if (!NT_STATUS_IS_OK(status)) {
+ TALLOC_FREE((*server_info));
+ return status;
+ }
+
return NT_STATUS_OK;
}