pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0148-fix-caching-in-get_ipa_config.patch

2e9388
From 823340f96f16ee7924ba6ce54c8fe43e3ea41469 Mon Sep 17 00:00:00 2001
2e9388
From: Martin Basti <mbasti@redhat.com>
2e9388
Date: Thu, 19 Nov 2015 13:25:49 +0100
2e9388
Subject: [PATCH] fix caching in get_ipa_config
2e9388
2e9388
Different opbject types were compared thus always result of comparation
2e9388
was False and caching does not work.
2e9388
2e9388
https://fedorahosted.org/freeipa/ticket/5463
2e9388
2e9388
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
2e9388
---
2e9388
 ipaserver/plugins/ldap2.py | 2 +-
2e9388
 1 file changed, 1 insertion(+), 1 deletion(-)
2e9388
2e9388
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
2e9388
index deb0592ab68ab8eb712a6d29fdffd8776e2e289a..5d2945f90f54ba2a099271a3715f4f9c14866e97 100644
2e9388
--- a/ipaserver/plugins/ldap2.py
2e9388
+++ b/ipaserver/plugins/ldap2.py
2e9388
@@ -204,7 +204,7 @@ class ldap2(CrudBackend, LDAPClient):
2e9388
 
2e9388
         try:
2e9388
             config_entry = getattr(context, 'config_entry')
2e9388
-            if config_entry.conn is self.conn:
2e9388
+            if config_entry.conn.conn is self.conn:
2e9388
                 return config_entry
2e9388
         except AttributeError:
2e9388
             # Not in our context yet
2e9388
-- 
2e9388
2.4.3
2e9388