prior to this patch sddl_decode get_global_sam_sid was using
'get_global_sam_sid()' but the reciprocal call to sddl_encode uses
'get_domain_sid()' using the domain_sid (instead of local machine sid)
is 'correct'
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
struct security_descriptor *sd = NULL;
if (sddl) {
- sd = sddl_decode(talloc_tos(), the_acl, get_global_sam_sid());
+ sd = sddl_decode(talloc_tos(), the_acl, get_domain_sid(cli));
} else {
sd = sec_desc_parse(talloc_tos(), cli, the_acl);
}
/* parse acl passed on the command line */
if (sddl) {
cbstate->aclsd = sddl_decode(ctx, the_acl,
- get_global_sam_sid());
+ get_domain_sid(cli));
} else {
cbstate->aclsd = sec_desc_parse(ctx, cli, the_acl);
}