Revision 6a752ca2
Added by Ermal Luçi over 10 years ago
usr/local/sbin/ovpn_auth_verify | ||
---|---|---|
4 | 4 |
RESULT=$(/usr/local/sbin/fcgicli -f /etc/inc/openvpn.tls-verify.php -d "servercn=$2&depth=$3&certdepth=$4&certsubject=$5") |
5 | 5 |
else |
6 | 6 |
# Single quoting $password breaks getting the value from the variable. |
7 |
password=$(echo -n ${password} | openssl enc -base64 | sed -e 's/=/%3D/g')
|
|
7 |
password=$(echo -n "${password}" | openssl enc -base64 | sed -e 's/=/%3D/g')
|
|
8 | 8 |
RESULT=$(/usr/local/sbin/fcgicli -f /etc/inc/openvpn.auth-user.php -d "username=$username&password=$password&cn=$common_name&strictcn=$3&authcfg=$2&modeid=$4") |
9 | 9 |
fi |
10 | 10 |
|
Also available in: Unified diff
Put the value of password under double quotes(") to avoid issues with special characters in passwords. Ticket #4177