mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 16:31:08 -06:00
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
This commit is contained in:
parent
f47ec11727
commit
1aee9df3bc
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user