Mercurial > dovecot > core-2.2
changeset 19962:81903a4b2e98
auth: If user is unknown and there are more passdbs/userdb, log about it.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 25 Mar 2016 03:01:00 +0900 |
parents | 3f6a74b9ce54 |
children | bd9c9196a439 |
files | src/auth/auth-request.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-request.c Fri Mar 25 02:48:55 2016 +0900 +++ b/src/auth/auth-request.c Fri Mar 25 03:01:00 2016 +0900 @@ -2031,6 +2031,14 @@ 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)); }