From: Timo Sirainen Date: Sat, 13 Sep 2008 17:05:50 +0000 (+0300) Subject: DIGEST-MD5 auth: Hash generation from plaintext passwords wasn't done with the origin... X-Git-Tag: 1.2.alpha2~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=790f339ebfe4924531b37e44cab68ca999c70501;p=thirdparty%2Fdovecot%2Fcore.git DIGEST-MD5 auth: Hash generation from plaintext passwords wasn't done with the original username. --HG-- branch : HEAD --- diff --git a/src/auth/passdb.c b/src/auth/passdb.c index 9deb15ae53..2f320061ac 100644 --- a/src/auth/passdb.c +++ b/src/auth/passdb.c @@ -92,7 +92,8 @@ bool passdb_get_credentials(struct auth_request *auth_request, /* we can generate anything out of plaintext passwords */ plaintext = t_strndup(*credentials_r, *size_r); - if (!password_generate(plaintext, auth_request->user, + if (!password_generate(plaintext, + auth_request->original_username, wanted_scheme, credentials_r, size_r)) { auth_request_log_error(auth_request, "password", "Requested unknown scheme %s", wanted_scheme);