From 08051f16516a3978494ae94032d55cc8b1426df9 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 31 Oct 2013 16:54:49 +0000 Subject: Convert remaining installer code to LDAPEntry API. --- install/tools/ipa-server-install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/tools/ipa-server-install') diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index dcf0bcebd..63710d02d 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -561,10 +561,10 @@ def set_subject_in_config(realm_name, dm_password, suffix, subject_base): except errors.ExecutionError, e: root_logger.critical("Could not connect to the Directory Server on %s" % realm_name) raise e - (dn, entry_attrs) = conn.get_ipa_config() + entry_attrs = conn.get_ipa_config() if 'ipacertificatesubjectbase' not in entry_attrs: - mod = {'ipacertificatesubjectbase': str(subject_base)} - conn.update_entry(dn, mod) + entry_attrs['ipacertificatesubjectbase'] = [str(subject_base)] + conn.update_entry(entry_attrs) conn.disconnect() -- cgit