# HG changeset patch # User Timo Sirainen # Date 1379619825 -10800 # Node ID ed1f5b4f38be20a55bc44ca09c2ab06b36cad2f7 # Parent 827ebbf9da5fc5eaf6157129e170587497b5a0ac auth: Fixed non-auth passdb lookup when password had "." suffix. 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; }