]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: If user is unknown and there are more passdbs/userdb, log about it.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 24 Mar 2016 18:01:00 +0000 (03:01 +0900)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 24 Mar 2016 18:01:00 +0000 (03:01 +0900)
src/auth/auth-request.c

index 0006e42bd068d98e5e8e09b06fb6b74e8f2ddeb4..24242d9d131fcd31a53d4478bf3c9e8443674a79 100644 (file)
@@ -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));
 }