diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-10-31 16:53:44 +0000 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-12-16 14:44:19 +0100 |
commit | bc3f3381c6bf0b4941889b775025a60f56318551 (patch) | |
tree | 1bb64b48ed61420276beec92bb3f20bf38afa758 /ipaserver/plugins/dogtag.py | |
parent | acede580e1f617af3f5205a490184781dd35b481 (diff) | |
download | freeipa-bc3f3381c6bf0b4941889b775025a60f56318551.tar.gz freeipa-bc3f3381c6bf0b4941889b775025a60f56318551.tar.xz freeipa-bc3f3381c6bf0b4941889b775025a60f56318551.zip |
Convert remaining backend code to LDAPEntry API.
Diffstat (limited to 'ipaserver/plugins/dogtag.py')
-rw-r--r-- | ipaserver/plugins/dogtag.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ipaserver/plugins/dogtag.py b/ipaserver/plugins/dogtag.py index e5a8d3b17..123c2d54a 100644 --- a/ipaserver/plugins/dogtag.py +++ b/ipaserver/plugins/dogtag.py @@ -1303,9 +1303,7 @@ class ra(rabase.rabase): ent, trunc = ldap2.find_entries(filter=filter, base_dn=base_dn) if len(ent): entry = random.choice(ent) - dn = entry[0] - assert isinstance(dn, DN) - return dn[1].value + return entry.dn[1].value except Exception, e: pass return None |