[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PPP pap auth. insists on hostname



You need to use the 'name' or 'user' options to pppd to tell it what to authenticate
itself to the remote system as. Otherwise it defaults to the hostname.

Lance Heller wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
>
> I'm in process of setting up a stock slink intel box and have run into
> a problem with PPP PAP authentication when using the supplied pppd
> version 2.3 patch level 5 and diald 0.16.5-3.  Normally I'd expect
> to use the loginId and password for my ISP in the pap-secrets file
> along the line of: mylogin * mypassword.  However, what's happening
> is that no matter how the diald options and connect files and the
> ppp options and pap-secrets files are tweaked, my machine insists on
> either using the hostname for the pap user or rejects pap
> authentication altogether.  If the hostname is not given as the first
> field in the pap-secrets file, pap authentication will be rejected.
> (I do not authenticate the ISP, ppp/peer/provider contains "noauth".
>
> E.g, for the hostname of catalina ( particulars tweaked to protect the guilty
> ):
>
> If the pap-secrets file contains "catalina * amphibian" then the syslog
> contains:
> Jun 29 22:29:35 catalina pppd[1908]: sent [PAP AuthReq id=0x1 user="catalina"
> password="amphibian"]
> Jun 29 22:29:35 catalina pppd[1908]: rcvd [LCP EchoRep id=0x0 magic=0x0]
> Jun 29 22:29:35 catalina pppd[1908]: rcvd [PAP AuthNak id=0x1 ""]
> Jun 29 22:29:35 catalina pppd[1908]: Remote message:
> Jun 29 22:29:35 catalina pppd[1908]: PAP authentication failed
> And it should fail, "catalina" is not the correct user.
>
> if pap-secrets contains "mylogin * amphibian", syslog will have:
> Jun 29 22:30:57 catalina pppd[1937]: Connect: ppp0 <--> /dev/ttyS3
> Jun 29 22:30:57 catalina pppd[1937]: sent [LCP ConfReq id=0x1 <magic
> 0x8cda8d1b> <pcomp> <accomp>]
> Jun 29 22:30:58 catalina pppd[1937]: rcvd [LCP ConfReq id=0x1 < 00 04 00 00>
> <mru 1524> <asyncmap 0xa0000> <auth chap 05> <pcomp> <accomp> < 11 04 05 f4> <
> 13 09 03 00 c0 7b 7a 97 22>]
> Jun 29 22:30:58 catalina pppd[1937]: sent [LCP ConfRej id=0x1 < 00 04 00 00>
> <auth chap 05> < 11 04 05 f4> < 13 09 03 00 c0 7b 7a 97 22>]
> Jun 29 22:30:58 catalina pppd[1937]: rcvd [LCP ConfAck id=0x1 <magic
> 0x8cda8d1b> <pcomp> <accomp>]
> Jun 29 22:30:58 catalina pppd[1937]: rcvd [LCP ConfReq id=0x2 <mru 1524>
> <asyncmap 0xa0000> <auth pap> <pcomp> <accomp>]
> Jun 29 22:30:58 catalina pppd[1937]: sent [LCP ConfRej id=0x2 <auth pap>]
> Jun 29 22:30:58 catalina pppd[1937]: rcvd [LCP TermReq id=0x3]
> Jun 29 22:30:58 catalina pppd[1937]: sent [LCP TermAck id=0x3]
> Jun 29 22:31:00 catalina pppd[1937]: sent [LCP ConfReq id=0x1 <magic
> 0x8cda8d1b> <pcomp> <accomp>]
> Jun 29 22:31:03 catalina diald[1923]: filter accepted rule 24 proto 17 len 57
> packet 127.0.0.2,1367 => 216.212.2.2,53
> Jun 29 22:31:03 catalina pppd[1937]: sent [LCP ConfReq id=0x1 <magic
> 0x8cda8d1b> <pcomp> <accomp>]
> Jun 29 22:31:06 catalina pppd[1937]: Hangup (SIGHUP)
> But this should succeed as "mylogin" and "amphibian" are the correct user and
> password.
>
> In a previous life, this had been a hamm box with PPP/PAP and diald
> working as advertised to the same ph. no. of the same ISP.  What am
> I missing here??
>
> Thanks and regards.
>
> Lance
>
>
> - ----------------------------------------------------------------------
> Lance Heller                                email: lheller@unidial.com
> - ----------------------------------------------------------------------
>
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.3i
> Charset: noconv
>
> iQCVAwUBN3mkCgPRE3CvtCyRAQH7ugP/TfyWnXXP9EICu7bzjP+x9sgnThmmIKPA
> gpdRETucwH1dntfbq1cmH4QlR/dQzpOsPBr+IVbb80zbHzO2Ov54Mr8vxvW1+Whg
> cY/YSwb3yO6q7KylZung9ofk87KWHEYH2xrM9lON5AHrs1GDD0l4+HLWyOvxNN+k
> mLFvTxYgNxc=
> =k4MN
> -----END PGP SIGNATURE-----
>
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

--
Jens B. Jorgensen
jjorgens@bdsinc.com



Reply to: