dovecot-1.2: Give a better error message when userdb-only checkp...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jan 20 00:38:26 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/011a1fb49cfd
changeset: 8663:011a1fb49cfd
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 19 17:38:21 2009 -0500
description:
Give a better error message when userdb-only checkpassword program is used with passdb checkpassword.

diffstat:

1 file changed, 7 insertions(+)
src/auth/passdb-checkpassword.c |    7 +++++++

diffs (17 lines):

diff -r 78d7efda07b2 -r 011a1fb49cfd src/auth/passdb-checkpassword.c
--- 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 @@ checkpassword_request_half_finish(struct
 	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:


More information about the dovecot-cvs mailing list