mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
replica install: add remote connection check over API
Add server_conncheck command which calls ipa-replica-conncheck --replica over oddjob. https://fedorahosted.org/freeipa/ticket/5497 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com> Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
committed by
Tomas Babej
parent
00f591d4e9
commit
8d7f67e08c
@@ -67,7 +67,7 @@ STRIP_ATTRS = ('modifiersName',
|
||||
|
||||
def replica_conn_check(master_host, host_name, realm, check_ca,
|
||||
dogtag_master_ds_port, admin_password=None,
|
||||
principal="admin"):
|
||||
principal="admin", ca_cert_file=None):
|
||||
"""
|
||||
Check the ports used by the replica both locally and remotely to be sure
|
||||
that replication will work.
|
||||
@@ -89,6 +89,10 @@ def replica_conn_check(master_host, host_name, realm, check_ca,
|
||||
|
||||
if check_ca and dogtag_master_ds_port == 7389:
|
||||
args.append('--check-ca')
|
||||
|
||||
if ca_cert_file:
|
||||
args.extend(["--ca-cert-file", ca_cert_file])
|
||||
|
||||
(stdin, stderr, returncode) = ipautil.run(
|
||||
args, raiseonerr=False, capture_output=False, nolog=nolog)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user