]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Add "user" field to all PASS lookup replies.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 Jul 2010 13:58:05 +0000 (14:58 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 Jul 2010 13:58:05 +0000 (14:58 +0100)
--HG--
branch : HEAD

src/auth/auth-master-connection.c

index 5173689cc582074c4d528caa9aa4fea1b8b0404f..4fd2c6e685c0e0c27f6b9ab2544dae29033b4f35 100644 (file)
@@ -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: