Bug 280913

Summary: Openconnect VPN doesn't connect; Shell commands work
Product: Network Management Reporter: Volker Fröhlich <volker27>
Component: Plasma WidgetAssignee: Ilia Kats <ilia-kats>
Status: RESOLVED FIXED    
Severity: normal CC: kevin.kofler, lamarque, wstephenson
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The output of openconnect -v
patch to remove empty secrets from map

Description Volker Fröhlich 2011-08-28 06:33:09 UTC
Created attachment 63187 [details]
The output of openconnect -v

Version:           unspecified (using KDE 4.6.5) 
OS:                Linux

I can't connect to my company's VPN from the network management applet, but I can do so using the openconnect command.

Reproducible: Always

Steps to Reproduce:
I'm on Fedora 15 and rebuilt and installed the kde-plasma-networkmanagement package from Fedora 16 (snapshot 20110812git.nm09).

I then created a new openconnect connection, just specifying the gateway in the form. When I connect to that, I can download available group information and enter my username and password. The groups are obtained fine. If I use wrong credentials, the form says "Login failed". If I use the correct data though, the form disappears and the connection fails.

The messages log says:

Aug 28 08:20:11 fedora15 NetworkManager[1113]: <error> [1314512411.499748] [nm-vpn-connection.c:865] get_secrets_cb(): Failed to request VPN secrets #3: (3) Secret xmlconfig value was empty

Actual Results:  
Doesn't connect to VPN

Expected Results:  
Connect to the VPN

So I tried to connect using openconnect from the shell:

openconnect -v vpn.meduniwien.ac.at

That worked just fine after setting the route.
Comment 1 Ilia Kats 2011-08-28 14:05:11 UTC
Created attachment 63189 [details]
patch to remove empty secrets from map

Can you try the attached patch?
Comment 2 Volker Fröhlich 2011-08-28 19:36:47 UTC
Hooray! It's working. The patch solves it for me.
Comment 3 Ilia Kats 2011-08-28 19:40:05 UTC
Git commit 63916e0f32b79b2d44cd1994608400effbcc8ff7 by Ilia Kats.
Committed on 28/08/2011 at 21:37.
Pushed by iliakats into branch 'nm09'.

don't send empty OpenConnect secrets to NM.

BUG: 280913

M  +1    -1    plasma_nm_version.h
M  +13   -5    vpnplugins/openconnect/openconnectauth.cpp

http://commits.kde.org/networkmanagement/63916e0f32b79b2d44cd1994608400effbcc8ff7