From 8d92ca851c6a0d3380ddbe13c3b442adab274f93 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 22 Jan 2013 09:28:25 +0100 Subject: Add make_entry factory method to LDAPConnection. Replace all occurences of Entry instantiation with calls to make_entry. --- ipaserver/install/ldapupdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipaserver/install/ldapupdate.py') diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index 0d260640..d2a23e55 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 -- cgit