diff options
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 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"); |