From: Timo Sirainen Date: Sat, 19 Nov 2011 21:14:59 +0000 (+0200) Subject: auth: If auth fails due to invalid username, send the username in the FAIL message. X-Git-Tag: 2.1.rc1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a309a2b671ef07d861953f3bd692b01692717c4c;p=thirdparty%2Fdovecot%2Fcore.git auth: If auth fails due to invalid username, send the username in the FAIL message. --- diff --git a/src/auth/auth-request-handler.c b/src/auth/auth-request-handler.c index b4946c4794..1eeea57c88 100644 --- a/src/auth/auth-request-handler.c +++ b/src/auth/auth-request-handler.c @@ -299,6 +299,10 @@ void auth_request_handler_reply(struct auth_request *request, 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);