From: Timo Sirainen Date: Tue, 2 Dec 2008 17:11:49 +0000 (+0200) Subject: If only userdb prefetch is defined and userdb lookup is tried, give a better error... X-Git-Tag: 1.2.alpha5~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=119b77133dcaf7146d70c0222ae839d28b9d3a95;p=thirdparty%2Fdovecot%2Fcore.git If only userdb prefetch is defined and userdb lookup is tried, give a better error message. --HG-- branch : HEAD --- diff --git a/src/auth/userdb-prefetch.c b/src/auth/userdb-prefetch.c index 02b15a4e4b..fb122ee796 100644 --- a/src/auth/userdb-prefetch.c +++ b/src/auth/userdb-prefetch.c @@ -18,8 +18,13 @@ static void prefetch_lookup(struct auth_request *auth_request, if (auth_request->userdb_reply == NULL) { if (auth_request->auth->userdbs->next == NULL) { /* no other userdbs */ - auth_request_log_error(auth_request, "prefetch", - "passdb didn't return userdb entries"); + if (auth_request->userdb_lookup) { + auth_request_log_error(auth_request, "prefetch", + "userdb lookup not possible with only userdb prefetch"); + } else { + auth_request_log_error(auth_request, "prefetch", + "passdb didn't return userdb entries"); + } } else if (!auth_request->userdb_lookup || auth_request->auth->verbose_debug) { /* more userdbs, they may know the user */