summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-03-08 18:43:50 +0000
committerLuke Leighton <lkcl@samba.org>1999-03-08 18:43:50 +0000
commit269f11bfa90bc4e6373a666486b97d927c7be7c7 (patch)
treea546d49f454b29d02bb382b4892d265baf9962a0 /source3/passdb
parent76ebe05c1872874d57eb6743b6de05893c9b5837 (diff)
downloadsamba-269f11bfa90bc4e6373a666486b97d927c7be7c7.tar.gz
samba-269f11bfa90bc4e6373a666486b97d927c7be7c7.tar.bz2
samba-269f11bfa90bc4e6373a666486b97d927c7be7c7.zip
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)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pass_check.c3
1 files changed, 2 insertions, 1 deletions
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) {