mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
s4:samdb python bindings - we don't need the attributes here
This commit is contained in:
@ -186,8 +186,7 @@ pwdLastSet: 0
|
|||||||
assert(domain_dn is not None)
|
assert(domain_dn is not None)
|
||||||
|
|
||||||
res = self.search(domain_dn, scope=ldb.SCOPE_SUBTREE,
|
res = self.search(domain_dn, scope=ldb.SCOPE_SUBTREE,
|
||||||
expression=filter,
|
expression=filter)
|
||||||
attrs=[])
|
|
||||||
assert(len(res) == 1)
|
assert(len(res) == 1)
|
||||||
user_dn = res[0].dn
|
user_dn = res[0].dn
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user