summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/ldapupdate.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-01-22 09:28:25 +0100
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:43 +0100
commit8d92ca851c6a0d3380ddbe13c3b442adab274f93 (patch)
tree333e840dcd564035013b5cfa31115ffe1baf9e1b /ipaserver/install/ldapupdate.py
parentd9b3c91d47b246f2bafbe290c4988d0faf3a8cea (diff)
downloadfreeipa-8d92ca851c6a0d3380ddbe13c3b442adab274f93.tar.gz
freeipa-8d92ca851c6a0d3380ddbe13c3b442adab274f93.tar.xz
freeipa-8d92ca851c6a0d3380ddbe13c3b442adab274f93.zip
Add make_entry factory method to LDAPConnection.
Replace all occurences of Entry instantiation with calls to make_entry.
Diffstat (limited to 'ipaserver/install/ldapupdate.py')
-rw-r--r--ipaserver/install/ldapupdate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py
index 0d2606404..d2a23e55e 100644
--- a/ipaserver/install/ldapupdate.py
+++ b/ipaserver/install/ldapupdate.py
@@ -449,7 +449,7 @@ class LDAPUpdate:
cn = "indextask_%s_%s_%s" % (attribute, cn_uuid.time, cn_uuid.clock_seq)
dn = DN(('cn', cn), ('cn', 'index'), ('cn', 'tasks'), ('cn', 'config'))
- e = ipaldap.Entry(dn)
+ e = self.conn.make_entry(dn)
e.setValues('objectClass', ['top', 'extensibleObject'])
e.setValue('cn', cn)
@@ -511,7 +511,7 @@ class LDAPUpdate:
The return type is Entity
"""
assert isinstance(dn, DN)
- entry = ipaldap.Entry(dn)
+ entry = self.conn.make_entry(dn)
if not default:
# This means that the entire entry needs to be created with add