diff options
author | jim-p <jimp@pfsense.org> | 2014-04-23 16:45:59 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-04-23 16:45:59 -0400 |
commit | 9a5b377efd4efb3840fd524c058a8945d5ebec36 (patch) | |
tree | b4d0417db2bdd9068f521dddcc4e28169634dfd5 /usr/local | |
parent | a502e39f9dae64da910972ebb9ecaecef5889869 (diff) | |
download | pfsense-9a5b377efd4efb3840fd524c058a8945d5ebec36.zip pfsense-9a5b377efd4efb3840fd524c058a8945d5ebec36.tar.gz |
Single quoting $password breaks getting the value from the variable.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/sbin/ovpn_auth_verify | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/sbin/ovpn_auth_verify b/usr/local/sbin/ovpn_auth_verify index ef4d078..d9ffb15 100755 --- a/usr/local/sbin/ovpn_auth_verify +++ b/usr/local/sbin/ovpn_auth_verify @@ -3,7 +3,8 @@ if [ "$1" = "tls" ]; then RESULT=$(/usr/local/sbin/fcgicli -f /etc/inc/openvpn.tls-verify.php -d "servercn=$2&depth=$3&certdepth=$4&certsubject=$5") else - password=$(echo '$password' | /usr/bin/sed 's/&/%26/g') + # Single quoting $password breaks getting the value from the variable. + password=$(echo ${password} | /usr/bin/sed 's/&/%26/g') 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") fi |