diff options
Diffstat (limited to 'ipalib/plugins/krbtpolicy.py')
-rw-r--r-- | ipalib/plugins/krbtpolicy.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipalib/plugins/krbtpolicy.py b/ipalib/plugins/krbtpolicy.py index 07e3148d..976f92b3 100644 --- a/ipalib/plugins/krbtpolicy.py +++ b/ipalib/plugins/krbtpolicy.py @@ -176,8 +176,10 @@ class krbtpolicy_reset(LDAPQuery): dn = self.obj.get_dn(None) (dn, entry_attrs) = ldap.get_entry(dn, self.obj.default_attributes) + entry_attrs = entry_to_dict(entry_attrs, **options) + if keys[-1] is not None: - return dict(result=dict(entry_attrs), value=keys[-1]) - return dict(result=dict(entry_attrs), value=u'') + return dict(result=entry_attrs, value=keys[-1]) + return dict(result=entry_attrs, value=u'') api.register(krbtpolicy_reset) |