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

dovecot at dovecot.org dovecot at dovecot.org
Thu Sep 19 22:44:00 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/ed1f5b4f38be
changeset: 16770:ed1f5b4f38be
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 827ebbf9da5f -r ed1f5b4f38be src/auth/passdb.c
--- a/src/auth/passdb.c	Thu Sep 19 22:20:56 2013 +0300
+++ 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