diff options
Diffstat (limited to 'ipaserver/install/replication.py')
-rw-r--r-- | ipaserver/install/replication.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index 858e3f36b..45dea27bb 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -64,7 +64,8 @@ STRIP_ATTRS = ('modifiersName', def replica_conn_check(master_host, host_name, realm, check_ca, - dogtag_master_ds_port, admin_password=None): + dogtag_master_ds_port, admin_password=None, + principal="admin"): """ Check the ports used by the replica both locally and remotely to be sure that replication will work. @@ -74,10 +75,12 @@ def replica_conn_check(master_host, host_name, realm, check_ca, print("Run connection check to master") args = [paths.IPA_REPLICA_CONNCHECK, "--master", master_host, "--auto-master-check", "--realm", realm, - "--principal", "admin", "--hostname", host_name] nolog=tuple() + if principal is not None: + args.extend(["--principal", principal]) + if admin_password: args.extend(["--password", admin_password]) nolog=(admin_password,) |