Commit bbf505dc authored by David Redondo's avatar David Redondo 🏎

Add support for Pule Connect Secure vpn

openconnect supports it since version 8.04
parent 319a1b62
......@@ -59,6 +59,7 @@ if (OPENCONNECT_FOUND)
install(FILES plasmanetworkmanagement_openconnectui.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES plasmanetworkmanagement_openconnect_juniperui.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES plasmanetworkmanagement_openconnect_globalprotectui.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES plasmanetworkmanagement_openconnect_pulse.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
else()
message("ERROR: OpenConnection version '${OPENCONNECT_VERSION}' does not match minimum required (${MINIMUM_OPENCONNECT_VERSION_REQUIRED})")
message("OpenConnect plugin will not be built")
......
......@@ -128,6 +128,11 @@
<string>PAN Global Protect</string>
</property>
</item>
<item>
<property name="text">
<string>Pulse Connect Secure</string>
</property>
</item>
</widget>
</item>
<item row="4" column="0">
......
......@@ -188,8 +188,10 @@ void OpenconnectSettingWidget::loadConfig(const NetworkManager::Setting::Ptr &se
cmbProtocolIndex = 0;
} else if (dataMap[NM_OPENCONNECT_KEY_PROTOCOL] == QLatin1String("nc")) {
cmbProtocolIndex = 1;
} else if(dataMap[NM_OPENCONNECT_KEY_PROTOCOL] == QLatin1String("gp")) {
cmbProtocolIndex = 2;
} else {
cmbProtocolIndex = 2; // paloAlto/GlobalProtect (gp)
cmbProtocolIndex = 3; // pulse, Pule Connect Secure
}
int cmbReportedOsIndex;
......@@ -272,8 +274,10 @@ QVariantMap OpenconnectSettingWidget::setting() const
case 1:
protocol = QLatin1String("nc");
break;
default:
case 2:
protocol = QLatin1String("gp");
default:
protocol = QLatin1String("pulse");
}
QString reportedOs;
......
[Desktop Entry]
Type=Service
Icon=
ServiceTypes=PlasmaNetworkManagement/VpnUiPlugin
X-KDE-Library=plasmanetworkmanagement_openconnectui
X-NetworkManager-Services=org.freedesktop.NetworkManager.openconnect
X-NetworkManager-Services-Subtype=pulse
X-KDE-PluginInfo-Author=Jan Grulich
X-KDE-PluginInfo-Email=jgrulich@redhat.com
X-KDE-PluginInfo-Name=plasmanetworkmanagement_openconnectui
X-KDE-PluginInfo-Version=0.1
X-KDE-PluginInfo-Website=
X-KDE-PluginInfo-Category=VPNService
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=false
Name=Pulse Connect Secure (openconnect)
Comment=Compatible with Pulse Connect Secure SSL VPN
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment