summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-04-22 12:02:45 +0200
committerRob Crittenden <rcritten@redhat.com>2013-04-23 16:11:31 -0400
commit6e8d311dac90c52074cfcc07b45a97326e8b7e19 (patch)
treef91485928e15da8fe9902b2656060bf7eba0f285 /ipa-client
parentcc3c54326502ab90d37cae58ccee719f227f1156 (diff)
downloadfreeipa-6e8d311dac90c52074cfcc07b45a97326e8b7e19.tar.gz
freeipa-6e8d311dac90c52074cfcc07b45a97326e8b7e19.tar.xz
freeipa-6e8d311dac90c52074cfcc07b45a97326e8b7e19.zip
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
Diffstat (limited to 'ipa-client')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install4
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 29adc93f3..b51565f04 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.")