diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-06-21 16:05:11 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-06-21 16:40:07 -0400 |
commit | 1aee9df3bcf157883e7237eb94451cff0504cb94 (patch) | |
tree | 0a6a13ced9c4595af503097be56320c4ad4fe685 /ipalib/plugins | |
parent | f47ec1172761eb08a5f54ce73e8508f5c3729756 (diff) | |
download | freeipa-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.py | 1 |
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 ) |