dovecot-1.1: passdb ldap: Autodetected MD5 -> PLAIN-MD5 change d...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 30 19:26:01 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/5cdc62901276
changeset: 8258:5cdc62901276
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 30 12:25:55 2009 -0400
description:
passdb ldap: Autodetected MD5 -> PLAIN-MD5 change didn't work with auth cache.

diffstat:

1 file changed, 3 insertions(+)
src/auth/passdb-ldap.c |    3 +++

diffs (13 lines):

diff -r e049f48aaaea -r 5cdc62901276 src/auth/passdb-ldap.c
--- a/src/auth/passdb-ldap.c	Wed Apr 29 14:49:10 2009 -0400
+++ b/src/auth/passdb-ldap.c	Thu Apr 30 12:25:55 2009 -0400
@@ -136,6 +136,9 @@ ldap_lookup_pass_callback(struct ldap_co
 				       "Password doesn't look like MD5-CRYPT, "
 				       "scheme changed to PLAIN-MD5");
 		scheme = "PLAIN-MD5";
+		auth_request->passdb_password =
+			p_strdup_printf(auth_request->pool, "{PLAIN-MD5}%s",
+					password);
 	}
 
 	if (auth_request->credentials_scheme != NULL) {


More information about the dovecot-cvs mailing list