"Unsupported auth mechanism" and "Plaintext auth disabled" errors should branch_1_0
authorTimo Sirainen <tss@iki.fi>
Mon Nov 05 20:23:32 2007 +0200 (2007-11-05)
branchbranch_1_0
changeset 54496df077099f0b
parent 5448 635245cad7ba
child 5450 a4a076529140
"Unsupported auth mechanism" and "Plaintext auth disabled" errors should
result in NO instead of BAD reply.
src/login-common/sasl-server.c
     1.1 --- a/src/login-common/sasl-server.c	Sat Nov 03 17:57:46 2007 +0200
     1.2 +++ b/src/login-common/sasl-server.c	Mon Nov 05 20:23:32 2007 +0200
     1.3 @@ -130,14 +130,14 @@
     1.4  
     1.5  	mech = auth_client_find_mech(auth_client, mech_name);
     1.6  	if (mech == NULL) {
     1.7 -		sasl_server_auth_client_error(client,
     1.8 +		sasl_server_auth_failed(client,
     1.9  			"Unsupported authentication mechanism.");
    1.10  		return;
    1.11  	}
    1.12  
    1.13  	if (!client->secured && disable_plaintext_auth &&
    1.14  	    (mech->flags & MECH_SEC_PLAINTEXT) != 0) {
    1.15 -		sasl_server_auth_client_error(client,
    1.16 +		sasl_server_auth_failed(client,
    1.17  			"Plaintext authentication disabled.");
    1.18  		return;
    1.19  	}