mirror of
https://github.com/samba-team/samba.git
synced 2025-07-22 16:59:09 +03:00
Revert "s4:samdb python bindings - we don't need the attributes here"
This reverts commit 53ef426e6f
.
As abartlet pointed out this causes to load all attributes and therefore gives
us more here than we need (only the check for the DN)!
This commit is contained in:
@ -165,7 +165,8 @@ pwdLastSet: 0
|
||||
assert(domain_dn is not None)
|
||||
|
||||
res = self.search(domain_dn, scope=ldb.SCOPE_SUBTREE,
|
||||
expression=filter)
|
||||
expression=filter,
|
||||
attrs=[])
|
||||
assert(len(res) == 1)
|
||||
user_dn = res[0].dn
|
||||
|
||||
|
Reference in New Issue
Block a user