changeset 16770:ed1f5b4f38be

auth: Fixed non-auth passdb lookup when password had ".<encoding>" suffix.
author Timo Sirainen <tss@iki.fi>
date Thu, 19 Sep 2013 22:43:45 +0300
parents 827ebbf9da5f
children 5a334879572b
files src/auth/passdb.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}