Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma applet for NetworkManager
Commits
bbf505dc
Commit
bbf505dc
authored
Jan 20, 2021
by
David Redondo
🏎
Browse files
Add support for Pule Connect Secure vpn
openconnect supports it since version 8.04
parent
319a1b62
Changes
4
Hide whitespace changes
Inline
Side-by-side
vpn/openconnect/CMakeLists.txt
View file @
bbf505dc
...
...
@@ -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"
)
...
...
vpn/openconnect/openconnectprop.ui
View file @
bbf505dc
...
...
@@ -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"
>
...
...
vpn/openconnect/openconnectwidget.cpp
View file @
bbf505dc
...
...
@@ -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
;
// p
aloAlto/GlobalProtect (gp)
cmbProtocolIndex
=
3
;
// p
ulse, 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
;
...
...
vpn/openconnect/plasmanetworkmanagement_openconnect_pulseui.desktop
0 → 100644
View file @
bbf505dc
[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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment