summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2013-05-06 13:34:02 +0200
committerStef Walter <stefw@redhat.com>2013-05-06 13:34:02 +0200
commitbb72ff217c29a62b68367b8e0e5f9fb7f392b53e (patch)
treeed8712e192a0b3107e8f48e49431f967e9a31604
parentcb0332f3175ba9fad8e62d37661b5b7b8e6bbea3 (diff)
Handle KRB5_PREAUTH_FAILED as an invalid password
* This happens when password is empty
-rw-r--r--library/adconn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/adconn.c b/library/adconn.c
index 7db5dcf..cf25b47 100644
--- a/library/adconn.c
+++ b/library/adconn.c
@@ -313,7 +313,8 @@ handle_kinit_krb5_code (adcli_conn *conn,
code == KRB5KDC_ERR_KEY_EXP ||
code == KRB5KDC_ERR_CLIENT_REVOKED ||
code == KRB5KDC_ERR_POLICY ||
- code == KRB5KDC_ERR_ETYPE_NOSUPP) {
+ code == KRB5KDC_ERR_ETYPE_NOSUPP ||
+ code == KRB5_PREAUTH_FAILED) {
if (type == ADCLI_LOGIN_COMPUTER_ACCOUNT) {
_adcli_err ("Couldn't authenticate as machine account: %s: %s",
name, krb5_get_error_message (conn->k5, code));