1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

python:tests: Correct search expression

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-10-02 15:07:16 +13:00 committed by Andrew Bartlett
parent ed97b15fe9
commit 7efe6b0ab4

View File

@ -560,7 +560,7 @@ class SidStringsAsDnInSearchFilter(SidStringBase):
try:
self.ldb.search(base=basedn,
scope=ldb.SCOPE_ONELEVEL,
expression="(distinguishedName=<SID={code}>)")
expression=f"(distinguishedName=<SID={code}>)")
except ldb.LdbError as e:
self.fail(f"expected no failure, got {e}")