From 090c9c266842db622cd064906b39eeef0207742f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 25 Mar 2016 03:01:00 +0900 Subject: [PATCH] auth: If user is unknown and there are more passdbs/userdb, log about it. --- src/auth/auth-request.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/auth/auth-request.c b/src/auth/auth-request.c index 0006e42bd0..24242d9d13 100644 --- a/src/auth/auth-request.c +++ b/src/auth/auth-request.c @@ -2031,6 +2031,14 @@ void auth_request_log_unknown_user(struct auth_request *request, str_append(str, "unknown user "); auth_request_append_password(request, str); + + if (request->userdb_lookup) { + if (request->userdb->next != NULL) + str_append(str, " - trying the next userdb"); + } else { + if (request->passdb->next != NULL) + str_append(str, " - trying the next passdb"); + } i_info("%s", str_c(str)); } -- 2.47.3