From 76830cda2eddcb36736bbb349dcbc2e9ca032483 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 7 Jul 2010 14:58:05 +0100 Subject: [PATCH] auth: Add "user" field to all PASS lookup replies. --HG-- branch : HEAD --- src/auth/auth-master-connection.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: -- 2.47.3