dovecot: "Unsupported auth mechanism" and "Plaintext auth disabl...

dovecot at dovecot.org dovecot at dovecot.org
Mon Nov 5 20:23:41 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/a3079c4320c6
changeset: 6692:a3079c4320c6
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Nov 05 20:23:24 2007 +0200
description:
"Unsupported auth mechanism" and "Plaintext auth disabled" errors should
result in NO instead of BAD reply.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/login-common/sasl-server.c |    4 ++--

diffs (20 lines):

diff -r ee9c8e0f25b7 -r a3079c4320c6 src/login-common/sasl-server.c
--- 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 @@ void sasl_server_auth_begin(struct clien
 
 	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;
 	}


More information about the dovecot-cvs mailing list