From: james Date: Wed, 4 Jun 2008 06:00:42 +0000 (+0000) Subject: In auth-pam authentication module, even when in debug mode, X-Git-Tag: v2.1_rc8~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e0b71416262a3534b1dc3da0c23dc144cb2bd9f;p=thirdparty%2Fopenvpn.git 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 --- diff --git a/plugin/auth-pam/auth-pam.c b/plugin/auth-pam/auth-pam.c index a2b29348b..10315b39e 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 */ {