changeset 8348:88a6a193e288 HEAD

auth_debug_passwords: When converting plaintext password to another scheme, log how it's done.
author Timo Sirainen <tss@iki.fi>
date Sun, 26 Oct 2008 16:30:50 +0200
parents fc5683975951
children 6503306b19cf
files src/auth/passdb.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/passdb.c	Sun Oct 26 16:01:45 2008 +0200
+++ b/src/auth/passdb.c	Sun Oct 26 16:30:50 2008 +0200
@@ -92,6 +92,12 @@
 
 		/* 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)) {