[PLUG] pppd fails

Bruce Kingsland brucek at kingkon.com
Thu May 2 06:59:46 UTC 2002


Scott Powell's Log: StarDate 0429.0956:
> Bruce,
> 
> I don't know much about pppd -- long time since I used it -- but if you
> are having problems with crypt libraries, there are two possible
> solutions.
>  1) add -lcrypt to your Makefile in the appropriate location (libraries,
> or where it links the entire program)

My programming is weak. Where would be an appropiate location?

>  2) If that doesn't work, go get libcrypt.
> http://sourceforge.net/projects/libcrypt/

I thot maybe this would be simpler. But to get the file, you first
have to be a member of SourceForge. SO, I joined, but that took a
while to get the mail from the end of my huge backlog of spam (Not
fixing that in this message). Then I got the file (crypt-0.03.zip),
and opened it up. It's pretty small. I changed an option in the
CFLAGS: -mpentium got removed. I couldn't find any documentation in
gcc about it, but decided that since it's running on a 486, that flag
was best deleted.

Then I ran make. But there's no Install target in the makefile, so I'm
not sure where to put the file so that the other build(s) will find it.

>  Install it. Use it wisely. Hopefully WvDial will compile. If it
> doesn't, there's a reason you're running linux - go remove all calls to
> crypt()/*politely, please!*/ and see if that works. *G*

*Use it wisely.* That's interesting. Why would you say that? What should
I be aware of?

> --
> A couple of stupid pppd ideas, just because they might help. If not,
> just slap me with a dead chicken.
> 1) Try removing the quotation marks around your u/n and password.
> 2) Make sure your password is correct. I know you already have. Do it
> again. I've stumbled over problems for days because I was *sure* I had
> the right password. I was wrong.
> 3) Send the log to your ISP. The hackers working the support desk should
> be reasonable if you use full sentences, which you seem pretty capable
> of. They may even be impressed with the log -- it's better than coffee
> cup holders, anyway.
> 4) Don't run it as root. Don't run anything as root, if you can avoid
> it. Again, I'm no pppd expert, so it may be a requirement, in which
> case, just ignore my arrogant ramblings.

1. right. But they weren't there.
2. verified it with telnet (the isp supports it, but I generally don't
use it. and I still get email every 30 minutes with it [thru fetchmail].)
3. interesting thot, but I'm not sure it's appropriate yet.
Particularly since Pacifier doesn't support linux.
4. I like that idea, but I've found on my laptop, that network
connections have to be run as root. And this article suggests that as
well. but all my other 'user' stuff is run as brucek. OTOH, maybe pppd
is using user ROOT instead of user BRUCEK, even tho that is what is in
the pap script. I'll try that tomorrow.

