From 3b3aa1958796e97ca9a9534c5a439ecda28590b9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Jan 2009 17:38:21 -0500 Subject: [PATCH] Give a better error message when userdb-only checkpassword program is used with passdb checkpassword. --HG-- branch : HEAD --- src/auth/passdb-checkpassword.c | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- 2.47.3