mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-replica-install: --setup-ca and *-cert-file are mutually exclusive
ipa-replica-install currently accepts both --setup-ca and *-cert-file even though the options should be mutually exclusive (either install CA-less with *-cert-file options or with a CA). Add a check enforcing the options are mutually exclusive. Fixes: https://pagure.io/freeipa/issue/8366 Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
a18d406b56
commit
51cb631db3
@ -776,6 +776,12 @@ def promote_check(installer):
|
||||
# check selinux status, http and DS ports, NTP conflicting services
|
||||
common_check(options.no_ntp)
|
||||
|
||||
if options.setup_ca and any([options.dirsrv_cert_files,
|
||||
options.http_cert_files,
|
||||
options.pkinit_cert_files]):
|
||||
raise ScriptError("--setup-ca and --*-cert-file options are "
|
||||
"mutually exclusive")
|
||||
|
||||
client_fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE)
|
||||
if not client_fstore.has_files():
|
||||
# One-step replica installation
|
||||
|
Loading…
Reference in New Issue
Block a user