https://fedorahosted.org/freeipa/ticket/5463

Patch attached.
From 6f8bbe74a667586b4a3474c88d05b3ea26e22146 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Thu, 19 Nov 2015 13:25:49 +0100
Subject: [PATCH] fix caching in get_ipa_config

Different opbject types were compared thus always result of comparation
was False and caching does not work.

https://fedorahosted.org/freeipa/ticket/5463
---
 ipaserver/plugins/ldap2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
index 7614a3a5585c8469ab95098446331f6185226e82..7b492b2a4a1e8222a8eef9dc12dc5d5ba6e209fc 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -222,7 +222,7 @@ class ldap2(CrudBackend, LDAPClient):
 
         try:
             config_entry = getattr(context, 'config_entry')
-            if config_entry.conn is self.conn:
+            if config_entry.conn.conn is self.conn:
                 return config_entry
         except AttributeError:
             # Not in our context yet
-- 
2.5.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to