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

Don't log the password in pam_sm_authenticate() unless DEBUG_PASSWORD is

defined.  This is done with --enable-developer mode.
(This used to be commit caff5dc1d6)
This commit is contained in:
Tim Potter 2002-01-07 02:57:06 +00:00
parent 5f63565f2d
commit 105e35a6e4

View File

@ -256,10 +256,18 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags,
return PAM_AUTHTOK_ERR;
}
if (ctrl & PAM_DEBUG_ARG)
if (ctrl & PAM_DEBUG_ARG) {
/* Let's not give too much away in the log file */
#ifdef DEBUG_PASSWORD
_pam_log(LOG_INFO, "Verify user `%s' with password `%s'",
username, password);
#else
_pam_log(LOG_INFO, "Verify user `%s'", username);
#endif
}
/* Now use the username to look up password */
retval = user_lookup(username, password);
switch (retval) {