Revert "s4:samdb python bindings - we don't need the attributes here"
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 17 Aug 2009 09:06:39 +0000 (11:06 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 17 Aug 2009 09:06:39 +0000 (11:06 +0200)
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)!

source4/scripting/python/samba/samdb.py

index 4daa40dd078e5f3aed9369b437da8dce783b316a..d9d12126cf875edac46c111cd1a4bdda2a570bba 100644 (file)
@@ -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