]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Correct search expression
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 2 Oct 2023 02:07:16 +0000 (15:07 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2023 03:50:31 +0000 (03:50 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/sid_strings.py

index fa2b84d16ab60279dc1e666105deb97d101acb39..9f174bfd2aa1284b6098dfdf9e9e1667f965278a 100644 (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}")