Bug #4521 » ovpn-auth-verify-async-use-phpcgi.diff
| 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 | ||
|---|---|---|
|
# nas_port - $5
|
||
|
# ---------- Command Definitions
|
||
|
fcgicli="/usr/local/sbin/fcgicli"
|
||
|
phpcgi="/usr/local/bin/php-cgi"
|
||
|
openssl="/usr/bin/openssl"
|
||
|
sed="/usr/bin/sed"
|
||
|
auth_user_php="/etc/inc/openvpn.auth-user.php"
|
||
| ... | ... | |
|
auth_server_2="modeid=${modeid}&nas_port=${nas_port}"
|
||
|
auth_args="${auth_credentials}&${auth_server_1}&${auth_server_2}"
|
||
|
result=$("${fcgicli}" -f "${auth_user_php}" -d "${auth_args}")
|
||
|
result=$("${phpcgi}" -f "${auth_user_php}" "${auth_args}")
|
||
|
# ---------- Write the Result
|
||
- « Previous
- 1
- 2
- Next »