]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
userdb prefetch: Userdb lookups shouldn't log the "passdb didn't return
authorTimo Sirainen <tss@iki.fi>
Wed, 23 Jul 2008 23:31:37 +0000 (02:31 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 23 Jul 2008 23:31:37 +0000 (02:31 +0300)
userdb entries" since there was no passdb lookup at all. But log it anyway
when auth_debug=yes.

--HG--
branch : HEAD

src/auth/userdb-prefetch.c

index 858b15ff566b8117b0cc4f2e7426beff740236db..7471b9a655a8a2c81b88723aeb9aeaf82d23d9ea 100644 (file)
@@ -20,7 +20,8 @@ static void prefetch_lookup(struct auth_request *auth_request,
                        /* no other userdbs */
                        auth_request_log_error(auth_request, "prefetch",
                                "passdb didn't return userdb entries");
-               } else {
+               } else if (!auth_request->userdb_lookup ||
+                          auth_request->auth->verbose_debug) {
                        /* more userdbs, they may know the user */
                        auth_request_log_info(auth_request, "prefetch",
                                "passdb didn't return userdb entries, "