diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-01-31 11:19:13 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:46 +0100 |
commit | bb36683c8480a68d54ef632daa0a4d6df9802187 (patch) | |
tree | 00c9652ad120eb4d3a0c3807025615ecbb0d03f1 /ipalib/plugins/krbtpolicy.py | |
parent | 982b78277755a301e3baa1d4f2bd7e1663fb88a5 (diff) | |
download | freeipa-bb36683c8480a68d54ef632daa0a4d6df9802187.tar.gz freeipa-bb36683c8480a68d54ef632daa0a4d6df9802187.tar.xz freeipa-bb36683c8480a68d54ef632daa0a4d6df9802187.zip |
Use the dn attribute of LDAPEntry to set/get DNs of entries.
Convert all code that uses the 'dn' key of LDAPEntry for this to use the dn
attribute instead.
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 07e3148db..976f92b3c 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) |