From 1e0b71416262a3534b1dc3da0c23dc144cb2bd9f Mon Sep 17 00:00:00 2001 From: james Date: Wed, 4 Jun 2008 06:00:42 +0000 Subject: In auth-pam authentication module, even when in debug mode, never output passwords to stderr. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2979 e7ae566f-a301-0410-adde-c780ea21d3b5 --- plugin/auth-pam/auth-pam.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugin/auth-pam') diff --git a/plugin/auth-pam/auth-pam.c b/plugin/auth-pam/auth-pam.c index a2b2934..10315b3 100644 --- a/plugin/auth-pam/auth-pam.c +++ b/plugin/auth-pam/auth-pam.c @@ -715,8 +715,14 @@ pam_server (int fd, const char *service, int verb, const struct name_value_list } if (DEBUG (verb)) - fprintf (stderr, "AUTH-PAM: BACKGROUND: USER/PASS: %s/%s\n", - up.username, up.password); + { +#if 0 + fprintf (stderr, "AUTH-PAM: BACKGROUND: USER/PASS: %s/%s\n", + up.username, up.password); +#else + fprintf (stderr, "AUTH-PAM: BACKGROUND: USER: %s\n", up.username); +#endif + } if (pam_auth (service, &up)) /* Succeeded */ { -- cgit