1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

s4:dsdb:tests: Make use of ‘ldb’ parameter

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jo Sutton 2024-04-15 13:21:10 +12:00 committed by Jo Sutton
parent 02d7ab13ee
commit 24f109c59f

View 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):