Add make_entry factory method to LDAPConnection.

Replace all occurences of Entry instantiation with calls to make_entry.
This commit is contained in:
Jan Cholasta
2013-01-22 09:28:25 +01:00
committed by Martin Kosek
parent d9b3c91d47
commit 8d92ca851c
8 changed files with 33 additions and 28 deletions

View File

@@ -395,7 +395,7 @@ class CADSInstance(service.Service):
(ldap.MOD_ADD, "nsslapd-secureport", str(DEFAULT_DSPORT+1))]
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")