From 07697fa053099a01035a30f4d05dffeafff96c75 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 28 Sep 2010 07:45:47 +0200 Subject: s3-auth_util: make sure the system server info actually contains S-1-5-18. Without this, all security descriptor checks for the winreg spoolss backend fail and make our spoolss system in its current shape basically unusable. Andreas, please check. Guenther --- source3/auth/auth_util.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3') 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; } -- cgit