diff options
author | Chris Buechler <cmb@cmb-macbook-pro-3.local> | 2009-12-29 23:16:00 -0500 |
---|---|---|
committer | Chris Buechler <cmb@cmb-macbook-pro-3.local> | 2009-12-29 23:16:00 -0500 |
commit | 0c8d27635cfe61d746dd756f6cd29866252831a0 (patch) | |
tree | 5cfe125da74e00f11c35aa465a8eea2fb226b110 /etc/inc/openvpn.auth-user.php | |
parent | f67a48ccda79386b5628e746e43bdf55a4f54ed6 (diff) | |
download | pfsense-0c8d27635cfe61d746dd756f6cd29866252831a0.zip pfsense-0c8d27635cfe61d746dd756f6cd29866252831a0.tar.gz |
Revert "fix OpenVPN user auth"
This reverts commit f67a48ccda79386b5628e746e43bdf55a4f54ed6.
Diffstat (limited to 'etc/inc/openvpn.auth-user.php')
-rwxr-xr-x | etc/inc/openvpn.auth-user.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/openvpn.auth-user.php b/etc/inc/openvpn.auth-user.php index 99bd1f3..4d5871e 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 command line */ -$username = $_SERVER['argv']['1']; -$password = $_SERVER['argv']['2']; +/* read data from environment */ +$username = getenv("username"); +$password = getenv("password"); if (!$username || !$password) { syslog(LOG_ERR, "invalid user authentication environment"); |