summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.auth-user.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@cmb-macbook-pro-3.local>2009-12-29 23:10:24 -0500
committerChris Buechler <cmb@cmb-macbook-pro-3.local>2009-12-29 23:10:24 -0500
commitf67a48ccda79386b5628e746e43bdf55a4f54ed6 (patch)
treee314db73e5051100abf38a861ca291906c2065f2 /etc/inc/openvpn.auth-user.php
parent86b66287f3c02adc1e7f244f65bf065b2111d598 (diff)
downloadpfsense-f67a48ccda79386b5628e746e43bdf55a4f54ed6.zip
pfsense-f67a48ccda79386b5628e746e43bdf55a4f54ed6.tar.gz
fix OpenVPN user auth
Diffstat (limited to 'etc/inc/openvpn.auth-user.php')
-rwxr-xr-xetc/inc/openvpn.auth-user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/openvpn.auth-user.php b/etc/inc/openvpn.auth-user.php
index 4d5871e..99bd1f3 100755
--- a/etc/inc/openvpn.auth-user.php
+++ b/etc/inc/openvpn.auth-user.php
@@ -53,9 +53,9 @@ function & lookup_user($name) {
/* setup syslog logging */
openlog("openvpn", LOG_ODELAY, LOG_AUTH);
-/* read data from environment */
-$username = getenv("username");
-$password = getenv("password");
+/* read data from command line */
+$username = $_SERVER['argv']['1'];
+$password = $_SERVER['argv']['2'];
if (!$username || !$password) {
syslog(LOG_ERR, "invalid user authentication environment");
OpenPOWER on IntegriCloud