s4:dsdb:tests: Make use of ‘ldb’ parameter
authorJo Sutton <josutton@catalyst.net.nz>
Mon, 15 Apr 2024 01:21:10 +0000 (13:21 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 19 Apr 2024 05:02:54 +0000 (17:02 +1200)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/unicodepwd_encrypted.py

index 768cbf83f8eb333e2f976e065649ac05c9cea6d7..c48f0aa624a16bd32636215c3f2294be25ec4733 100644 (file)
@@ -76,10 +76,10 @@ class UnicodePwdEncryptedConnectionTests(PasswordTestCase):
         ldb.modify(m)
 
     def get_admin_sid(self, ldb):
-        res = self.ldb.search(
+        res = ldb.search(
             base="", expression="", scope=SCOPE_BASE, attrs=["tokenGroups"])
 
-        return self.ldb.schema_format_value(
+        return ldb.schema_format_value(
             "tokenGroups", res[0]["tokenGroups"][0]).decode("utf8")
 
     def test_with_seal(self):