summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-10-24 13:09:11 +0200
committerJan Cholasta <jcholast@redhat.com>2016-11-11 12:13:56 +0100
commit8a7e79a7a6fad8dc87c8f148cb5098434f988ea3 (patch)
tree77a60583525fe1331caa81c1afac504a206dfa23 /install/tools
parentb1283c1e56976a3019c81c3be88fa821431ac6a6 (diff)
downloadfreeipa-8a7e79a7a6fad8dc87c8f148cb5098434f988ea3.tar.gz
freeipa-8a7e79a7a6fad8dc87c8f148cb5098434f988ea3.tar.xz
freeipa-8a7e79a7a6fad8dc87c8f148cb5098434f988ea3.zip
replica install: use one remote CA host name everywhere
Remote master and CA host names may differ. Always use the remote CA host name and never the remote master host name in CA replica install. https://fedorahosted.org/freeipa/ticket/6392 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipa-ca-install8
1 files changed, 3 insertions, 5 deletions
diff --git a/install/tools/ipa-ca-install b/install/tools/ipa-ca-install
index 079773dbd..aaacf447d 100755
--- a/install/tools/ipa-ca-install
+++ b/install/tools/ipa-ca-install
@@ -138,7 +138,7 @@ def install_replica(safe_options, options, filename):
if options.promote:
config = ReplicaConfig()
- config.master_host_name = None
+ config.ca_host_name = None
config.realm_name = api.env.realm
config.host_name = api.env.host
config.domain_name = api.env.domain
@@ -149,6 +149,7 @@ def install_replica(safe_options, options, filename):
cafile = paths.IPA_CA_CRT
else:
config = create_replica_config(dirman_password, filename, options)
+ config.ca_host_name = config.master_host_name
cafile = config.dir + '/ca.crt'
global REPLICA_INFO_TOP_DIR
@@ -159,12 +160,9 @@ def install_replica(safe_options, options, filename):
attrs = api.Backend.ldap2.get_ipa_config()
config.subject_base = attrs.get('ipacertificatesubjectbase')[0]
- if config.master_host_name is None:
+ if config.ca_host_name is None:
config.ca_host_name = \
service.find_providing_server('CA', api.Backend.ldap2, api.env.ca_host)
- config.master_host_name = config.ca_host_name
- else:
- config.ca_host_name = config.master_host_name
options.realm_name = config.realm_name
options.domain_name = config.domain_name