summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-10-31 16:53:44 +0000
committerPetr Viktorin <pviktori@redhat.com>2013-12-16 14:44:19 +0100
commitbc3f3381c6bf0b4941889b775025a60f56318551 (patch)
tree1bb64b48ed61420276beec92bb3f20bf38afa758 /ipapython
parentacede580e1f617af3f5205a490184781dd35b481 (diff)
downloadfreeipa-bc3f3381c6bf0b4941889b775025a60f56318551.tar.gz
freeipa-bc3f3381c6bf0b4941889b775025a60f56318551.tar.xz
freeipa-bc3f3381c6bf0b4941889b775025a60f56318551.zip
Convert remaining backend code to LDAPEntry API.
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/ipaldap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py
index 39d0edb1c..a48879f0a 100644
--- a/ipapython/ipaldap.py
+++ b/ipapython/ipaldap.py
@@ -1521,14 +1521,14 @@ class LDAPClient(object):
assert isinstance(dn, DN)
- (entry, truncated) = self.find_entries(
+ (entries, truncated) = self.find_entries(
None, attrs_list, dn, self.SCOPE_BASE, time_limit=time_limit,
size_limit=size_limit
)
if truncated:
raise errors.LimitsExceeded()
- return entry[0]
+ return entries[0]
def _get_dn_and_attrs(self, entry_or_dn, entry_attrs):
"""Helper for legacy calling style for {add,update}_entry
@@ -1577,7 +1577,7 @@ class LDAPClient(object):
assert isinstance(dn, DN)
# get original entry
- dn, entry_attrs_old = self.get_entry(dn, entry_attrs.keys())
+ entry_attrs_old = self.get_entry(dn, entry_attrs.keys())
# generate modlist
# for multi value attributes: no MOD_REPLACE to handle simultaneous