mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
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
This commit is contained in:
parent
314d738f90
commit
07697fa053
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user