From: Timo Sirainen Date: Thu, 24 Mar 2016 18:01:00 +0000 (+0900) Subject: auth: If user is unknown and there are more passdbs/userdb, log about it. X-Git-Tag: 2.2.24~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=090c9c266842db622cd064906b39eeef0207742f;p=thirdparty%2Fdovecot%2Fcore.git auth: If user is unknown and there are more passdbs/userdb, log about it. --- 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)); }