dovecot-2.2: auth: Return a reason string if PASS lookup fails b...

dovecot at dovecot.org dovecot at dovecot.org
Sat Nov 2 12:43:06 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/9b45f6d20d9d
changeset: 16905:9b45f6d20d9d
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Nov 02 12:42:55 2013 +0200
description:
auth: Return a reason string if PASS lookup fails because passdbs don't support it.

diffstat:

 src/auth/auth-master-connection.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 47848e9fc622 -r 9b45f6d20d9d src/auth/auth-master-connection.c
--- a/src/auth/auth-master-connection.c	Sat Nov 02 12:37:10 2013 +0200
+++ b/src/auth/auth-master-connection.c	Sat Nov 02 12:42:55 2013 +0200
@@ -340,8 +340,11 @@
 		break;
 	case PASSDB_RESULT_PASSWORD_MISMATCH:
 	case PASSDB_RESULT_INTERNAL_FAILURE:
+		str_printfa(str, "FAIL\t%u", auth_request->id);
+		break;
 	case PASSDB_RESULT_SCHEME_NOT_AVAILABLE:
-		str_printfa(str, "FAIL\t%u", auth_request->id);
+		str_printfa(str, "FAIL\t%u\treason=Configured passdbs don't support crentials lookups",
+			    auth_request->id);
 		break;
 	}
 


More information about the dovecot-cvs mailing list