From: Timo Sirainen Date: Sun, 26 Oct 2008 14:30:50 +0000 (+0200) Subject: auth_debug_passwords: When converting plaintext password to another scheme, log how... X-Git-Tag: 1.2.alpha4~141 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d368bfd671ae6d04a69eb7f418521d49b8bbf77a;p=thirdparty%2Fdovecot%2Fcore.git auth_debug_passwords: When converting plaintext password to another scheme, log how it's done. --HG-- branch : HEAD --- diff --git a/src/auth/passdb.c b/src/auth/passdb.c index 12f841cd97..0e7d8f3b9b 100644 --- a/src/auth/passdb.c +++ b/src/auth/passdb.c @@ -92,6 +92,12 @@ 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 (auth_request->auth->verbose_debug_passwords) { + auth_request_log_info(auth_request, "password", + "Generating %s from user %s password %s", + wanted_scheme, auth_request->original_username, + plaintext); + } if (!password_generate(plaintext, auth_request->original_username, wanted_scheme, credentials_r, size_r)) {