summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-12-10 11:53:32 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-01-10 14:41:39 +0100
commitd6c3d3f57afb82f39c400e98b878fb57e00c1139 (patch)
tree081c633f594fd0acaa2543c0fe09532494ce3f1f /ipaserver/plugins
parent4284a8349b4db3de2d67be6c201cd2490ad48a20 (diff)
downloadfreeipa-d6c3d3f57afb82f39c400e98b878fb57e00c1139.tar.gz
freeipa-d6c3d3f57afb82f39c400e98b878fb57e00c1139.tar.xz
freeipa-d6c3d3f57afb82f39c400e98b878fb57e00c1139.zip
Store old entry state in dict rather than LDAPEntry.
https://fedorahosted.org/freeipa/ticket/3488
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r--ipaserver/plugins/ldap2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
index 97f26ec77..f6284dcb2 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -272,7 +272,7 @@ class ldap2(LDAPClient, CrudBackend):
try:
config_entry = getattr(context, 'config_entry')
if config_entry.conn is self.conn:
- return config_entry.clone()
+ return config_entry
except AttributeError:
# Not in our context yet
pass
@@ -289,7 +289,7 @@ class ldap2(LDAPClient, CrudBackend):
for a in self.config_defaults:
if a not in config_entry:
config_entry[a] = self.config_defaults[a]
- context.config_entry = config_entry.clone()
+ context.config_entry = config_entry
return config_entry
def has_upg(self):