From d6c3d3f57afb82f39c400e98b878fb57e00c1139 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 10 Dec 2013 11:53:32 +0100 Subject: Store old entry state in dict rather than LDAPEntry. https://fedorahosted.org/freeipa/ticket/3488 --- ipaserver/plugins/ldap2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipaserver') 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): -- cgit