From d368bfd671ae6d04a69eb7f418521d49b8bbf77a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 26 Oct 2008 16:30:50 +0200 Subject: [PATCH] auth_debug_passwords: When converting plaintext password to another scheme, log how it's done. --HG-- branch : HEAD --- src/auth/passdb.c | 6 ++++++ 1 file changed, 6 insertions(+) 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)) { -- 2.47.3