From 269f11bfa90bc4e6373a666486b97d927c7be7c7 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Mon, 8 Mar 1999 18:43:50 +0000 Subject: pass_check.c could receive encrypted password: printing it out as a %s results in garbage. with no password length argument doing dump_data( 100, password, strlen(password)) is the next best alternative. (This used to be commit 073c8652c13408b883fc73203e5558b1a9a64d62) --- source3/auth/pass_check.c | 3 ++- source3/passdb/pass_check.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c index d847407bbb..f07f0e1abb 100644 --- a/source3/auth/pass_check.c +++ b/source3/auth/pass_check.c @@ -758,7 +758,8 @@ BOOL pass_check(char *user,char *password, int pwlen, struct passwd *pwd, if (password) password[pwlen] = 0; #if DEBUG_PASSWORD - DEBUG(100,("checking user=[%s] pass=[%s]\n",user,password)); + DEBUG(100,("checking user=[%s] pass=",user)); + dump_data(100, password, strlen(password)); #endif if (!password) { diff --git a/source3/passdb/pass_check.c b/source3/passdb/pass_check.c index d847407bbb..f07f0e1abb 100644 --- a/source3/passdb/pass_check.c +++ b/source3/passdb/pass_check.c @@ -758,7 +758,8 @@ BOOL pass_check(char *user,char *password, int pwlen, struct passwd *pwd, if (password) password[pwlen] = 0; #if DEBUG_PASSWORD - DEBUG(100,("checking user=[%s] pass=[%s]\n",user,password)); + DEBUG(100,("checking user=[%s] pass=",user)); + dump_data(100, password, strlen(password)); #endif if (!password) { -- cgit