From: Timo Sirainen Date: Sat, 15 Nov 2008 17:07:04 +0000 (+0200) Subject: auth: Improved "user not found from userdb" error message. X-Git-Tag: 1.2.alpha4~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0dd8990e7eca64b2df25b8da315029d262422303;p=thirdparty%2Fdovecot%2Fcore.git auth: Improved "user not found from userdb" error message. --HG-- branch : HEAD --- diff --git a/src/auth/auth-request.c b/src/auth/auth-request.c index 8cba04d20f..d224f8bdfd 100644 --- a/src/auth/auth-request.c +++ b/src/auth/auth-request.c @@ -704,8 +704,14 @@ void auth_request_userdb_callback(enum userdb_result result, 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)