1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

s3/utils: Detect (and report) failure to parse sddl

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Noel Power
2023-11-15 12:55:36 +00:00
committed by Andrew Bartlett
parent d0d026bdb5
commit b319769ebd

View File

@ -2108,6 +2108,11 @@ static int cacl_restore(struct cli_state *cli,
}
} else {
entries[index].sd = sddl_decode(lines, lines[i], sid);
if(entries[index].sd == NULL) {
DBG_ERR("could not decode '%s'\n", lines[i]);
result = EXIT_FAILED;
goto out;
}
entries[index].sd->type |=
SEC_DESC_DACL_AUTO_INHERIT_REQ;
entries[index].sd->type |= SEC_DESC_SACL_AUTO_INHERITED;