Project

General

Profile

Bug #4521 » ovpn-auth-verify-async-use-phpcgi.diff

Thomas Högemann, 03/04/2021 08:11 AM

View differences:

src/usr/local/sbin/ovpn_auth_verify_async 2021-03-04 15:05:55.281790000 +0100 → src/usr/local/sbin/ovpn_auth_verify_async 2021-03-04 15:09:08.995016000 +0100
35 35
# nas_port          - $5
36 36

  
37 37
# ---------- Command Definitions
38
fcgicli="/usr/local/sbin/fcgicli"
38
phpcgi="/usr/local/bin/php-cgi"
39 39
openssl="/usr/bin/openssl"
40 40
sed="/usr/bin/sed"
41 41
auth_user_php="/etc/inc/openvpn.auth-user.php"
......
66 66
auth_server_2="modeid=${modeid}&nas_port=${nas_port}"
67 67
auth_args="${auth_credentials}&${auth_server_1}&${auth_server_2}"
68 68

  
69
result=$("${fcgicli}" -f "${auth_user_php}" -d "${auth_args}")
69
result=$("${phpcgi}" -f "${auth_user_php}" "${auth_args}")
70 70

  
71 71
# ---------- Write the Result
72 72

  
(2-2/2)