summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-06-21 16:05:11 -0400
committerAdam Young <ayoung@redhat.com>2011-06-21 16:40:07 -0400
commit1aee9df3bcf157883e7237eb94451cff0504cb94 (patch)
tree0a6a13ced9c4595af503097be56320c4ad4fe685 /ipalib/plugins
parentf47ec1172761eb08a5f54ce73e8508f5c3729756 (diff)
downloadfreeipa-1aee9df3bcf157883e7237eb94451cff0504cb94.tar.gz
freeipa-1aee9df3bcf157883e7237eb94451cff0504cb94.tar.xz
freeipa-1aee9df3bcf157883e7237eb94451cff0504cb94.zip
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
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/baseldap.py1
1 files changed, 1 insertions, 0 deletions
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
)