PPP, PAP, CHAP in plain english

PPP, PAP, CHAP in plain english

Post by Wael Sedk » Sun, 06 Dec 1998 04:00:00



Hi all,
Can anybody direct me of where to find something to read about PAP. The
document that I found on sunsite had references to 2 files called
"pap-secrets" and "chap-secrets" which are not on my system and I don't know
what's in them so I can create them.

Any help?
Please email.

(Spammers will be added on my biweekly shit list)

 
 
 

PPP, PAP, CHAP in plain english

Post by J.M. Pad » Sun, 06 Dec 1998 04:00:00



>Hi all,
>Can anybody direct me of where to find something to read about PAP. The
>document that I found on sunsite had references to 2 files called
>"pap-secrets" and "chap-secrets" which are not on my system and I don't know
>what's in them so I can create them.

If your ISP uses PAP for authentication, you need to create a file:

        /etc/ppp/pap-secrets

                your login name         *       your password

                To set the permissions and ownership of this file:
                        chmod 740 /etc/ppp/pap-secrets
                        chown root root /etc/ppp/pap-secrets

If your ISP uses CHAP, create :
        /etc/ppp/chap-secrets
                The contents are identical to that of pap-secrets.

Regards,

 "The last temptation is the greatest treason:
  To do the right deed for the wrong reason."
  --T.S. Eliot  

 
 
 

PPP, PAP, CHAP in plain english

Post by Johan Kullsta » Sun, 06 Dec 1998 04:00:00




> >Hi all,
> >Can anybody direct me of where to find something to read about PAP. The
> >document that I found on sunsite had references to 2 files called
> >"pap-secrets" and "chap-secrets" which are not on my system and I don't know
> >what's in them so I can create them.

> If your ISP uses PAP for authentication, you need to create a file:

>    /etc/ppp/pap-secrets

>            your login name         *       your password

>            To set the permissions and ownership of this file:
>                    chmod 740 /etc/ppp/pap-secrets
>                    chown root root /etc/ppp/pap-secrets

> If your ISP uses CHAP, create :
>    /etc/ppp/chap-secrets
>            The contents are identical to that of pap-secrets.

(for idt people, i am using linux)

hmm.  i tried to use PAP with my ISP but i could get no satisfaction.
i got PAP to work when dialing up my old place of employment.  so i
have been successful at least once.  however the ISP PAP does not work
for me.

here is an excerpt from my /var/log/messages:

Dec  5 08:44:36 sophia pppd[1168]: Serial connection established.
Dec  5 08:44:37 sophia pppd[1168]: Using interface ppp0
Dec  5 08:44:37 sophia pppd[1168]: Connect: ppp0 <--> /dev/modem
Dec  5 08:45:07 sophia pppd[1168]: LCP: timeout sending Config-Requests
Dec  5 08:45:07 sophia pppd[1168]: Connection terminated.
Dec  5 08:45:07 sophia pppd[1168]: Receive serial link is not 8-bit clean:
Dec  5 08:45:07 sophia pppd[1168]: Problem: all had bit 7 set to 0
Dec  5 08:45:08 sophia pppd[1168]: Exit.

i tried to enable kernel messages and got this in /var/log/daemon

Dec  5 08:43:57 sophia ifup-ppp: pppd started for ppp0 on /dev/modem at 115200
Dec  5 08:44:36 sophia pppd[1168]: Serial connection established.
Dec  5 08:44:37 sophia pppd[1168]: Using interface ppp0
Dec  5 08:44:37 sophia pppd[1168]: Connect: ppp0 <--> /dev/modem
Dec  5 08:44:37 sophia pppd[1168]: [line broken to fit within 80 cols - jk]
   sent [LCP ConfReq id=0x1 <magic 0x4fff> <pcomp> <accomp>]
Dec  5 08:45:04 sophia last message repeated 9 times
Dec  5 08:45:07 sophia pppd[1168]: LCP: timeout sending Config-Requests
Dec  5 08:45:07 sophia pppd[1168]: Connection terminated.
Dec  5 08:45:07 sophia pppd[1168]: Receive serial link is not 8-bit clean:
Dec  5 08:45:07 sophia pppd[1168]: Problem: all had bit 7 set to 0
Dec  5 08:45:08 sophia pppd[1168]: Exit.

what exactly does this line indicate?

sent [LCP ConfReq id=0x1 <magic 0x4fff> <pcomp> <accomp>]

with a previous version of ppp i had a messages about bad checksums.
ppp kernel rejects bad checksums, hence it never receives anything it
wants to work with.  i am not sure what kind of machine i am logging
into.  my isp (idt) uses mostly sun equipment but the point of contact
with modem may be something else.

