summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/ldapupdate.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-18 09:24:35 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:44 +0100
commit3dd4b36e1a3262f923a5f07f9d287318a68532a8 (patch)
tree2e2720677cf485b36e17820d544f3bab47414dfb /ipaserver/install/ldapupdate.py
parent6896626baa609a1eb3ed815060fac43cf5920778 (diff)
downloadfreeipa.git-3dd4b36e1a3262f923a5f07f9d287318a68532a8.tar.gz
freeipa.git-3dd4b36e1a3262f923a5f07f9d287318a68532a8.tar.xz
freeipa.git-3dd4b36e1a3262f923a5f07f9d287318a68532a8.zip
Replace setValue by keyword arguments when creating entries
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/install/ldapupdate.py')
-rw-r--r--ipaserver/install/ldapupdate.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py
index f7f6c059..5de43749 100644
--- a/ipaserver/install/ldapupdate.py
+++ b/ipaserver/install/ldapupdate.py
@@ -422,12 +422,13 @@ 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 = self.conn.make_entry(dn)
-
- e.setValues('objectClass', ['top', 'extensibleObject'])
- e.setValue('cn', cn)
- e.setValue('nsInstance', 'userRoot')
- e.setValues('nsIndexAttribute', attribute)
+ e = self.conn.make_entry(
+ dn,
+ objectClass=['top', 'extensibleObject'],
+ cn=[cn],
+ nsInstance=['userRoot'],
+ nsIndexAttribute=[attribute],
+ )
self.info("Creating task to index attribute: %s", attribute)
self.debug("Task id: %s", dn)