Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8663:011a1fb49cfd HEAD
Give a better error message when userdb-only checkpassword program is used with passdb checkpassword.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 19 Jan 2009 17:38:21 -0500 |
parents | 78d7efda07b2 |
children | 446775a31754 |
files | src/auth/passdb-checkpassword.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/passdb-checkpassword.c Mon Jan 19 16:24:33 2009 -0500 +++ b/src/auth/passdb-checkpassword.c Mon Jan 19 17:38:21 2009 -0500 @@ -82,6 +82,13 @@ 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: