Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6692:a3079c4320c6 HEAD
"Unsupported auth mechanism" and "Plaintext auth disabled" errors should
result in NO instead of BAD reply.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 05 Nov 2007 20:23:24 +0200 |
parents | ee9c8e0f25b7 |
children | 3123e03dc3d8 |
files | src/login-common/sasl-server.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/login-common/sasl-server.c Mon Nov 05 19:25:14 2007 +0200 +++ b/src/login-common/sasl-server.c Mon Nov 05 20:23:24 2007 +0200 @@ -143,14 +143,14 @@ mech = auth_client_find_mech(auth_client, mech_name); if (mech == NULL) { - sasl_server_auth_client_error(client, + sasl_server_auth_failed(client, "Unsupported authentication mechanism."); return; } if (!client->secured && disable_plaintext_auth && (mech->flags & MECH_SEC_PLAINTEXT) != 0) { - sasl_server_auth_client_error(client, + sasl_server_auth_failed(client, "Plaintext authentication disabled."); return; }