diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-10-31 16:53:44 +0000 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-12-16 14:44:19 +0100 |
commit | bc3f3381c6bf0b4941889b775025a60f56318551 (patch) | |
tree | 1bb64b48ed61420276beec92bb3f20bf38afa758 /ipapython | |
parent | acede580e1f617af3f5205a490184781dd35b481 (diff) | |
download | freeipa-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.py | 6 |
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 |