dovecot-2.1: auth: If auth fails due to invalid username, send t...

dovecot at dovecot.org dovecot at dovecot.org
Sat Nov 19 23:15:55 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/b1955fdf2ef8
changeset: 13734:b1955fdf2ef8
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Nov 19 23:14:59 2011 +0200
description:
auth: If auth fails due to invalid username, send the username in the FAIL message.

diffstat:

 src/auth/auth-request-handler.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 679837ca1c95 -r b1955fdf2ef8 src/auth/auth-request-handler.c
--- a/src/auth/auth-request-handler.c	Sat Nov 19 23:04:54 2011 +0200
+++ b/src/auth/auth-request-handler.c	Sat Nov 19 23:14:59 2011 +0200
@@ -299,6 +299,10 @@
 		auth_stream_reply_add(reply, NULL, dec2str(request->id));
 		if (request->user != NULL)
 			auth_stream_reply_add(reply, "user", request->user);
+		else if (request->original_username != NULL) {
+			auth_stream_reply_add(reply, "user",
+					      request->original_username);
+		}
 
 		if (request->internal_failure)
 			auth_stream_reply_add(reply, "temp", NULL);


More information about the dovecot-cvs mailing list