dovecot-2.0: auth: If master_user is specified by userdb, don't ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jan 6 14:29:43 EET 2012


details:   http://hg.dovecot.org/dovecot-2.0/rev/684381041dc4
changeset: 13009:684381041dc4
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jan 06 14:29:38 2012 +0200
description:
auth: If master_user is specified by userdb, don't add another one to reply.
The one specified by userdb should have overridden the other one though.

diffstat:

 src/auth/auth-request-handler.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 5ef791398c8c -r 684381041dc4 src/auth/auth-request-handler.c
--- a/src/auth/auth-request-handler.c	Wed Jan 04 17:26:25 2012 +0200
+++ b/src/auth/auth-request-handler.c	Fri Jan 06 14:29:38 2012 +0200
@@ -587,7 +587,9 @@
 	case USERDB_RESULT_OK:
 		auth_stream_reply_add(reply, "USER", NULL);
 		auth_stream_reply_add(reply, NULL, dec2str(request->id));
-		if (request->master_user != NULL) {
+		if (request->master_user != NULL &&
+		    auth_stream_reply_find(request->userdb_reply,
+					   "master_user") == NULL) {
 			auth_stream_reply_add(request->userdb_reply,
 					      "master_user",
 					      request->master_user);


More information about the dovecot-cvs mailing list