Mercurial > dovecot > core-2.2
diff src/auth/auth-request.c @ 8402:244addad91a5 HEAD
auth: Improved "user not found from userdb" error message.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 15 Nov 2008 19:07:04 +0200 |
parents | fc5683975951 |
children | 529034798b6b |
line wrap: on
line diff
--- a/src/auth/auth-request.c Sat Nov 15 19:03:00 2008 +0200 +++ b/src/auth/auth-request.c Sat Nov 15 19:07:04 2008 +0200 @@ -704,8 +704,14 @@ request->client_pid != 0) { /* this was an actual login attempt, the user should have been found. */ - auth_request_log_error(request, "userdb", - "user not found from userdb"); + if (request->auth->userdbs->next == NULL) { + auth_request_log_error(request, "userdb", + "user not found from userdb %s", + request->auth->userdbs->userdb->iface->name); + } else { + auth_request_log_error(request, "userdb", + "user not found from any userdbs"); + } } if (result != USERDB_RESULT_INTERNAL_FAILURE)