This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Saving username & passwords in OpenConnect GUI

Tags: None
(comma "," separated)
User avatar
Annorax
Registered Member
Posts
22
Karma
0
OS
Hello all,

I am running Kubuntu 14.04 and am attempting to use OpenConnect to connect to a VPN server. I'm able to successfully do so but I can't find a way to save my username and password in the network connection or VPN settings. Both are very long and cumbersome to enter each time. Is there any way to have these saved so I can connect to the VPN by just hitting "Connect"?

I am aware of the command line openconnect command and how to accomplish this, but I'm looking for a GUI way to do it as not everyone I work with likes using the command line.
User avatar
google01103
Manager
Posts
6668
Karma
25

Wed May 28, 2014 9:30 pm
I don't have or use so this is speculation on my part but why are you not using NetworkManager?

http://www.infradead.org/openconnect/gui.html
It is only supported since 2011-06-22 with the NetworkManager 0.9, and with the corresponding nm09 branch of the kde-plasma-networkmanagement widget.


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Annorax
Registered Member
Posts
22
Karma
0
OS
Apologies for not being clear - I am using KDE's default network UI (NetworkManager I believe, sorry I'm relatively new to KDE). I am wondering if somewhere in that UI you can enable the saving of your user/password so it will automatically log you in to the VPN when you choose to connect.
User avatar
google01103
Manager
Posts
6668
Karma
25

  Topic is solved

Wed May 28, 2014 11:25 pm
according to the following there is not in the network manager gui but there is a workable solution https://wiki.archlinux.org/index.php/Ne ... entication
KDE and OpenConnect VPN with password authentication

kdeplasma-applets-plasma-nm does not support to configure username and password for OpenConnect VPN connections in its GUI. You have to type both values everytime you connect. kdeplasma-applets-plasma-nm 0.9.3.2-1 and above is however capable of retrieving OpenConnect username and password directly from KWallet.

Open "KDE Wallet Manager" and look up your OpenConnect VPN connection under "Network Management|Maps". Click "Show values" and enter your credentials in key "VpnSecrets" in this form (replace THE_USERNAME and THE_PASSWORD with your actual values):
form:main:username%SEP%THE_USERNAME%SEP%form:main:password%SEP%THE_PASSWORD

Next time you connect, username and password should appear in the "VPN secrets" dialog box.


let the forum know if this works for you


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Annorax
Registered Member
Posts
22
Karma
0
OS
Thank you for the link - that looks like what I want. I had KDE Wallet disabled so I enabled it and went to Network Management -> Maps. I see two entries (looks almost like Windows registry keys or something). One appears to be for my wireless internet and the second I'm not sure but is probably for the VPN connection in question. So I add a new key called VpnSecrets as described but nothing is automatically entered when I try to connect. I'm on NetworkManager 0.9.3.3.

Maybe there is something I missed?
User avatar
google01103
Manager
Posts
6668
Karma
25
maybe it's distro related ? https://bugs.launchpad.net/ubuntu/+sour ... ug/1239667

maybe a workaround ? http://burstcoding.blogspot.com/2012/02 ... -with.html

I think you might need to query the Kubuntu forums

fyi there is in openSUSE a plasma-nm-openconnect package descrition of which is "OpenConnect plugin for plasma-nm components" but I didn't see similar for in the Ubuntu repos


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Annorax
Registered Member
Posts
22
Karma
0
OS
Thank you - I'll dig around in Kubuntu specific stuff. From what I can see I'm doing it right but it's not working - I agree it might be distro specific.
MaWo
Registered Member
Posts
1
Karma
0
if you have to specify a group then use the variable name group_list.
Code: Select all
form:main:group_list%SEP%THE_GROUP_NAME%SEP%form:main:username%SEP%THE_USERNAME%SEP%form:main:password%SEP%THE_PASSWORD


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar