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:
parent
76ebe05c18
commit
269f11bfa9
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user