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:
parent
ed97b15fe9
commit
7efe6b0ab4
@ -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}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user