Hi,

the attached patch fixes <https://fedorahosted.org/freeipa/ticket/5530>.

Honza

--
Jan Cholasta
From 484f68304bd4748313c50be35b1667694e07f00b Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jchol...@redhat.com>
Date: Mon, 14 Dec 2015 13:30:33 +0100
Subject: [PATCH] replica promotion: notify user about ignoring client
 enrollment options

When IPA client is already installed, notify the user that the enrollment
options are ignored in ipa-replica-install.

https://fedorahosted.org/freeipa/ticket/5530
---
 ipaserver/install/server/replicainstall.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py
index 1d5b528..572af75 100644
--- a/ipaserver/install/server/replicainstall.py
+++ b/ipaserver/install/server/replicainstall.py
@@ -883,6 +883,11 @@ def promote_check(installer):
     client_fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE)
     if not client_fstore.has_files():
         ensure_enrolled(installer)
+    else:
+        if (options.server or options.domain or options.password or
+                options.keytab):
+            print("IPA client is already configured on this system, ignoring "
+                  "the --server, --domain, --password and --keytab options.")
 
     sstore = sysrestore.StateFile(paths.SYSRESTORE)
 
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to