mirror of
https://github.com/samba-team/samba.git
synced 2025-01-05 09:18:06 +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:
|
try:
|
||||||
self.ldb.search(base=basedn,
|
self.ldb.search(base=basedn,
|
||||||
scope=ldb.SCOPE_ONELEVEL,
|
scope=ldb.SCOPE_ONELEVEL,
|
||||||
expression="(distinguishedName=<SID={code}>)")
|
expression=f"(distinguishedName=<SID={code}>)")
|
||||||
except ldb.LdbError as e:
|
except ldb.LdbError as e:
|
||||||
self.fail(f"expected no failure, got {e}")
|
self.fail(f"expected no failure, got {e}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user