dovecot-2.1: auth: Fixed non-auth passdb lookup when password ha...

dovecot at dovecot.org dovecot at dovecot.org
Fri Dec 20 00:43:08 EET 2013


details:   http://hg.dovecot.org/dovecot-2.1/rev/7c5172e0c5c7
changeset: 15007:7c5172e0c5c7
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 19 22:43:45 2013 +0300
description:
auth: Fixed non-auth passdb lookup when password had ".<encoding>" suffix.

diffstat:

 src/auth/passdb.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f572fbafb445 -r 7c5172e0c5c7 src/auth/passdb.c
--- a/src/auth/passdb.c	Sat Nov 02 12:25:09 2013 +0200
+++ b/src/auth/passdb.c	Thu Sep 19 22:43:45 2013 +0300
@@ -92,7 +92,7 @@
 		/* anything goes. change the credentials_scheme to what we
 		   actually got, so blocking passdbs work. */
 		auth_request->credentials_scheme =
-			p_strdup(auth_request->pool, input_scheme);
+			p_strdup(auth_request->pool, t_strcut(input_scheme, '.'));
 		return TRUE;
 	}
 


More information about the dovecot-cvs mailing list