]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth_debug_passwords: When converting plaintext password to another scheme, log how...
authorTimo Sirainen <tss@iki.fi>
Sun, 26 Oct 2008 14:30:50 +0000 (16:30 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 26 Oct 2008 14:30:50 +0000 (16:30 +0200)
--HG--
branch : HEAD

src/auth/passdb.c

index 12f841cd97bc67f6e087120ba7ac78977dd0c19e..0e7d8f3b9b0339b3510dc8759bcf6023aad5dd76 100644 (file)
@@ -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)) {