1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-09 20:59:11 +03:00

s4-python: Fix formatting, use standard convention to call instance methods.

This commit is contained in:
Jelmer Vernooij
2010-04-08 23:18:17 +02:00
parent ae6d306c68
commit 7a6f1c7842
6 changed files with 51 additions and 49 deletions

View File

@ -105,7 +105,7 @@ class cmd_ds_acl_set(Command):
return ndr_unpack(security.descriptor, desc)
def get_domain_sid(self, samdb):
res = samdb.search(base=SamDB.domain_dn(samdb),
res = samdb.search(base=samdb.domain_dn(),
expression="(objectClass=*)", scope=SCOPE_BASE)
return ndr_unpack( security.dom_sid,res[0]["objectSid"][0])