From: Jo Sutton Date: Mon, 15 Apr 2024 01:21:10 +0000 (+1200) Subject: s4:dsdb:tests: Make use of ‘ldb’ parameter X-Git-Tag: tdb-1.4.11~1046 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24f109c59ff22a8a1f22ba4cdc118795e7b4d512;p=thirdparty%2Fsamba.git s4:dsdb:tests: Make use of ‘ldb’ parameter Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/tests/python/unicodepwd_encrypted.py b/source4/dsdb/tests/python/unicodepwd_encrypted.py index 768cbf83f8e..c48f0aa624a 100644 --- a/source4/dsdb/tests/python/unicodepwd_encrypted.py +++ b/source4/dsdb/tests/python/unicodepwd_encrypted.py @@ -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):