]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pytest:sddl: show the correct handling of the "FA" SDDL flag
authorAndrew Bartlett <abartlet@samba.org>
Wed, 26 Apr 2023 05:00:17 +0000 (17:00 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Apr 2023 02:15:36 +0000 (02:15 +0000)
The "FA" flag should map to 0x1f01ff, and 0x1f01ff should be converted
back into "FA".

This will be fixed over the next couple of commits.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/tests/sddl.py
selftest/knownfail.d/sddl

index 2e945b8799e552b95e5e107c9260aa49eac4451e..ac719eb3212a4e9988e16e00b6b1f57b6bb64a6d 100644 (file)
@@ -616,6 +616,13 @@ class SddlNonCanonical(SddlDecodeEncodeBase):
           "(OU;CIIDSA;WP;f30e3bbf-9ff0-11d1-b603-0000f80367c1;"
           "bf967aa5-0de6-11d0-a285-00aa003049e2;WD)")),
 
+        (("O:LAG:BAD:P(A;OICI;0x1f01ff;;;BA)"),
+         ("O:LAG:BAD:P(A;OICI;FA;;;BA)")),
+
+        (("O:LAG:BAD:(A;;0x1ff;;;WD)",
+          ("O:LAG:BAD:(A;;CCDCLCSWRPWPDTLOCR;;;WD)"))),
+
+        ("D:(A;;FAGX;;;SY)", "D:(A;;0x201f01ff;;;SY)"),
     ]
 
 
@@ -649,7 +656,10 @@ class SddlCanonical(SddlDecodeEncodeBase):
         "O:S-1-2-512D:",
         "D:PARAI(A;;GA;;;SY)",
         "D:P(A;;GA;;;LG)(A;;GX;;;AA)",
-        "D:(A;;FA;;;WD)"
+        "D:(A;;FA;;;WD)",
+        "D:(A;;CCDCLCSWRPWPDTLOCR;;;WD)",
+        "D:(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)"
+
     ]
 
 
index a6bcc5d27f7cd59344711174f353eec166c1f4fe..1b4209843e4e1f0ab3b5875fa0bf630bccb7fe8e 100644 (file)
@@ -1,3 +1,5 @@
 ^samba.tests.sddl.+.SddlCanonical.test_sddl_D:.A;;FA;;;WD..none
 ^samba.tests.sddl.+.SddlNonCanonical.test_sddl_D:.A;;0x001f01ff;;;WD..A;;0x001f01ff;;;S-1-5-21-11111111-22222222-33333333-1001..A;;0x001f01ff;;;S-1+11522-more-characters.none
+^samba.tests.sddl.+.SddlNonCanonical.test_sddl_D:.A;;FAGX;;;SY..none
+^samba.tests.sddl.+.SddlNonCanonical.test_sddl_O:LAG:BAD:P.A;OICI;0x1f01ff;;;BA..none
 ^samba.tests.sddl.+.SddlNonCanonical.test_sddl_O:S-1-5-21-2212615479-2695158682-2101375468-512G:S-1-5-21-2212615479-2695158682-2101375468-513D:P.A;+482-more-characters.none