dovecot-2.2: auth: If userdb prefetch is configured wrong, retur...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 11 11:29:37 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/535562da7b29
changeset: 17626:535562da7b29
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 11 14:27:52 2014 +0300
description:
auth: If userdb prefetch is configured wrong, return temporary failure instead of "user not known"

diffstat:

 src/auth/userdb-prefetch.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r b162e39909d7 -r 535562da7b29 src/auth/userdb-prefetch.c
--- a/src/auth/userdb-prefetch.c	Fri Jul 11 14:17:17 2014 +0300
+++ b/src/auth/userdb-prefetch.c	Fri Jul 11 14:27:52 2014 +0300
@@ -25,8 +25,10 @@
 				auth_request_log_error(auth_request, AUTH_SUBSYS_DB,
 					"passdb didn't return userdb entries");
 			}
-		} else if (!auth_request->userdb_lookup ||
-			   auth_request->set->debug) {
+			callback(USERDB_RESULT_INTERNAL_FAILURE, auth_request);
+			return;
+		}
+		if (!auth_request->userdb_lookup || auth_request->set->debug) {
 			/* more userdbs, they may know the user */
 			auth_request_log_debug(auth_request, AUTH_SUBSYS_DB,
 				"passdb didn't return userdb entries, "


More information about the dovecot-cvs mailing list