]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pytest: sid_strings: Samba DN object refuses sub-auth overflow
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 2 May 2024 23:29:31 +0000 (11:29 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 May 2024 23:25:35 +0000 (23:25 +0000)
We were mistakenly asserting something that did not happen with
Windows, because Samba already won't parse the DN string.

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

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

index 1b720356d8322e4f04967d0cec75ddfddf2c1033..fbeb0a940775355599fa3d65585896615f989a13 100644 (file)
@@ -491,9 +491,9 @@ class SidStringsAsDnSearchWithDnObject(SidStringBase):
              'S-1-0x05-32-579': (None, None),
              'S-1-0x5-0x20-0x221': (None, None),
              'S-1-0x50000000-32-579': (None, ldb.ERR_NO_SUCH_OBJECT),
-             'S-1-0x500000000-0x500000000-579': (None, ldb.ERR_NO_SUCH_OBJECT),
+             'S-1-0x500000000-0x500000000-579': ('parse error', None),
              'S-1-0x500000000-32-579': (None, ldb.ERR_NO_SUCH_OBJECT),
-             'S-1-0xABcDef123-0xABCDef123-579': (None, ldb.ERR_NO_SUCH_OBJECT),
+             'S-1-0xABcDef123-0xABCDef123-579': ('parse error', None),
              'S-1-1-1-1-1-1-1': (None, ldb.ERR_NO_SUCH_OBJECT),
              'S-1-21474836480-32-579': (None, ldb.ERR_NO_SUCH_OBJECT),
              'S-1-22': (None, ldb.ERR_NO_SUCH_OBJECT),
index 7b2a779ce7088524a1be1a31ce3326e530a83958..36b73ca98b79be5a67794e66fd8f8815e8debf38 100644 (file)
@@ -58,8 +58,6 @@
 ^samba.tests.sid_strings.+.SidStringsAsDnInSearchBase.test_sid_string_S-2-5-32-579.ad_dc
 ^samba.tests.sid_strings.+.SidStringsAsDnSearchWithDnObject.test_sid_string_S-0-5-32-579.ad_dc
 ^samba.tests.sid_strings.+.SidStringsAsDnSearchWithDnObject.test_sid_string_S-1-0x05-32-579.ad_dc
-^samba.tests.sid_strings.+.SidStringsAsDnSearchWithDnObject.test_sid_string_S-1-0x500000000-0x500000000-579.ad_dc
-^samba.tests.sid_strings.+.SidStringsAsDnSearchWithDnObject.test_sid_string_S-1-0xABcDef123-0xABCDef123-579.ad_dc
 ^samba.tests.sid_strings.+.SidStringsAsDnSearchWithDnObject.test_sid_string_S-1-3-0.ad_dc
 ^samba.tests.sid_strings.+.SidStringsAsDnSearchWithDnObject.test_sid_string_S-1-5-3.2-579.ad_dc
 ^samba.tests.sid_strings.+.SidStringsAsDnSearchWithDnObject.test_sid_string_s-1-5-1234-5678.ad_dc