Network manager sends CHAP response in wrong format

Bug #283376 reported by Jari Salo
36
This bug affects 4 people
Affects Status Importance Assigned to Milestone
network-manager-pptp (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Intrepid by Jari Salo

Bug Description

Binary package hint: network-manager-pptp

Chap response to server is sent in wrong format. There are four backslashes in $SERVER\\$USERNAME field as there should only be two.

See attached pppd.log

There is no problem if I initiate the connection manually using pon command.

Revision history for this message
Jari Salo (jari-salo) wrote :
Revision history for this message
Jari Salo (jari-salo) wrote :

Attached version info:

Package: network-manager
Architecture: amd64
Version: 0.7~~svn20081008t224042-0ubuntu3

Package: network-manager-pptp
Architecture: amd64
Version: 0.7~~svn20081008t224042-0ubuntu1

Revision history for this message
marduk (dennis-schwan) wrote :
Download full text (3.6 KiB)

Seems to be the problem here, too.

Oct 27 11:22:27 nb-dschwan NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Oct 27 11:22:28 nb-dschwan NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 10017
Oct 27 11:22:28 nb-dschwan NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
Oct 27 11:22:28 nb-dschwan NetworkManager: <info> VPN plugin state changed: 3
Oct 27 11:22:28 nb-dschwan NetworkManager: <info> VPN connection 'VPN-Verbindung 1' (Connect) reply received.
Oct 27 11:22:28 nb-dschwan pppd[10018]: Plugin /usr/lib/pppd/2.4.4/nm-pptp-pppd-plugin.so loaded.
Oct 27 11:22:28 nb-dschwan pppd[10018]: pppd 2.4.4 started by root, uid 0
Oct 27 11:22:28 nb-dschwan pptp[10020]: nm-pptp-service-10017 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Oct 27 11:22:28 nb-dschwan pppd[10018]: Using interface ppp0
Oct 27 11:22:28 nb-dschwan pppd[10018]: Connect: ppp0 <--> /dev/pts/1
Oct 27 11:22:28 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Oct 27 11:22:28 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Oct 27 11:22:28 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Oct 27 11:22:29 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Oct 27 11:22:29 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Oct 27 11:22:29 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 47232).
Oct 27 11:22:29 nb-dschwan pppd[10018]: MS-CHAP authentication failed: ^L^YM-iM-7M-|M-tM-^?M-?4M-aM-xM-7M-XM-vM-^?M-?chM-rM-7<M-kM-xM-74M-aM-xM-7<M-kM-xM-7M-^Zs^G^H
Oct 27 11:22:29 nb-dschwan pppd[10018]: CHAP authentication failed
Oct 27 11:22:29 nb-dschwan NetworkManager: <info> VPN plugin failed: 1
Oct 27 11:22:29 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Oct 27 11:22:29 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
Oct 27 11:22:29 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Oct 27 11:22:29 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Oct 27 11:22:29 nb-dschwan pptp[10027]: nm-pptp-service-10017 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Oct 27 11:22:29 nb-dschwan pppd[10018]: Connection terminated.
Oct 27 11:22:29 nb-dschwan pppd[10018]: Exit.
Oct 27 11:22:29 nb-dschwan NetworkManager: <info> VPN plugin state changed: 6
Oct 27 11:22:29 nb-dschwan NetworkManager: <info> VPN plugin state change reason: 0
Oct 27 11:22:29...

Read more...

Revision history for this message
Jens Georg (yg-jensge) wrote :

Can confirm this. Attached is patch; see http://pptpclient.sourceforge.net/howto-diagnosis.phtml#failed_to_auth; patch attached

Revision history for this message
marduk (dennis-schwan) wrote :

Can you create a .deb-File for that? I would like to try the patch/fix

Revision history for this message
Jens Georg (yg-jensge) wrote :
Revision history for this message
Jens Georg (yg-jensge) wrote :

this has been fixed in late jaunty and in karmic beta.

Revision history for this message
Jari Salo (jari-salo) wrote :

Yup, this bug can be closed.

houstonbofh (leesharp)
Changed in network-manager-pptp (Ubuntu):
status: New → Fix Released
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.