1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-24 04:23:53 +03:00

python/policies.py: avoid SDDL conversion for dsacl2fsacl

This is not needed and has the potential to loose
information if the sddl code wouldn't have all features
implemented.

No intended change in behaviour.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14927

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Ralph Boehme
2023-07-31 15:56:26 +02:00
parent 29df0b6691
commit 62c8dc9fa1

View File

@@ -78,8 +78,7 @@ class RegistryGroupPolicies(object):
# Create a file system security descriptor
domain_sid = security.dom_sid(self.samdb.get_domain_sid())
sddl = dsacl2fsacl(ds_sd, domain_sid)
self.fs_sd = security.descriptor.from_sddl(sddl, domain_sid)
self.fs_sd = dsacl2fsacl(ds_sd, domain_sid, as_sddl=False)
def __load_registry_pol(self, pol_file):
try: