Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7607:ff3adeb71d47 HEAD
auth_debug_passwords: Include the password when logging about "Requested x
scheme, but we have only y".
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 03 Jun 2008 02:46:32 +0300 |
parents | c88c1365b60d |
children | e043135e971d |
files | src/auth/passdb.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/passdb.c Tue Jun 03 02:17:04 2008 +0300 +++ b/src/auth/passdb.c Tue Jun 03 02:46:32 2008 +0300 @@ -78,9 +78,15 @@ if (!password_scheme_is_alias(input_scheme, wanted_scheme)) { if (!password_scheme_is_alias(input_scheme, "PLAIN")) { - auth_request_log_info(auth_request, "password", + const char *error = t_strdup_printf( "Requested %s scheme, but we have only %s", wanted_scheme, input_scheme); + if (auth_request->auth->verbose_debug_passwords) { + error = t_strdup_printf("%s (input: %s)", + error, input); + } + auth_request_log_info(auth_request, "password", + "%s", error); return FALSE; }