dovecot-1.0: "Unsupported auth mechanism" and "Plaintext auth di...

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


details:   http://hg.dovecot.org/dovecot-1.0/rev/6df077099f0b
changeset: 5449:6df077099f0b
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Nov 05 20:23:32 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 635245cad7ba -r 6df077099f0b src/login-common/sasl-server.c
--- a/src/login-common/sasl-server.c	Sat Nov 03 17:57:46 2007 +0200
+++ b/src/login-common/sasl-server.c	Mon Nov 05 20:23:32 2007 +0200
@@ -130,14 +130,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