s4:dsdb/tests: allow sec_descriptor.py to run against Windows 2022
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Mar 2023 13:48:00 +0000 (14:48 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 Mar 2023 22:10:32 +0000 (22:10 +0000)
We need SEC_STD_DELETE in order to run the test twice against the same server.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/sec_descriptor.py

index 03647e549649906cac8b9c5bab94fa2e37ce208b..1579d669036a31c17f080249ff272db840dff886 100755 (executable)
@@ -1626,7 +1626,7 @@ class DaclDescriptorTests(DescriptorTests):
         ou_dn5 = "OU=test_inherit_ou5," + ou_dn1
         ou_dn6 = "OU=test_inherit_ou6," + ou_dn2
         # Create inheritable-free OU
-        mod = "D:P(A;CI;WPRPLCCCDCWDRC;;;DA)"
+        mod = "D:P(A;CI;WPRPLCCCDCWDRCSD;;;DA)"
         tmp_desc = security.descriptor.from_sddl(mod, self.domain_sid)
         self.ldb_admin.create_ou(ou_dn, sd=tmp_desc)
         mod = "D:(A;CI;GA;;;DU)"
@@ -1671,7 +1671,7 @@ class DaclDescriptorTests(DescriptorTests):
         ou_dn1 = "OU=test_inherit_ou1," + ou_dn
         ou_dn5 = "OU=test_inherit_ou5," + ou_dn1
         # Create inheritable-free OU
-        mod = "D:P(A;CI;WPRPLCCCDCWDRC;;;DA)"
+        mod = "D:P(A;CI;WPRPLCCCDCWDRCSD;;;DA)"
         tmp_desc = security.descriptor.from_sddl(mod, self.domain_sid)
         self.ldb_admin.create_ou(ou_dn, sd=tmp_desc)
         mod = "D:(A;CIIO;WP;;;DU)"
@@ -1687,7 +1687,7 @@ class DaclDescriptorTests(DescriptorTests):
         """
         ou_dn = "OU=test_inherit_ou," + self.base_dn
         group_dn = "CN=test_inherit_group," + ou_dn
-        mod = "D:P(A;;WPRPLCCCDCWDRC;;;DA)"
+        mod = "D:P(A;;WPRPLCCCDCWDRCSD;;;DA)"
         tmp_desc = security.descriptor.from_sddl(mod, self.domain_sid)
         self.ldb_admin.create_ou(ou_dn, sd=tmp_desc)
         # Add some custom  ACE
@@ -1704,7 +1704,7 @@ class DaclDescriptorTests(DescriptorTests):
         """
         ou_dn = "OU=test_inherit_ou," + self.base_dn
         group_dn = "CN=test_inherit_group," + ou_dn
-        mod = "D:P(A;;WPRPLCCCDCWDRC;;;DA)"
+        mod = "D:P(A;;WPRPLCCCDCWDRCSD;;;DA)"
         tmp_desc = security.descriptor.from_sddl(mod, self.domain_sid)
         self.ldb_admin.create_ou(ou_dn, sd=tmp_desc)
         # Add some custom  ACE