> Scott Powell
> 
> On Mon, 2002-04-29 at 21:32, Bruce Kingsland wrote:
> > Well, I read this neat article in Linux Journal (Feb/Mar) on
> > configuring pppd. And now that I'm moving to a place that _doesn't_
> > have dsl, I need to make that work.
> > 
> > So, I downloaded WvDial (since they pointed out at the end of the
> > article how neat that was), and it won't compile. There's some sort of
> > missing reference to crypt that causes the makefile to exit.
> > 
> > So, I went thru the elements of the article. I got the modem
> > configured on the right port, and can make it dial out with minicom,
> > and with pppd chat_connect, but when I try to make it login with my
> > name, it fails.
> > 
> > I use ssh normally to log in, and I know the (telnet) password is
> > correct
> > because fetchmail uses it to get the mail, but I can't get the
> > pap_secrets to successfully work. Here is the output of the debug
> > script (pppd /dev/modem 38400 modem lock connect /etc/ppp/chat-connect
> > user brucek defaultroute debug):
> > 
> > Apr 29 20:50:07 defiant pppd[14887]: pppd 2.4.1 started by root, uid 0
> > Apr 29 20:50:38 defiant pppd[14887]: Serial connection established.
> > Apr 29 20:50:38 defiant pppd[14887]: Using interface ppp0
> > Apr 29 20:50:38 defiant pppd[14887]: Connect: ppp0 <--> /dev/modem
> > Apr 29 20:50:43 defiant pppd[14887]: Remote message: Request Denied
> > Apr 29 20:50:43 defiant pppd[14887]: PAP authentication failed
> > Apr 29 20:50:43 defiant pppd[14887]: Connection terminated.
> > Apr 29 20:50:44 defiant pppd[14887]: Exit.
> > Apr 29 20:51:17 defiant pppd[14916]: pppd 2.4.1 started by root, uid 0
> > Apr 29 20:52:00 defiant pppd[14916]: Serial connection established.
> > Apr 29 20:52:00 defiant pppd[14916]: using channel 4
> > Apr 29 20:52:00 defiant pppd[14916]: Using interface ppp0
> > Apr 29 20:52:00 defiant pppd[14916]: Connect: ppp0 <--> /dev/modem
> > Apr 29 20:52:01 defiant pppd[14916]: sent [LCP ConfReq id=0x1 <asyncmap
> > 0x0> <magic 0xbbbaa19b> <pcomp> <accomp>]
> > Apr 29 20:52:04 defiant pppd[14916]: sent [LCP ConfReq id=0x1 <asyncmap
> > 0x0> <magic 0xbbbaa19b> <pcomp> <accomp>]
> > Apr 29 20:52:04 defiant pppd[14916]: rcvd [LCP ConfReq id=0x5c <asyncmap
> > 0xa0000> <auth pap> <magic 0x6c0705ed> <pcomp> <accomp> <mrru 1524>
> > <endpoint [local:72.73.76.70]>]
> > Apr 29 20:52:04 defiant pppd[14916]: sent [LCP ConfRej id=0x5c <mrru
> > 1524>]
> > Apr 29 20:52:04 defiant pppd[14916]: rcvd [LCP ConfAck id=0x1 <asyncmap
> > 0x0> <magic 0xbbbaa19b> <pcomp> <accomp>]
> > Apr 29 20:52:04 defiant pppd[14916]: rcvd [LCP ConfReq id=0x5d <asyncmap
> > 0xa0000> <auth pap> <magic 0x6c0705ed> <pcomp> <accomp> <endpoint
> > [local:72.73.76.70]>]
> > Apr 29 20:52:04 defiant pppd[14916]: sent [LCP ConfAck id=0x5d <asyncmap
> > 0xa0000> <auth pap> <magic 0x6c0705ed> <pcomp> <accomp> <endpoint
> > [local:72.73.76.70]>]
> > Apr 29 20:52:04 defiant pppd[14916]: sent [PAP AuthReq id=0x1
> > user="brucek" password=<hidden>]
> > Apr 29 20:52:05 defiant pppd[14916]: rcvd [PAP AuthNak id=0x1 "Request
> > Denied"]
> > Apr 29 20:52:05 defiant pppd[14916]: Remote message: Request Denied
> > Apr 29 20:52:05 defiant pppd[14916]: PAP authentication failed
> > Apr 29 20:52:05 defiant pppd[14916]: sent [LCP TermReq id=0x2 "Failed to
> > authenticate ourselves to peer"]
> > Apr 29 20:52:05 defiant pppd[14916]: rcvd [LCP TermAck id=0x2]
> > Apr 29 20:52:05 defiant pppd[14916]: Connection terminated.
> > Apr 29 20:52:06 defiant pppd[14916]: Exit.
> > 
> > Anybody got any ideas how to read where my problem is?
> > 
> > -bk
> > -- 
> > Bruce Kingsland
> > Kingsland Konsulting
> > brucek at kingkon.com
> > 503-936-1655
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > ~
> > D/2B8DA3D7 g/2884A18E  49C3 BBDE 6BC5 3F39 0C03  3BE4 FBC5 2C8D 2B8D
> > A3D7
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > ~
> 
> 
> 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug

-- 
Bruce Kingsland
Kingsland Konsulting
brucek at kingkon.com
503-936-1655
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D/2B8DA3D7 g/2884A18E  49C3 BBDE 6BC5 3F39 0C03  3BE4 FBC5 2C8D 2B8D A3D7
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20020501/ad11744a/attachment.asc>


More information about the PLUG mailing list