[dovecot-cvs] dovecot/src/auth auth-request.c,1.58.2.18,1.58.2.19

tss at dovecot.org tss at dovecot.org
Fri Jan 19 15:25:33 UTC 2007


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv27499

Modified Files:
      Tag: branch_1_0
	auth-request.c 
Log Message:
auth cache: If passdb didn't provide the password, we used the user-given
plaintext password, but we cached it with wrong scheme unless the passdb's
default scheme was plain.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.58.2.18
retrieving revision 1.58.2.19
diff -u -d -r1.58.2.18 -r1.58.2.19
--- auth-request.c	19 Jan 2007 13:27:36 -0000	1.58.2.18
+++ auth-request.c	19 Jan 2007 15:25:31 -0000	1.58.2.19
@@ -232,7 +232,8 @@
 		   strdup() it so that mech_password doesn't get
 		   cleared too early. */
 		request->passdb_password =
-			p_strdup(request->pool, request->mech_password);
+			p_strconcat(request->pool, "{plain}",
+				    request->mech_password, NULL);
 	}
 
 	/* save all except the currently given password in cache */



More information about the dovecot-cvs mailing list