aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-04-28 14:19:12 -0400
committerjim-p <jimp@pfsense.org>2011-04-28 14:19:12 -0400
commit825561aeff7c5388c82f54c3a3dd62ff20041002 (patch)
tree2eb13c9a97837df5059ac189b83247bcf79388f5 /config/openvpn-client-export
parent38439ef8cfaa2a778c02981c6c2e72c55a27ba7f (diff)
downloadpfsense-packages-825561aeff7c5388c82f54c3a3dd62ff20041002.tar.gz
pfsense-packages-825561aeff7c5388c82f54c3a3dd62ff20041002.tar.bz2
pfsense-packages-825561aeff7c5388c82f54c3a3dd62ff20041002.zip
Fix openvpn client export for cert-only users (no auth), clarify some text. Version bump again.
Diffstat (limited to 'config/openvpn-client-export')
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.xml2
-rwxr-xr-xconfig/openvpn-client-export/vpn_openvpn_export.php10
2 files changed, 8 insertions, 4 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.xml b/config/openvpn-client-export/openvpn-client-export.xml
index 2e9e96da..d06d50f8 100755
--- a/config/openvpn-client-export/openvpn-client-export.xml
+++ b/config/openvpn-client-export/openvpn-client-export.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<packagegui>
<name>OpenVPN Client Export</name>
- <version>0.7</version>
+ <version>0.8</version>
<title>OpenVPN Client Export</title>
<include_file>/usr/local/pkg/openvpn-client-export.inc</include_file>
<backup_file></backup_file>
diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php
index 837b854b..6bfdd4e3 100755
--- a/config/openvpn-client-export/vpn_openvpn_export.php
+++ b/config/openvpn-client-export/vpn_openvpn_export.php
@@ -78,7 +78,7 @@ foreach($a_server as $sindex => $server) {
$ras_user[] = $ras_userent;
}
}
- } elseif (!empty($server['authmode']) && ($server['mode'] != "server_user")) {
+ } elseif ((!empty($server['authmode']) && ($server['mode'] != "server_user")) || ($server['mode'] == "server_tls")) {
foreach($a_cert as $cindex => $cert) {
if ($cert['caref'] != $server['caref'])
continue;
@@ -512,7 +512,11 @@ function server_changed() {
var cell1 = row.insertCell(1);
var cell2 = row.insertCell(2);
cell0.className = "listlr";
- cell0.innerHTML = "External Auth+Cert";
+ if (servers[index][2] == "server_tls") {
+ cell0.innerHTML = "Certificate (SSL/TLS, no Auth)";
+ } else {
+ cell0.innerHTML = "Certificate with External Auth";
+ }
cell1.className = "listr";
cell1.innerHTML = certs[j][1];
cell2.className = "listr";
@@ -530,7 +534,7 @@ function server_changed() {
var cell1 = row.insertCell(1);
var cell2 = row.insertCell(2);
cell0.className = "listlr";
- cell0.innerHTML = "External authentication users";
+ cell0.innerHTML = "Authentication Only (No Cert)";
cell1.className = "listr";
cell1.innerHTML = "none";
cell2.className = "listr";