]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Give a better error message when userdb-only checkpassword program is used with passd...
authorTimo Sirainen <tss@iki.fi>
Mon, 19 Jan 2009 22:38:21 +0000 (17:38 -0500)
committerTimo Sirainen <tss@iki.fi>
Mon, 19 Jan 2009 22:38:21 +0000 (17:38 -0500)
--HG--
branch : HEAD

src/auth/passdb-checkpassword.c

index d5eec548b9f5849eb6dfd7a38067cee81a76112d..888a2cf977ddc626905875b2f272ff67893c5982 100644 (file)
@@ -82,6 +82,13 @@ checkpassword_request_half_finish(struct chkpw_auth_request *request)
        case 2:
                /* checkpassword is called with wrong
                   parameters? unlikely */
+               auth_request_log_error(request->request, "checkpassword",
+                       "Child %s exited with status 2 (tried to use "
+                       "userdb-only checkpassword program for passdb?)",
+                       dec2str(request->pid));
+               checkpassword_request_finish(request,
+                                            PASSDB_RESULT_INTERNAL_FAILURE);
+               break;
        case 111:
                /* temporary problem, treat as internal error */
        default: