diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-06-04 06:00:42 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-06-04 06:00:42 +0000 |
commit | 1e0b71416262a3534b1dc3da0c23dc144cb2bd9f (patch) | |
tree | 757a52572dc2152f1271423a18bc9fb7b522a871 /plugin | |
parent | 47ae8457f9e9c2bb0f5c1e8f28822e1bbc16c196 (diff) | |
download | openvpn-1e0b71416262a3534b1dc3da0c23dc144cb2bd9f.tar.gz openvpn-1e0b71416262a3534b1dc3da0c23dc144cb2bd9f.tar.xz openvpn-1e0b71416262a3534b1dc3da0c23dc144cb2bd9f.zip |
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
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/auth-pam/auth-pam.c | 10 |
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 */ { |