Improve error message on failed Kerberos authentication

When ipa client installation fails due to failed Kerberos authentication,
make sure that the message about the failed authentication is displayed last.
This makes it clear to the user that this was the reason for failed
installation.

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

Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
Ana Krivokapic 2013-04-22 17:09:47 +02:00 committed by Martin Kosek
parent 7e9838042d
commit f67268db68

View File

@ -2292,9 +2292,9 @@ def install(options, env, fstore, statestore):
stdin=stdin,
env=env)
if returncode != 0:
print_port_conf_info()
root_logger.error("Kerberos authentication failed")
root_logger.info("%s", stdout)
print_port_conf_info()
return CLIENT_INSTALL_ERROR
elif options.keytab:
join_args.append("-f")
@ -2306,10 +2306,10 @@ def install(options, env, fstore, statestore):
raiseonerr=False)
if returncode != 0:
print_port_conf_info()
root_logger.error("Kerberos authentication failed "
"using keytab: %s", options.keytab)
root_logger.info("%s", stdout)
print_port_conf_info()
return CLIENT_INSTALL_ERROR
else:
root_logger.error("Keytab file could not be found: %s"