dovecot-2.0: auth: Add "user" field to all PASS lookup replies.

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 7 16:58:10 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/4db258f7ce91
changeset: 11747:4db258f7ce91
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jul 07 14:58:05 2010 +0100
description:
auth: Add "user" field to all PASS lookup replies.

diffstat:

 src/auth/auth-master-connection.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7ebbd6925c41 -r 4db258f7ce91 src/auth/auth-master-connection.c
--- a/src/auth/auth-master-connection.c	Wed Jul 07 13:44:26 2010 +0100
+++ b/src/auth/auth-master-connection.c	Wed Jul 07 14:58:05 2010 +0100
@@ -237,9 +237,12 @@
 	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:


More information about the dovecot-cvs mailing list