]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
In auth-pam authentication module, even when in debug mode,
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Wed, 4 Jun 2008 06:00:42 +0000 (06:00 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Wed, 4 Jun 2008 06:00:42 +0000 (06:00 +0000)
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

index a2b29348bd94dbce5c036b9acf0314907b2df658..10315b39e1c3e5535ea71427a93a74021df257b3 100644 (file)
@@ -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 */
            {