From 6e8d311dac90c52074cfcc07b45a97326e8b7e19 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 22 Apr 2013 12:02:45 +0200 Subject: 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(+) (limited to 'ipa-client') diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 29adc93f..b51565f0 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.") -- cgit