From: Timo Sirainen Date: Wed, 7 Jul 2010 13:58:05 +0000 (+0100) Subject: auth: Add "user" field to all PASS lookup replies. X-Git-Tag: 2.0.rc2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76830cda2eddcb36736bbb349dcbc2e9ca032483;p=thirdparty%2Fdovecot%2Fcore.git auth: Add "user" field to all PASS lookup replies. --HG-- branch : HEAD --- diff --git a/src/auth/auth-master-connection.c b/src/auth/auth-master-connection.c index 5173689cc5..4fd2c6e685 100644 --- a/src/auth/auth-master-connection.c +++ b/src/auth/auth-master-connection.c @@ -237,9 +237,12 @@ pass_callback(enum passdb_result result, str = t_str_new(128); switch (result) { case PASSDB_RESULT_OK: - str_printfa(str, "PASS\t%u\t", auth_request->id); - if (reply != NULL) + str_printfa(str, "PASS\t%u\tuser=", auth_request->id); + str_tabescape_write(str, auth_request->user); + if (reply != NULL) { + str_append_c(str, '\t'); str_append(str, auth_stream_reply_export(reply)); + } break; case PASSDB_RESULT_USER_UNKNOWN: case PASSDB_RESULT_USER_DISABLED: