summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/baseldap.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/baseldap.py')
-rw-r--r--ipalib/plugins/baseldap.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index eab8d74e0..c59f5fa21 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -1332,7 +1332,12 @@ class LDAPUpdate(LDAPQuery, crud.Update):
# mean an error occurred, just that there were no other updates to
# perform.
assert isinstance(dn, DN)
- self._exc_wrapper(keys, options, ldap.update_entry)(dn, entry_attrs)
+
+ update = self._exc_wrapper(keys, options, ldap.get_entry)(
+ dn, entry_attrs.keys())
+ update.update(entry_attrs)
+
+ self._exc_wrapper(keys, options, ldap.update_entry)(update)
except errors.EmptyModlist, e:
if not rdnupdate:
raise e