Tuesday, December 29, 2009

Problems with VPN-connections in Ubuntu Karmic

I need to connect to Cisco VPN. I had got a file with connection settings. Through NetworkManager I created new VPN connection by import the settings file. Trying to connect - no result. In /var/log/syslog I found the line:
NetworkManager: nm-vpn-connection.c.828: NeedSecrets failed: dbus-glib-error-quark Rejected se
nd message, 1 matched rules; type="method_call", sender=":1.5" (uid=0 pid=969 comm="NetworkManager) interface="org.freedeskt
op.NetworkManager.VPN.Plugin" member="NeedSecrets" error name="(unset)" requested_reply=0 destination="org.freedesktop.Netwo
rkManager.vpnc" (uid=0 pid=7971 comm="/usr/lib/network-manager-vpnc/nm-vpnc-service))
Some googling gives me a bit of information - Keyring manager denied connection of the VPN service. And how to grand access I didn't know. Googling more brings me the answer:
In /etc/dbus-1/system.d/nm-vpnc-service.conf
--- nm-vpnc-service.conf.fixed 2009-04-18 17:56:45.000000000 -0500
+++ nm-vpnc-service.conf 2009-04-18 17:57:37.000000000 -0500
@@ -6,6 +6,10 @@
   <allow own="org.freedesktop.NetworkManager.vpnc"/>
   <allow send_destination="org.freedesktop.NetworkManager.vpnc"/>
  </policy>
+ <policy user="at_console">
+  <allow own="org.freedesktop.NetworkManager.vpnc"/>
+  <allow send_destination="org.freedesktop.NetworkManager.vpnc"/>
+ </policy>
  <policy context="default">
   <deny own="org.freedesktop.NetworkManager.vpnc"/>
   <deny send_destination="org.freedesktop.NetworkManager.vpnc"/>

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.