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 /ipaserver/plugins | |
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 'ipaserver/plugins')
-rw-r--r-- | ipaserver/plugins/ldap2.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index 295eddd72..360e6e2e2 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -476,7 +476,6 @@ class ldap2(LDAPClient, CrudBackend): assert isinstance(dn, DN) (dn, entry_attrs) = self.get_entry(dn, attrs_list) - entry_attrs['dn'] = dn return entry_attrs def create(self, **kw): @@ -552,7 +551,6 @@ class ldap2(LDAPClient, CrudBackend): filter, attrs_list, base_dn, scope ) for (dn, entry_attrs) in entries: - entry_attrs['dn'] = [dn] output.append(entry_attrs) if truncated: |