python/ntacls.py: Fix ACE type comparison
commit27dd0afb62d4f7427c966e984c7c8b01bc4d93b5
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 4 Mar 2022 03:11:42 +0000 (4 16:11 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 17 Mar 2022 00:41:34 +0000 (17 00:41 +0000)
tree793103b63f7fc368a822c962f19efbe4e6dc5280
parent52afaa0ceb5f2a372c075f64c5ae445621263b36
python/ntacls.py: Fix ACE type comparison

SEC_ACE_TYPE_ values are not flags, so this comparison does not behave
as intended. Modify the check to more closely match the one in
gp_create_gpt_security_descriptor().

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/ntacls.py