[dovecot-cvs] dovecot/src/login-common sasl-server.c,1.4,1.5

cras at dovecot.org cras at dovecot.org
Tue Oct 19 02:03:57 EEST 2004


Update of /var/lib/cvs/dovecot/src/login-common
In directory talvi:/tmp/cvs-serv14747/login-common

Modified Files:
	sasl-server.c 
Log Message:
Use reason=xx field in FAIL to report the error message instead of separate
field.



Index: sasl-server.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/sasl-server.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sasl-server.c	18 Oct 2004 19:21:47 -0000	1.4
+++ sasl-server.c	18 Oct 2004 23:03:54 -0000	1.5
@@ -89,6 +89,7 @@
 		client->auth_request = NULL;
 
 		if (args != NULL) {
+			/* parse our username if it's there */
 			for (i = 0; args[i] != NULL; i++) {
 				if (strncmp(args[i], "user=", 5) == 0) {
 					i_free(client->virtual_user);
@@ -98,14 +99,6 @@
 			}
 		}
 
-		/* base64 contains error message, if there is one */
-		if (verbose_auth && data_base64 != NULL) {
-			client_syslog(client, "Authenticate %s failed: %s",
-				      str_sanitize(client->auth_mech_name,
-						   MAX_MECH_NAME),
-				      (const char *)data_base64);
-		}
-
 		client->authenticating = FALSE;
 		client->sasl_callback(client, SASL_SERVER_REPLY_AUTH_FAILED,
 				      (const char *)data_base64, args);



More information about the dovecot-cvs mailing list