Summary: | NM 0.9 branch, cannot connect to the vpn (property 'user-name' invalid or not supported) | ||
---|---|---|---|
Product: | Network Management | Reporter: | S.Trzmiel <xeno> |
Component: | OpenVPN | Assignee: | Will Stephenson <wstephenson> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kevin.kofler |
Priority: | NOR | ||
Version: | 0.9 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Script to get information about the VPN connection
patch for testing Test script output for plasma-nm Script output for the same connection under gnome nm-applet Testcase openvpn config |
Description
S.Trzmiel
2011-06-04 19:33:26 UTC
Created attachment 60632 [details]
Script to get information about the VPN connection
Can you run the attached script when connecting using Plasma NM and run it again using nm-applet (in this order)? I do not have means to test openvpn connections, so I need you to test it for me.
Created attachment 60665 [details]
patch for testing
Could you try the attached patch? You probably will have to create a new connection.
Created attachment 60669 [details]
Test script output for plasma-nm
As requested plasma-nm VPN connection properites extracted with provided script.
Building plasma-nm client with patch in the meantime ...
Created attachment 60670 [details]
Script output for the same connection under gnome nm-applet
Properties of the same connection resaved in gnome nm-applet. Gnome applet refused to connect with connection created in plasma-nm, I had to reenter username end save connection once again. Then vpn worked as advertised.
Created attachment 60671 [details]
Testcase openvpn config
This one might be handy when more testing is needed. It's basic openvpn config for server and certificates for client. I run it on one physical imachine + one in virtualbox. Server located on real one and client under VirtualBox
Extract server config in /etc, client config in client home dir.
Make sure you have backup of servers /etc/openvpn and client ~/.cert dirs
client username: user
client password: pass
Tried plasma-nm client with patch provided by Ilia. I've set up a new connection and it works ok. Thanks a lot. That was pretty fast. :) Git commit b486eb07cd96f5bb14ccfb197b40e11418f36d29 by Ilia Kats. Committed on 05/06/2011 at 21:26. Pushed by iliakats into branch 'nm09'. apparently NM adds user-name to vpn data map when it's provided in vpn settings and the openvpn plug-in can't handle this, so don't do that, we already have a username in the data map. BUG: 274930 M +0 -2 vpnplugins/openvpn/openvpnwidget.cpp http://commits.kde.org/networkmanagement/b486eb07cd96f5bb14ccfb197b40e11418f36d29 I found one problem with proposed solution. Username is not saved in settings anymore. Each time connection properities window is open username field is blank. Also it has to be reentered everytime nm client disconects daemon (reboot, suspend, service restart ...). Else connection won't work due to the failed authentication. Git commit 3582237e508ab9dc2d56a80111a7faf6e652f97a by Ilia Kats. Committed on 19/07/2011 at 03:58. Pushed by iliakats into branch 'nm09'. Port all VPN-Plugins which support this to the new secrets flags system. Add auth-dialogs for OpenVPN and PTTP. Fix some minor bugs BUG: 269951 BUG: 277354 CCBUG: 274930 M +108 -76 vpnplugins/pptp/pptpwidget.cpp M +0 -1 vpnplugins/vpnc/vpncauth.h M +0 -1 kded/settingsnm08/vpnpersistence.cpp M +9 -0 vpnplugins/openvpn/openvpnwidget.h M +1 -0 vpnplugins/openvpn/openvpn.h M +6 -0 vpnplugins/pptp/pptp.cpp C +11 -12 vpnplugins/openvpn/openvpnauth.h [from: vpnplugins/vpnc/vpncauth.h - 072% similarity] [License: GPL] M +2 -1 vpnplugins/pptp/CMakeLists.txt M +1 -49 libs/internals/settings/vpn.h M +2 -4 vpnplugins/vpnc/vpncwidget.h M +21 -39 vpnplugins/vpnc/vpncwidget.cpp M +20 -18 vpnplugins/vpnc/vpncauth.cpp M +3 -3 vpnplugins/vpnc/vpncauth.ui M +3 -4 libs/internals/settings/vpnsecrets.cpp M +177 -66 vpnplugins/openvpn/openvpnprop.ui M +183 -69 vpnplugins/openvpn/openvpnwidget.cpp C +11 -12 vpnplugins/pptp/pptpauth.h [from: vpnplugins/vpnc/vpncauth.h - 072% similarity] [License: GPL] M +0 -11 libs/internals/settings/vpn.cpp M +4 -1 vpnplugins/pptp/pptpwidget.h M +76 -94 vpnplugins/pptp/pptpauth.ui M +3 -7 libs/ui/vpnpreferences.cpp A +68 -0 vpnplugins/pptp/pptpauth.cpp [License: GPL] M +28 -1 vpnplugins/pptp/pptpprop.ui A +172 -0 vpnplugins/openvpn/openvpnauth.cpp [License: GPL] M +1 -0 vpnplugins/openvpn/CMakeLists.txt M +9 -15 vpnplugins/vpnc/vpnc.cpp M +1 -0 vpnplugins/pptp/pptp.h M +6 -0 vpnplugins/openvpn/openvpn.cpp http://commits.kde.org/networkmanagement/3582237e508ab9dc2d56a80111a7faf6e652f97a |