summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-17 11:06:39 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-17 11:06:39 +0200
commit36f828bafb973586157e9745593418994a962a34 (patch)
treee26a3e378a31a98df743d4c518a25de64f89a815 /source4/scripting
parent87921bf694cf5c733de0179cf188c6a5cbaf48f0 (diff)
downloadsamba-36f828bafb973586157e9745593418994a962a34.tar.gz
samba-36f828bafb973586157e9745593418994a962a34.tar.bz2
samba-36f828bafb973586157e9745593418994a962a34.zip
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)!
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/samdb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index 4daa40dd07..d9d12126cf 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