1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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 073c8652c1)
This commit is contained in:
Luke Leighton 1999-03-08 18:43:50 +00:00
parent 76ebe05c18
commit 269f11bfa9
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {