Mercurial > dovecot > original-hg > dovecot-1.2
diff src/login-common/client-common.c @ 9408:0c7bbdd7b81f HEAD
*-login: Log more precise reasons for some auth failures.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 05 Oct 2009 14:13:17 -0400 |
parents | b9faf4db2a9f |
children | 00cd9aacd03c |
line wrap: on
line diff
--- a/src/login-common/client-common.c Mon Oct 05 11:59:43 2009 -0400 +++ b/src/login-common/client-common.c Mon Oct 05 14:13:17 2009 -0400 @@ -205,6 +205,12 @@ return "(tried to use disabled plaintext auth)"; if (ssl_require_client_cert) return "(cert required, client didn't start TLS)"; + if (client->auth_tried_unsupported_mech) + return "(tried to use unsupported auth mechanism)"; + if (client->auth_request != NULL && client->auth_attempts == 1) + return "(disconnected while authenticating)"; + if (client->auth_try_aborted && client->auth_attempts == 1) + return "(aborted authentication)"; return t_strdup_printf("(auth failed, %u attempts)", client->auth_attempts);