mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-27 00:26:33 -06:00
Do not allow installing CA replicas in CA-less setup.
https://fedorahosted.org/freeipa/ticket/3673 https://fedorahosted.org/freeipa/ticket/3674
This commit is contained in:
parent
2ccadf4726
commit
5ae8515c20
@ -160,6 +160,10 @@ def main():
|
||||
config.dir = dir
|
||||
config.setup_ca = True
|
||||
|
||||
if ipautil.file_exists(config.dir + "/dscert.p12"):
|
||||
print 'CA cannot be installed in CA-less setup.'
|
||||
sys.exit(1)
|
||||
|
||||
portfile = config.dir + "/dogtag_directory_port.txt"
|
||||
if not ipautil.file_exists(portfile):
|
||||
dogtag_master_ds_port = str(dogtag.Dogtag9Constants.DS_PORT)
|
||||
|
@ -513,6 +513,10 @@ def main():
|
||||
config.dir = dir
|
||||
config.setup_ca = options.setup_ca
|
||||
|
||||
if config.setup_ca and ipautil.file_exists(config.dir + "/dscert.p12"):
|
||||
print 'CA cannot be installed in CA-less setup.'
|
||||
sys.exit(1)
|
||||
|
||||
installutils.verify_fqdn(config.master_host_name, options.no_host_dns)
|
||||
|
||||
portfile = config.dir + "/dogtag_directory_port.txt"
|
||||
|
Loading…
Reference in New Issue
Block a user