PPTP VPN connection fails on Jaunty Beta due to lack of dbus permissions

Bug #343270 reported by kdawgud
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
NetworkManager
Invalid
High
network-manager-pptp (Ubuntu)
Fix Released
Undecided
Kees Cook

Bug Description

Binary package hint: network-manager-pptp

PPTP VPN connections fail always for me. I confirmed using wireshark that there's not even any traffic to the PPTP gateway.

I am testing on Jaunty Alpha 6 (32-bit)

uname -a
Linux kleber 2.6.28-9-generic #31-Ubuntu SMP Wed Mar 11 15:43:58 UTC 2009 i686 GNU/Linux

Steps to reproduce: Add PPTP VPN connection using gnome Network Manager. I have not found a combination of PPTP settings that did not cause this error to occur.

Sometimes, the OSD displays something about missing 'secrets'. Every time I try to click on my VPN connection, I get the following error in /var/log/syslog:

Mar 15 14:24:44 host NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Mar 15 14:24:44 host NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 20211
Mar 15 14:24:44 host NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
Mar 15 14:24:44 host NetworkManager: nm-vpn-connection.c.900: NeedSecrets failed: dbus-glib-error-quark Rejected send message, 1 matched rules; type="method_call", sender=":1.151" (uid=0 pid=17097 comm="NetworkManager restart ") interface="org.freedesktop.NetworkManager.VPN.Plugin" member="NeedSecrets" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager.pptp" (uid=0 pid=20211 comm="/usr/lib/network-manager-pptp/nm-pptp-service "))
Mar 15 14:24:44 host NetworkManager: <WARN> connection_state_changed(): Rejected send message, 1 matched rules; type="method_call", sender=":1.151" (uid=0 pid=17097 comm="NetworkManager restart ") interface="org.freedesktop.NetworkManager.VPN.Plugin" member="Disconnect" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager.pptp" (uid=0 pid=20211 comm="/usr/lib/network-manager-pptp/nm-pptp-service "))
Mar 15 14:24:44 host NetworkManager: <info> (wlan0): writing resolv.conf to /sbin/resolvconf
Mar 15 14:24:44 host NetworkManager: <info> Policy set 'Auto user' (wlan0) as default for routing and DNS.
Mar 15 14:24:57 host NetworkManager: <debug> [1237141497.002299] ensure_killed(): waiting for vpn service pid 20211 to exit
Mar 15 14:24:57 host NetworkManager: <debug> [1237141497.002405] ensure_killed(): vpn service pid 20211 cleaned up

Revision history for this message
kdawgud (kleber) wrote :

dpkg -s network-manager-pptp

Package: network-manager-pptp
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 968
Maintainer: Ubuntu MOTU Developers <email address hidden>
Architecture: i386
Version: 0.7.1~20090213+bzr15-0ubuntu1
Depends: pptp-linux, ppp (>= 2.4.5~git), libatk1.0-0 (>= 1.20.0), libc6 (>= 2.3.6-6~), libcairo2 (>= 1.2.4), libdbus-1-3 (>= 1.0.2), libdbus-glib-1-2 (>= 0.71), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.3.5), libgconf2-4 (>= 2.13.5), libglade2-0 (>= 1:2.6.1), libglib2.0-0 (>= 2.18.0), libgnome-keyring0 (>= 2.25.90), libgtk2.0-0 (>= 2.15.0), libnm-glib0 (>= 0.7.1~20090213+gitf142e15), libnm-util1 (>= 0.7.1~20090213+gitf142e15), libpango1.0-0 (>= 1.22.0), libxml2 (>= 2.6.27), zlib1g (>= 1:1.1.4)
Conffiles:
 /etc/NetworkManager/VPN/nm-pptp-service.name 2ba2dd8e779feeefab0a8fc09ad3e6c0
 /etc/dbus-1/system.d/nm-pptp-service.conf 73ee0995e3791eb0986fe02606028f47
Description: network management framework (PPTP plugin)
 NetworkManager attempts to keep an active network connection available at
 all times. It is intended primarily for laptops where it allows easy
 switching betwen local wireless networks, it's also useful on desktops
 with a selection of different interfaces to use. It is not intended for
 usage on servers.
 .
 This package provides a VPN plugin for PPTP, commonly used for connecting
 to Microsoft VPN servers.
Original-Maintainer: Craig Box <email address hidden>

Revision history for this message
kdawgud (kleber) wrote :

This bug is no longer affecting me. After downloading several updates to the Jaunty Alpha series, the VPN is working for me.

Changed in network-manager-pptp:
status: New → Incomplete
kdawgud (kleber)
Changed in network-manager-pptp:
status: Incomplete → Invalid
Revision history for this message
Kees Cook (kees) wrote : Re: PPTP VPN connection fails on Jaunty Beta

I'm seeing this error still on Jaunty Beta.

Changed in network-manager-pptp:
status: Invalid → New
assignee: nobody → kees
status: New → Triaged
Changed in network-manager:
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager-pptp - 0.7.1~20090213+bzr15-0ubuntu2

