Subject: Re: PPP with PAP
To: Tristan Doherty <ristar@abacom.com>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 03/31/1997 16:01:11
> 
> I finally got chat working, it dials my modem and makes it happy.
> Unfourtunately, though my ISP dosen't use text-based login, it uses PAP for
> authentication. So, like a good user should, I obligingly made the
> pap-secrets file and hoped for the best. Too bad the best never happens the
> first time. :)
> 
> I'm not sure about my pap-secrets file, so here is the line that I use in
> it (edited, of course):
> 
> 	*.abacom.com <my login> <my pass>

The PAP experts will speak, but I don't think you want your login ID
as the second item. The man page says it should be client, server,
secret. If this is the only place to which you PPP, "* * secret"
will work, I think. Also, there is the "user" option which will
let you set the user ID used for authentication.

> And here is my ppp-up script:
> 
> #!/bin/sh
> 
> /usr/sbin/pppd /dev/tty00 1200 connect '/usr/sbin/chat -v " ATDT8202404
> CONNECT "" '\ crtscts defaultroute noipdefault modem +pap

I think the two "s are the problem. Try just one (since you only have
one send-receive pair).

> When I run ppp-up, it says "defaultroute: not found" and I get the
> following chat-error.log:

I think it's getting confused and trying to run defaultroute as a
script, which of course fails.

> Mar 31 14:32:20 homer chat[326]: send (ATDT8202404^M)
> Mar 31 14:32:20 homer chat[326]: expect (CONNECT)
> Mar 31 14:32:34 homer chat[326]: ATDT8202404^M^M
> Mar 31 14:32:34 homer chat[326]: CONNECT -- got it
> Mar 31 14:32:34 homer chat[326]: send (^M)
> Mar 31 14:32:34 homer chat[326]: expect (crtscts)
> Mar 31 14:32:34 homer chat[326]:  1200^M
> Mar 31 14:32:40 homer chat[326]: *******************^M
> Mar 31 14:32:40 homer chat[326]: * INTERNET ABACOM *^M
> Mar 31 14:32:41 homer chat[326]: *******************^M
> Mar 31 14:32:41 homer chat[326]: ^M
> Mar 31 14:32:41 homer chat[326]: Les VRAIS leaders / The REAL leaders^M
> Mar 31 14:32:41 homer chat[326]: (819) 820-2929^M
> Mar 31 14:32:41 homer chat[326]: ^M
> Mar 31 14:32:41 homer chat[326]: Partenaire IStar Internet^M
> Mar 31 14:32:41 homer chat[326]: ^M

You're not even getting to PAP. I'd suggest adding a second send-receive
pair. "" Internet would work. so the chat thinggy would be

/chat -v ' ATDTphone# CONNECT "" nternet' Note: I used singe quotes so
the double quote would make it through unscathed.

For some reason, "crtscts" is making it to the connect script. It
shouldn't.

Take care,

Bill