CVE-2023-0614 s4:dsdb:tests: Fix <GUID={}> search in confidential attributes test
commitd9a20068a3dd9905763c5f5991eb8e555da94605
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 6 Feb 2023 20:48:37 +0000 (7 09:48 +1300)
committerJule Anger <janger@samba.org>
Mon, 20 Mar 2023 09:03:44 +0000 (20 10:03 +0100)
treed301c91fdf6c905ca875957040082f8db0cdf64e
parent2ea5bbc269e3d7796247ccf428e082f383d51ec8
CVE-2023-0614 s4:dsdb:tests: Fix <GUID={}> search in confidential attributes test

The object returned by schema_format_value() is a bytes object.
Therefore the search expression would resemble:

(lastKnownParent=<GUID=b'00000000-0000-0000-0000-000000000000'>)

which, due to the extra characters, would fail to match anything.

Fix it to be:

(lastKnownParent=<GUID=00000000-0000-0000-0000-000000000000>)

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/confidential_attr.py