From 953ad43f15eb157d0a05edb31b03a20e13c40da4 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 13 Apr 2023 11:21:38 +1200 Subject: pytest:sid_strings: test SIDs as search base As a way of testing the interpretation of a SID string in a remote server, we search on the base DN "" where x is a non-existent or malformed SID. On Windows some or all malformed SIDs are detected before the search begins, resulting in a complaint about DN syntax rather than one about missing objects. From this we can get a picture of what Windows considers to be a proper SID in this context. Samba does not make a distinction here, always returning NO_SUCH_OBJECT. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- selftest/knownfail.d/sid-strings | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'selftest') diff --git a/selftest/knownfail.d/sid-strings b/selftest/knownfail.d/sid-strings index 29c87240e8a..85557319d55 100644 --- a/selftest/knownfail.d/sid-strings +++ b/selftest/knownfail.d/sid-strings @@ -49,6 +49,13 @@ ^samba.tests.sid_strings.+.SidStringTests.test_sid_string_internal_Aa.ad_dc ^samba.tests.sid_strings.+.SidStringTests.test_sid_string_internal_aA.ad_dc ^samba.tests.sid_strings.+.SidStringTests.test_sid_string_internal_aa.ad_dc +^samba.tests.sid_strings.+.SidStringsAsDnInSearchBase.test_sid_string_S-0-5-32-579.ad_dc +^samba.tests.sid_strings.+.SidStringsAsDnInSearchBase.test_sid_string_S-000000000001-5-20-243.ad_dc +^samba.tests.sid_strings.+.SidStringsAsDnInSearchBase.test_sid_string_S-000000001-5-32-579.ad_dc +^samba.tests.sid_strings.+.SidStringsAsDnInSearchBase.test_sid_string_S-1-3-0.ad_dc +^samba.tests.sid_strings.+.SidStringsAsDnInSearchBase.test_sid_string_S-1-5-3.2-579.ad_dc +^samba.tests.sid_strings.+.SidStringsAsDnInSearchBase.test_sid_string_S-10-5-32-579.ad_dc +^samba.tests.sid_strings.+.SidStringsAsDnInSearchBase.test_sid_string_S-2-5-32-579.ad_dc ^samba.tests.sid_strings.+.SidStringsThatStartWithS.test_sid_string_.S-1-1-1-1-1-1-1.ad_dc ^samba.tests.sid_strings.+.SidStringsThatStartWithS.test_sid_string_S-1-0.ad_dc ^samba.tests.sid_strings.+.SidStringsThatStartWithS.test_sid_string_S-1-0x05-32-579.ad_dc -- cgit v1.2.1