mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
7e9838042d
commit
f67268db68
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user