diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/pam_winbind.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c index b3dea202c2..7cb2cd8bf1 100644 --- a/source3/nsswitch/pam_winbind.c +++ b/source3/nsswitch/pam_winbind.c @@ -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) { |