I've tried to use openvpn on Kubuntu 9.10. My configuration uses X.509
certificates without any password, and that result in the following
complaint from NetworkManager's OpenVPN plugin:

        Nov 17 14:09:06 wind NetworkManager: <WARN>  
nm_vpn_connection_connect_cb(): VPN connection 'XXX' failed to connect: 'No VPN 
secrets!'.

Here's the patch fixing it. OK to commit?

- Volodya

(Please CC me on replies, if possible)
Index: vpnplugins/openvpn/openvpnwidget.cpp
===================================================================
--- vpnplugins/openvpn/openvpnwidget.cpp	(revision 1050505)
+++ vpnplugins/openvpn/openvpnwidget.cpp	(working copy)
@@ -219,6 +219,9 @@
         data.insert( NM_OPENVPN_KEY_CA, d->ui.x509CaFile->url().path().toUtf8());
         data.insert( NM_OPENVPN_KEY_CERT, d->ui.x509Cert->url().path().toUtf8());
         data.insert( NM_OPENVPN_KEY_KEY, d->ui.x509Key->url().path().toUtf8());
+        // The OpenVPM NetworkManager plugin requires that the secrets map be
+        // nonempty, even if there's no real password,
+        secretData.insert(NM_OPENVPN_KEY_NOSECRET, "");
         break;
     case 1:
         contype = NM_OPENVPN_CONTYPE_STATIC_KEY;
_______________________________________________
kde-networkmanager mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-networkmanager

Reply via email to