Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158905 - coreutils-6.7 fails to submit correct username for PPP connexions in CHAP challenge response
Summary: coreutils-6.7 fails to submit correct username for PPP connexions in CHAP cha...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-23 05:02 UTC by Patrice Bouvard
Modified: 2007-04-24 08:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrice Bouvard 2006-12-23 05:02:44 UTC
Hi !

I have a DSL connexion at home and I use PPPoE protocol.
Here is my /etc/conf.d/net relevant part :

config_ppp0=("ppp")
link_ppp0="br0"
plugins_ppp0=("pppoe")
username_ppp0="claude.bouvard@latribu.com"  ## my correct username
password_ppp0="SECRET"
pppd_ppp0=(
       "lock"
       "updetach"
       "debug" ## added for debug in /var/log/messages
       "noauth"
       "defaultroute"
       "lcp-echo-interval 10"
       "lcp-echo-failure 10"
       "holdoff 4"
)


With coreutils-6.6, everything works fine, here are the messages in /var/log/messages :

Dec 23 13:49:09 framboise pppd[20244]: Connect: ppp0 <--> br0
Dec 23 13:49:09 framboise pppd[20244]: sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xcf7384d6>]
Dec 23 13:49:09 framboise pppd[20244]: rcvd [LCP ConfReq id=0xc7 <mru 1492> <auth chap MD5> <magic 0x736d9dfb>]
Dec 23 13:49:09 framboise pppd[20244]: sent [LCP ConfAck id=0xc7 <mru 1492> <auth chap MD5> <magic 0x736d9dfb>]
Dec 23 13:49:09 framboise pppd[20244]: rcvd [LCP ConfAck id=0x1 <mru 1492> <magic 0xcf7384d6>]
Dec 23 13:49:09 framboise pppd[20244]: sent [LCP EchoReq id=0x0 magic=0xcf7384d6]
Dec 23 13:49:09 framboise pppd[20244]: rcvd [CHAP Challenge id=0x1 <57f3c13f9579696c78605772d592b174>, name = "BAS-ROGIER"]
Dec 23 13:49:09 framboise pppd[20244]: sent [CHAP Response id=0x1 <4758603d47cdc8e6dae20be4c62bf7a0>, name = "claude.bouvard@latribu.com"]
Dec 23 13:49:10 framboise pppd[20244]: rcvd [CHAP Success id=0x1 "CHAP authentication success, unit 21971"]



Then, I upgraded my system and my PPPoE connexion broke (and it took me a while to figure that the new coreutils version was the problem). Here is the problem with coreutils-6.7 :

Dec 23 13:48:40 framboise pppd[5176]: sent [LCP EchoReq id=0x0 magic=0xf751125f]
Dec 23 13:48:40 framboise pppd[5176]: rcvd [CHAP Challenge id=0x1 <75c1e5040429de5b73ab33727089ccdc>, name = "BAS-ROGIER"]
Dec 23 13:48:40 framboise pppd[5176]: sent [CHAP Response id=0x1 <98d7ba8e8009ffd15a52da2c7655c41f>, name = "framboise"]
Dec 23 13:48:41 framboise pppd[5176]: rcvd [CHAP Failure id=0x1 "Login failed"]



As you can see, my box provides the name "framboise" which is the hostname of the box. It should be providing my ISP the name "claude.bouvard@latribu.com" which is set in /etc/conf.d/net

My solution was to revert back to coreutils-6.6
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-12-23 05:16:23 UTC
Please attach emerge --info
Comment 2 Patrice Bouvard 2006-12-23 05:41:17 UTC
root@framboise ~ # emerge --info
Portage 2.1.2_rc3-r9 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-ck1-r1 i686)
=================================================================
System uname: 2.6.18-ck1-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.8
Last Sync: Fri, 22 Dec 2006 22:50:01 +0000
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium3 -mcpu=pentium3 -fomit-frame-pointer -mmmx -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=pentium3 -mcpu=pentium3 -fomit-frame-pointer -mmmx -msse -fvisibility-inlines-hidden"
DISTDIR="/mnt/hdc1/portage-distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="fr fr_BE fr_FR"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlays/PabOu /usr/portage/local/layman/sunrise"
SYNC="rsync://ftp.belnet.be/gentoo-portage"
USE="x86 X alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 bzip2 cups dri elibc_glibc foo2zjs_devices_hp1000 foomaticdb gd gif imagemagick imap input_devices_joystick input_devices_keyboard input_devices_mouse iproute2 ithreads jpeg jpeg2k kde kernel_linux linguas_fr linguas_fr_BE linguas_fr_FR logrotate mmx mozbranding mp3 mysql ncurses nls nptl nptlonly oav opengl pam png ppds rdesktop rrdtool samba session skey snmp sockets spell sse ssl syslog tcltk tcpd threads truetype unicode usb userland_GNU userlocales video_cards_nvidia vnc xorg zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-12-29 09:06:29 UTC
coreutils shouldn't be the problem here. CC's net-dialup for ideas
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2007-01-03 15:02:26 UTC
It is an akward malfunction, for which I currently have no explanation. I will test it myself as soon as possible.
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2007-01-04 14:01:18 UTC
I've verified pppd authentication on an amd64 system with coreutils-6.7-r1. It works as expected.

Please post here the pppd command line (the output of "ps -ef | grep pppd"). I suspect you'll have "user framboise" instead "user claude.bouvard@latribu.com".
Comment 6 Patrice Bouvard 2007-04-05 23:42:38 UTC
(In reply to comment #5)
> Please post here the pppd command line (the output of "ps -ef | grep pppd"). I
> suspect you'll have "user framboise" instead "user claude.bouvard@latribu.com".


I don't know if the bug still exists with recent coreutils... today I've got coreutils-6.4 (I've got a mask on >sys-apps/coreutils-6.6 since I reported this bug).

But I can tell you, I am pretty sure that at the time, the pppd command line was "user framboise" with coreutils-6.7 and it was "user claude.bouvard@latribu.com" with coreutils-6.6.

It is "user claude.bouvard@latribu.com" with coreutils-6.4.

I will try to remove the mask and try the latest ~x86 coreutils version
Comment 7 Patrice Bouvard 2007-04-24 08:49:25 UTC
(In reply to comment #6)
> I will try to remove the mask and try the latest ~x86 coreutils version


Looks like coreutils-6.9 works fine !