dovecot-1.1: auth_debug_passwords: When converting plaintext pas...

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 26 16:31:41 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/7223a25178db
changeset: 7974:7223a25178db
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 26 16:31:36 2008 +0200
description:
auth_debug_passwords: When converting plaintext password to another scheme, log how it's done.

diffstat:

1 file changed, 5 insertions(+)
src/auth/passdb.c |    5 +++++

diffs (15 lines):

diff -r 21919817f427 -r 7223a25178db src/auth/passdb.c
--- a/src/auth/passdb.c	Sun Oct 26 15:53:12 2008 +0200
+++ b/src/auth/passdb.c	Sun Oct 26 16:31:36 2008 +0200
@@ -94,6 +94,11 @@ bool passdb_get_credentials(struct auth_
 		plaintext = t_strndup(*credentials_r, *size_r);
 		username = auth_request->original_username != NULL ?
 			auth_request->original_username : auth_request->user;
+		if (auth_request->auth->verbose_debug_passwords) {
+			auth_request_log_info(auth_request, "password",
+				"Generating %s from user %s password %s",
+				wanted_scheme, username, plaintext);
+		}
 		if (!password_generate(plaintext, username,
 				       wanted_scheme, credentials_r, size_r)) {
 			auth_request_log_error(auth_request, "password",


More information about the dovecot-cvs mailing list