aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-06-04 06:00:42 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-06-04 06:00:42 +0000
commit1e0b71416262a3534b1dc3da0c23dc144cb2bd9f (patch)
tree757a52572dc2152f1271423a18bc9fb7b522a871
parentIncremented version to 2.1_rc7d. (diff)
downloadopenvpn-1e0b71416262a3534b1dc3da0c23dc144cb2bd9f.tar.xz
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
-rw-r--r--plugin/auth-pam/auth-pam.c10
1 files changed, 8 insertions, 2 deletions
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 */
{