From: Timo Sirainen Date: Mon, 19 Jan 2009 22:38:21 +0000 (-0500) Subject: Give a better error message when userdb-only checkpassword program is used with passd... X-Git-Tag: 1.2.beta1~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b3aa1958796e97ca9a9534c5a439ecda28590b9;p=thirdparty%2Fdovecot%2Fcore.git Give a better error message when userdb-only checkpassword program is used with passdb checkpassword. --HG-- branch : HEAD --- diff --git a/src/auth/passdb-checkpassword.c b/src/auth/passdb-checkpassword.c index d5eec548b9..888a2cf977 100644 --- a/src/auth/passdb-checkpassword.c +++ b/src/auth/passdb-checkpassword.c @@ -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: