Hi,

When client enrollment fails due to the fact that host entry
already exists on the server, display an message informing the
user about the possibility of using --force-join option.

https://fedorahosted.org/freeipa/ticket/3572

Tomas
>From 72fd08bef07c8126cfa4f4b1dd601be635c62de7 Mon Sep 17 00:00:00 2001
From: Tomas Babej <tba...@redhat.com>
Date: Mon, 22 Apr 2013 12:02:45 +0200
Subject: [PATCH] Add hint message about --force-join option when enrollment
 fails

When client enrollment fails due to the fact that host entry
already exists on the server, display an message informing the
user about the possibility of using --force-join option.

https://fedorahosted.org/freeipa/ticket/3572
---
 ipa-client/ipa-install/ipa-client-install | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 29adc93f3bcb3ccc81c31237af314af0ba61b8c9..b51565f043d6d2c1d8038a4a86c3e53e166d689f 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -2125,6 +2125,10 @@ def install(options, env, fstore, statestore):
             if returncode != 0:
                 root_logger.error("Joining realm failed: %s", stderr)
                 if not options.force:
+                    if returncode == 13:
+                        root_logger.info("Use --force-join option to override "
+                                         "the host entry on the server "
+                                         "and force client enrollment.")
                     return CLIENT_INSTALL_ERROR
                 root_logger.info("Use ipa-getkeytab to obtain a host " +
                     "principal for this server.")
-- 
1.8.1.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to