---------------
network-manager-pptp (0.7.1~20090213+bzr15-0ubuntu2) jaunty; urgency=low

  * Add lp343270_dbus-permissions.patch: update dbus permissions so PPTP
    works for at-console user again (LP: #343270).
  * debian/control: add missing libglade2-dev Build-Dep.

 -- Kees Cook <email address hidden> Sat, 28 Mar 2009 13:34:34 -0700

Changed in network-manager-pptp:
status: Triaged → Fix Released
Revision history for this message
Gavin Carothers (gavin.carothers) wrote :

Still seeing with 0.7.1~20090213+bzr15-0ubuntu2

Mar 29 08:37:42 asfolath NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Mar 29 08:37:42 asfolath NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 14014
Mar 29 08:37:42 asfolath NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
Mar 29 08:37:42 asfolath NetworkManager: nm-vpn-connection.c.900: NeedSecrets failed: dbus-glib-error-quark Rejected send message, 1 matched rules; type="method_call", sender=":1.8" (uid=0 pid=2783 comm="/usr/sbin/NetworkManager --pid-file /var/run/Netwo") interface="org.freedesktop.NetworkManager.VPN.Plugin" member="NeedSecrets" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager.pptp" (uid=0 pid=14014 comm="/usr/lib/network-manager-pptp/nm-pptp-service "))
Mar 29 08:37:42 asfolath NetworkManager: <WARN> connection_state_changed(): Rejected send message, 1 matched rules; type="method_call", sender=":1.8" (uid=0 pid=2783 comm="/usr/sbin/NetworkManager --pid-file /var/run/Netwo") interface="org.freedesktop.NetworkManager.VPN.Plugin" member="Disconnect" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager.pptp" (uid=0 pid=14014 comm="/usr/lib/network-manager-pptp/nm-pptp-service "))

Revision history for this message
Kees Cook (kees) wrote : Re: [Bug 343270] Re: PPTP VPN connection fails on Jaunty Beta

On Sun, Mar 29, 2009 at 03:41:51PM -0000, Gavin Carothers wrote:
> Still seeing with 0.7.1~20090213+bzr15-0ubuntu2

Please restart NetworkManager.

Revision history for this message
Gavin Carothers (gavin.carothers) wrote : Re: PPTP VPN connection fails on Jaunty Beta

Yes, restarting "fixed" it.

Should have checked that in the first place, didn't remember seeing an update to network-manager-pptp. Sorry about that.

Revision history for this message
ndv (ndv-excite) wrote :
Download full text (5.1 KiB)

I still have the bug and I have a more recent version of network-manager-pptp (0.7.1~rc4.20090316+bzr23-0ubuntu2). same symptoms: no happy MS-PPTP connection.

this is the log session (some parameters are anonymized) from syslog:
==================================================
Apr 15 15:38:30 jackalope-b1 NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Apr 15 15:38:31 jackalope-b1 NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 4783
Apr 15 15:38:31 jackalope-b1 NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
Apr 15 15:38:31 jackalope-b1 NetworkManager: <info> VPN plugin state changed: 3
Apr 15 15:38:31 jackalope-b1 pppd[4787]: Plugin /usr/lib/pppd/2.4.5//nm-pptp-pppd-plugin.so loaded.
Apr 15 15:38:31 jackalope-b1 pppd[4787]: pppd 2.4.5 started by root, uid 0
Apr 15 15:38:31 jackalope-b1 NetworkManager: <info> VPN connection 'XXXXXXXXXXXX' (Connect) reply received.
Apr 15 15:38:31 jackalope-b1 pppd[4787]: Using interface ppp1
Apr 15 15:38:31 jackalope-b1 pppd[4787]: Connect: ppp1 <--> /dev/pts/0
Apr 15 15:38:31 jackalope-b1 pptp[4789]: nm-pptp-service-4783 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Apr 15 15:38:32 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Apr 15 15:38:33 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Apr 15 15:38:33 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Apr 15 15:38:33 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Apr 15 15:38:34 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Apr 15 15:38:34 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 40432).
Apr 15 15:38:34 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 45489
Apr 15 15:38:34 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_disp:pptp_ctrl.c:953]: send_accm is 00000000, recv_accm is FFFFFFFF
Apr 15 15:38:34 jackalope-b1 pptp[4799]: nm-pptp-service-4783 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
Apr 15 15:38:34 jackalope-b1 pppd[4787]: CHAP authentication succeeded
Apr 15 15:38:35 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 45489
Apr 15 15:38:35 jackalope-b1 pptp[4799]: nm-pptp-service-4783 log[ctrlp_disp:pptp_ctrl.c:953]: send_accm is FFFFFFFF, recv_accm is FFFFFFFF
Apr 15 15:38:35 jackalope-b1 pptp[4799]: nm-pptp-service-4783 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
Apr 15 15:38:35 jackalope-b1 pppd[4787]: LCP terminated by peer (t...

Read more...

Alexander Sack (asac)
summary: - PPTP VPN connection fails on Jaunty Beta
+ PPTP VPN connection fails on Jaunty Beta due to lack of dbus permissions
Revision history for this message
Kees Cook (kees) wrote :

My fix for this issue was not correct. It is being reverted by asac since it is not needed. I have confirmed that losing the at_console stanza is no longer needed.

Changed in network-manager-pptp (Ubuntu):
assignee: Kees Cook (kees) → Alexander Sack (asac)
status: Fix Released → In Progress
Revision history for this message
Kees Cook (kees) wrote :

bug 364356 is for the reversion.

Changed in network-manager-pptp (Ubuntu):
assignee: Alexander Sack (asac) → Kees Cook (kees)
status: In Progress → Fix Released
Changed in network-manager:
status: New → Invalid
Revision history for this message
Kees Cook (kees) wrote :

ndv: if you're still having issues with this, please open a new bug -- the old issue was resolved via changes outside of network-manager-pptp (which is why the attempted (now redundant and insecure) work-around was reverted).

Changed in network-manager:
importance: Unknown → High
Revision history for this message
cmnorton (octopusgrabbus) wrote :

How can I make these changes [apply the patch] to 10.04 LTS?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.