Re: pppd disconnects after authenticating
On Fri, 5 Jun 1998, David Wright wrote:
> On Fri, 5 Jun 1998, Paul Miller wrote:
>
> > (I'm dialing from a win95 machine to my Linux box)
> >
> > Immediately after I authenticate (using PAP), pppd disconnects me and
> > windows just says to try connecting again... I looked through all the logs
> > for any kind of error or warning, but i didn't find anything -- even with
> > debug on. The last pppd line contains the correct login name and
> > password. Why is pppd disconnecting me?
>
> First, who is authenticating who? It's quite likely that the linux box
> is trying to get W95 to authenticate it. I have no idea how you would deal
> with that at the W95 end.
???
the win95 end is setup correctly. I have had it working with an older
version of pppd awhile ago...
> Are you using mgetty to answer the call. I think it may have a default
> setting of +pap on the /AutoPPP/ line in /etc/mgetty/login.config which
> you might need to override with -pap or nothing.
Yes, mgetty is setup correctly -- otherwise pppd would have never been
executed.
> Lastly, pppd is rather matter of fact in its log files. It isn't an
> "error" when authentication fails; it's the Right Thing. So rather you
> should look for LCP packets with ConfRej in them. Here's an example
> from an old email I sent a while ago to someone else.
>
> Mar 26 19:10:43 sparky pppd[524]: sent [LCP ConfReq id=0x1 <mru 1500>
> <asyncmap0x0> <magic 0x4961386f> <pcomp> <accomp>]
> Mar 26 19:10:43 sparky pppd[524]: rcvd [LCP ConfReq id=0x1 <mru 1500>
> <asyncmap0x0> <auth pap> <magic 0xb9312c88> <pcomp> <accomp>]
> ^^^^^^^^ it wants you to authenticate with pap
>
> Mar 26 19:10:43 sparky pppd[524]: sent [LCP ConfRej id=0x1 <auth pap>]
> you refused ^^^ ^^^^^^^^
>
> Mar 26 19:10:46 sparky pppd[524]: rcvd [LCP TermReq id=0x3]
> Mar 26 19:10:46 sparky pppd[524]: LCP terminated at peer's request
here is a complete session from the pppd log file
Jun 5 10:47:23 serv1 pppd[17576]: pppd 2.3.5 started by ppp, uid 0
Jun 5 10:47:23 serv1 pppd[17576]: Using interface ppp0
Jun 5 10:47:23 serv1 pppd[17576]: Connect: ppp0 <--> /dev/ttyS1
Jun 5 10:47:23 serv1 pppd[17576]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0xffffc317> <pcomp> <accomp>]
Jun 5 10:47:26 serv1 pppd[17576]: rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0x11ac648f> <pcomp> <accomp> <callback 0x600>]
Jun 5 10:47:26 serv1 pppd[17576]: sent [LCP ConfRej id=0x3 <callback 0x600>]
Jun 5 10:47:26 serv1 pppd[17576]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0xffffc317> <pcomp> <accomp>]
Jun 5 10:47:26 serv1 pppd[17576]: rcvd [LCP ConfReq id=0x4 <asyncmap 0xa0000> <magic 0x11ac648f> <pcomp> <accomp>]
Jun 5 10:47:26 serv1 pppd[17576]: sent [LCP ConfAck id=0x4 <asyncmap 0xa0000> <magic 0x11ac648f> <pcomp> <accomp>]
Jun 5 10:47:26 serv1 pppd[17576]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0xffffc317> <pcomp> <accomp>]
Jun 5 10:47:26 serv1 pppd[17576]: sent [LCP EchoReq id=0x0 magic=0xffffc317]
Jun 5 10:47:26 serv1 pppd[17576]: rcvd [PAP AuthReq id=0x1 user="paul" password="mypass"]
-Paul
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: