From 1aee9df3bcf157883e7237eb94451cff0504cb94 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 21 Jun 2011 16:05:11 -0400 Subject: [PATCH] Do lazy LDAP schema retrieval in json handler. It was possible to get to this point without a schema if the first handled request resulted in a Kerberos error. https://fedorahosted.org/freeipa/ticket/1354 --- ipalib/plugins/baseldap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 7d4552576..7ea5e3671 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -380,6 +380,7 @@ class LDAPObject(Object): def __json__(self): ldap = self.backend + ldap.get_schema() json_dict = dict( (a, getattr(self, a)) for a in self.json_friendly_attributes )