diff options
author | Martin Basti <mbasti@redhat.com> | 2013-10-15 11:31:49 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-01-27 15:21:59 +0100 |
commit | 00a4ad2c34c6203ee058b71a4c25d22d2f333b09 (patch) | |
tree | f1d3a7e604ba7972f4ef739a5becbc127c835bf6 | |
parent | 2fbb14d3c0cfec25948104b39e6f6df7f07c7749 (diff) | |
download | freeipa.git-00a4ad2c34c6203ee058b71a4c25d22d2f333b09.tar.gz freeipa.git-00a4ad2c34c6203ee058b71a4c25d22d2f333b09.tar.xz freeipa.git-00a4ad2c34c6203ee058b71a4c25d22d2f333b09.zip |
Added warning if cert '/etc/ipa/ca.crt' exists
https://fedorahosted.org/freeipa/ticket/3944
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 5e966a3a..afed54e5 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -1870,6 +1870,10 @@ def install(options, env, fstore, statestore): root_logger.warning("Option 'force-join' has no additional effect " "when used with together with option 'keytab'.") + # Check if old certificate exist and show warning + if not options.ca_cert_file and get_cert_path(options.ca_cert_file) == CACERT: + root_logger.warning("Using existing certificate '%s'.", CACERT) + # Create the discovery instance ds = ipadiscovery.IPADiscovery() |