i am currently using ppp 2.3.5 and linux-2.1.131.

i am able to login by applying a loging and passwd to prompts so
getting this running is not critical.  i am just wondering what can be
going on.

thanks in advance.

--

 
 
 

PPP, PAP, CHAP in plain english

Post by Wael Sedk » Sun, 06 Dec 1998 04:00:00


With my limited knowledge of the topic, I would say that you do not need to
use
PAP or CHAP, you need a script.
>i am currently using ppp 2.3.5 and linux-2.1.131.

>i am able to login by applying a loging and passwd to prompts so
>getting this running is not critical.  i am just wondering what can be
>going on.

>thanks in advance.

>--


 
 
 

PPP, PAP, CHAP in plain english

Post by Johan Kullsta » Sun, 06 Dec 1998 04:00:00



> With my limited knowledge of the topic, I would say that you do not need to
> use
> PAP or CHAP, you need a script.

yes, exactly.  i got me script.  i can login fine with a little
automation via chat.  i am just curious why idt's pap isn't working
for me.

> >i am currently using ppp 2.3.5 and linux-2.1.131.

> >i am able to login by applying a loging and passwd to prompts so
> >getting this running is not critical.  i am just wondering what can be
> >going on.

> >thanks in advance.

> >--


--

 
 
 

PPP, PAP, CHAP in plain english

Post by j.. » Mon, 07 Dec 1998 04:00:00


Quote:Johan Kullstam writes:
> i can login fine with a little automation via chat.  i am just curious
> why idt's pap isn't working for me.

A few ISP's get confused if pppd starts sending packets too soon after the
connection is made.  A few others interpret the return that chat sends when
you tell it to send "nothing", i.e., ''.  Try this for the last line of
your chatscript:

CONNECT         '\d\c'

This says expect 'CONNECT', pause one second, and send nothing, not even a
return.
--
John Hasler

Dancing Horse Hill
Elmwood, WI

 
 
 

PPP, PAP, CHAP in plain english

Post by Dermot Musgrov » Mon, 07 Dec 1998 04:00:00




> > With my limited knowledge of the topic, I would say that you do not need to
> > use
> > PAP or CHAP, you need a script.

> yes, exactly.  i got me script.  i can login fine with a little
> automation via chat.  i am just curious why idt's pap isn't working
> for me.

> > >i am currently using ppp 2.3.5 and linux-2.1.131.

> > >i am able to login by applying a loging and passwd to prompts so
> > >getting this running is not critical.  i am just wondering what can be
> > >going on.

Hi, I use 'passive' in my ppp/options. Could this help?
Dermot
 
 
 

PPP, PAP, CHAP in plain english

Post by Johan Kullsta » Mon, 07 Dec 1998 04:00:00



> Johan Kullstam writes:
> > i can login fine with a little automation via chat.  i am just curious
> > why idt's pap isn't working for me.

> A few ISP's get confused if pppd starts sending packets too soon after the
> connection is made.  A few others interpret the return that chat sends when
> you tell it to send "nothing", i.e., ''.  Try this for the last line of
> your chatscript:

> CONNECT            '\d\c'

> This says expect 'CONNECT', pause one second, and send nothing, not even a
> return.

this seems to have done the trick.  thank you very much.

--

 
 
 

1. pppd - PAP, CHAP, MS-CHAP, MS-CHAP-v2 protocol negotiation

Hi,

We have clients connecting to pppd 2.4.2b1.
Clients are able to connect using PAP, CHAP, MS-CHAP, MS-CHAP-v2 if
the pppd configuration is set up to require a specific protocol, eg:

If we change /etc/ppp/options to not request a specific protocol,
clients can only connect using PAP or MS-CHAP-V2. Client trying to
connect through CHAP or MS-CHAP fail and Pppd logs the error "peer
refused to authenticate: terminating link"

pppd configuration:

We'd like our clients to be able to connect using PAP, CHAP, MS-CHAP
or MS-CHAP-v2, the protocol being negotiated by server and client...

I suppose it's a pppd configuration issue; any help is highly
appreciated.
Thx.
dan

2. T1 help

3. Howto dial ISP running NT4 - chap, pap, ms-chap?

4. Cannot Change Video Adapters

5. SWBell PPP/PAP/CHAP/Whatthehell? RH 5.0

6. Help! flashing login prompt

7. PPP script for client callback with PAP/CHAP

8. Question about setting RAM size

9. PAP, CHAP or PPP ?

10. Setting up PPP (possibly using PAP/CHAP) on Redhat 7.1

11. Solaris 2.5 PPP and Win95 PAP/CHAP Question

12. PPP using CHAP not PAP

13. ppp and chap/pap