summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-02 20:48:45 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-02 20:48:45 +0000
commit54b9de56fecdfeb8848bbe65e28401e8c73ac367 (patch)
treefbc71ebf2c269ba10e3ee42f281d5f23e5676bbd /etc/inc/openvpn.inc
parentacee624f83b0ce13e4eb897640353c95826e7876 (diff)
downloadpfsense-54b9de56fecdfeb8848bbe65e28401e8c73ac367.zip
pfsense-54b9de56fecdfeb8848bbe65e28401e8c73ac367.tar.gz
Allow openvpn server to authenticate only based on username/password credentials.
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 081e109..8ec9bbe 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -75,7 +75,7 @@ $openvpn_server_modes = array(
'p2p_tls' => "Peer to Peer ( SSL/TLS )",
'p2p_shared_key' => "Peer to Peer ( Shared Key )",
'server_tls' => "Remote Access ( SSL/TLS )",
-// 'server_user' => "Remote Access ( User Auth )",
+ 'server_user' => "Remote Access ( User Auth )",
'server_tls_user' => "Remote Access ( SSL/TLS + User Auth )");
$openvpn_client_modes = array(
@@ -392,7 +392,7 @@ function openvpn_reconfigure($mode,& $settings) {
$sed .= ");";
mwexec("/bin/cat /etc/inc/openvpn.auth-user.php | /usr/bin/sed 's/\/\/<template>/{$sed}/g' > {$g['varetc_path']}/openvpn/{$mode_id}.php");
mwexec("/bin/chmod a+x {$g['varetc_path']}/openvpn/{$mode_id}.php");
- $conf .= "auth-user-pass-verify {$g['varetc_path']}/openvpn//{$mode_id}.php via-env\n";
+ $conf .= "auth-user-pass-verify {$g['varetc_path']}/openvpn/{$mode_id}.php via-env\n";
break;
}
OpenPOWER on IntegriCloud