summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/dsinstance.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/dsinstance.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/dsinstance.py')
-rw-r--r--ipaserver/install/dsinstance.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index 7bfcfd6c..9eca4b50 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -570,14 +570,14 @@ class DsInstance(service.Service):
mod = [(ldap.MOD_ADD, "nsslapd-security", "on")]
conn.modify_s(DN(('cn', 'config')), mod)
- entry = conn.make_entry(DN(('cn', 'RSA'), ('cn', 'encryption'), ('cn', 'config')))
-
- entry.setValues("objectclass", "top", "nsEncryptionModule")
- entry.setValues("cn", "RSA")
- entry.setValues("nsSSLPersonalitySSL", nickname)
- entry.setValues("nsSSLToken", "internal (software)")
- entry.setValues("nsSSLActivation", "on")
-
+ entry = conn.make_entry(
+ DN(('cn', 'RSA'), ('cn', 'encryption'), ('cn', 'config')),
+ objectclass=["top", "nsEncryptionModule"],
+ cn=["RSA"],
+ nsSSLPersonalitySSL=[nickname],
+ nsSSLToken=["internal (software)"],
+ nsSSLActivation=["on"],
+ )
conn.addEntry(entry)
conn.unbind()