summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/dsinstance.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/dsinstance.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/dsinstance.py')
-rw-r--r--ipaserver/install/dsinstance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index 4689fd2b..7bfcfd6c 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -570,7 +570,7 @@ class DsInstance(service.Service):
mod = [(ldap.MOD_ADD, "nsslapd-security", "on")]
conn.modify_s(DN(('cn', 'config')), mod)
- entry = ipaldap.Entry(DN(('cn', 'RSA'), ('cn', 'encryption'), ('cn', 'config')))
+ entry = conn.make_entry(DN(('cn', 'RSA'), ('cn', 'encryption'), ('cn', 'config')))
entry.setValues("objectclass", "top", "nsEncryptionModule")
entry.setValues("cn", "RSA")