pytest:sid_strings: test SIDs as search base
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 12 Apr 2023 23:21:38 +0000 (11:21 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Apr 2023 02:15:36 +0000 (02:15 +0000)
commit953ad43f15eb157d0a05edb31b03a20e13c40da4
treef1cf6e893f2fa0ac1671ed4d1d31f974f4cbc574
parentf66b0f868836a9fd1a223e1f374fea61f89d4cd5
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 "<SID=x>" 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 <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/sid_strings.py
selftest/knownfail.d/sid-strings