From: Matthias Dieter Wallnöfer Date: Mon, 17 Aug 2009 09:06:39 +0000 (+0200) Subject: Revert "s4:samdb python bindings - we don't need the attributes here" X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=36f828bafb973586157e9745593418994a962a34 Revert "s4:samdb python bindings - we don't need the attributes here" This reverts commit 53ef426e6f68728763436bd0cd3dd91180c00579. 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)! --- diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 4daa40dd078e..d9d12126cf87 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -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