dovecot-2.0: ldap auth: Hide password_noscheme from debug logs u...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 2 20:07:25 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/1fab347c4b94
changeset: 12365:1fab347c4b94
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 02 18:07:20 2010 +0000
description:
ldap auth: Hide password_noscheme from debug logs unless auth_debug_passwords=yes

diffstat:

 src/auth/db-ldap.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 840a488289ac -r 1fab347c4b94 src/auth/db-ldap.c
--- a/src/auth/db-ldap.c	Tue Nov 02 18:06:39 2010 +0000
+++ b/src/auth/db-ldap.c	Tue Nov 02 18:07:20 2010 +0000
@@ -1158,7 +1158,8 @@
 		if (!first)
 			str_append_c(ctx->debug, '/');
 		if (ctx->auth_request->set->debug_passwords ||
-		    strcmp(ctx->name, "password") != 0)
+		    (strcmp(ctx->name, "password") != 0 &&
+		     strcmp(ctx->name, "password_noscheme") != 0))
 			str_append(ctx->debug, ctx->value);
 		else
 			str_append(ctx->debug, PASSWORD_HIDDEN_STR);


More information about the dovecot-cvs mailing list