summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-11 16:36:54 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-11 16:38:25 +0100
commit7025c4fa7a2f9db516c366b3aa25ae8b849a6920 (patch)
treec42155fa72f77be70e30aae4fc7e46599d4bbb7f /usr/local
parent30656f66407ab42c6f42e9552371090ca84165bb (diff)
downloadpfsense-7025c4fa7a2f9db516c366b3aa25ae8b849a6920.zip
pfsense-7025c4fa7a2f9db516c366b3aa25ae8b849a6920.tar.gz
Remove debug code
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/sbin/ovpn_auth_verify2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr/local/sbin/ovpn_auth_verify b/usr/local/sbin/ovpn_auth_verify
index 5f19b9e..087451f 100755
--- a/usr/local/sbin/ovpn_auth_verify
+++ b/usr/local/sbin/ovpn_auth_verify
@@ -1,12 +1,10 @@
#!/bin/sh
-password="asdfsad +%$"
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
# Single quoting $password breaks getting the value from the variable.
password=$(echo ${password} | openssl enc -base64 | sed -e 's/=/%3D/g')
- echo "(/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')"
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
OpenPOWER on IntegriCloud