summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-28 07:45:47 +0200
committerGünther Deschner <gd@samba.org>2010-09-28 09:40:57 +0200
commit07697fa053099a01035a30f4d05dffeafff96c75 (patch)
treea5a9fd991bf249a717381241bc791fd88cc8d6e5 /source3
parent314d738f907958a86e2638689f5c45f3b931047e (diff)
downloadsamba-07697fa053099a01035a30f4d05dffeafff96c75.tar.gz
samba-07697fa053099a01035a30f4d05dffeafff96c75.tar.bz2
samba-07697fa053099a01035a30f4d05dffeafff96c75.zip
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
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;
}