summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/ldap2.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-01-31 11:19:13 +0100
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:46 +0100
commitbb36683c8480a68d54ef632daa0a4d6df9802187 (patch)
tree00c9652ad120eb4d3a0c3807025615ecbb0d03f1 /ipaserver/plugins/ldap2.py
parent982b78277755a301e3baa1d4f2bd7e1663fb88a5 (diff)
downloadfreeipa-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/ldap2.py')
-rw-r--r--ipaserver/plugins/ldap2.py2
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: