]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
DIGEST-MD5 auth: Hash generation from plaintext passwords wasn't done with the origin...
authorTimo Sirainen <tss@iki.fi>
Sat, 13 Sep 2008 17:05:50 +0000 (20:05 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 13 Sep 2008 17:05:50 +0000 (20:05 +0300)
--HG--
branch : HEAD

src/auth/passdb.c

index 9deb15ae537243a7f54d9a33e96ed0466729262b..2f320061acab076304983aa75d0707e565b39d6f 100644 (file)
@@ -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);