]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python/policies.py: avoid SDDL conversion for dsacl2fsacl
authorRalph Boehme <slow@samba.org>
Mon, 31 Jul 2023 13:56:26 +0000 (15:56 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 19 Mar 2025 14:58:32 +0000 (14:58 +0000)
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>
python/samba/policies.py

index 45392322b3e01c0df1ed682e0f3257d573fb67ec..0a496513c21f41e195f8bed4416cf988e2a6873a 100644 (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: