Mickey,

You need to add a PPPd Options Item to your "diald.conf"  file
to identify the PAP User to utilize for login.

Add the following to your diald.conf:

pppd-options name UserName            #replace UserName with your PAP Login
ID.


Also, make sure that you truely have the PPP Device/Interface configured
to use PAP.

Here is an example diald.conf:

#---------------------------------------------------------------------------
---------------------------
#
# diald.conf by Jeff Hawkins
#
#
# Use the filter file that comes with diald.  This can be a bit drastic,
# so use the filter below
# include /usr/lib/diald/standard.filter
# or use the filter that brings the link up for use on a line shared with
# a phone
include /etc/diald/phone.filter
device /dev/modem
speed 115200
lock
mode ppp
dynamic
local 127.0.0.2
remote 127.0.0.3
pppd-options name MSN/JohnDoe
# Delay sending packets for 5 seconds after PPP device opens -
# this allows routes to be established back to the appropriate dialup
server.
up-delay 5
defaultroute
modem
crtscts
connect "/usr/sbin/chat -f /etc/sysconfig/network-scripts/chat-ppp0
redial-timeout 10
fifo /etc/diald/diald.ctl
#---------------------------------------------------------------------------
---------------------------


Jeff


----- Original Message -----
From: Mickey Reynolds <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 04, 1999 10:39 PM
Subject: Diald pppd authorization defaults to CHAP, need PAP


> I'm using RH6.0 and diald 0.99.1.
>
> My ISP requires PAP authorization and pppd connects successfully
> manually, i.e., the command "ifup ppp0" works, correctly reading my
> /etc/ppp/pap-secrets file and completing the authentication.
>
> Under diald, it appears that pppd tries to authorize with CHAP instead
> of PAP. I can't determine how to force pppd to use PAP authorization.
>
> Any suggestions?
>
> Debug output and config files follow.
>
>
> pppd debug output from ifup and diald:
>
> pppd debug from ifup (works):
> ----------------------
> Nov  4 20:44:49 gateway486 pppd[1772]: Connect: ppp0 <--> /dev/ttyS0
> Nov  4 20:44:50 gateway486 pppd[1772]: sent [LCP ConfReq id=0x1
> <asyncmap 0x0> <magic 0xf3a09ee3> <pcomp> <accomp>]
> Nov  4 20:44:51 gateway486 pppd[1772]: rcvd [LCP ConfReq id=0x20
> <asyncmap 0x0> <pcomp> <accomp> <auth chap MD5> <magic 0xf4535598>]
> Nov  4 20:44:51 gateway486 pppd[1772]: sent [LCP ConfNak id=0x20 <auth
> pap>]    <---  PAP requested here I think
> Nov  4 20:44:51 gateway486 pppd[1772]: rcvd [LCP ConfAck id=0x1
> <asyncmap 0x0> <magic 0xf3a09ee3> <pcomp> <accomp>]
> Nov  4 20:44:51 gateway486 pppd[1772]: rcvd [LCP ConfReq id=0x22
> <asyncmap 0x0> <pcomp> <accomp> <auth pap> <magic 0xf4535598>]
> Nov  4 20:44:51 gateway486 pppd[1772]: sent [LCP ConfAck id=0x22
> <asyncmap 0x0> <pcomp> <accomp> <auth pap> <magic 0xf4535598>]
> Nov  4 20:44:51 gateway486 pppd[1772]: sent [PAP AuthReq id=0x1
> user="xxxx" password="yyyy"]
> Nov  4 20:44:51 gateway486 pppd[1772]: rcvd [PAP AuthAck id=0x1 "Pass
> Authentication"]
> ---------
>
> pppd debug from diald (fails):
> ---------------------
> Nov  4 21:01:54 gateway486 pppd[1908]: Connect: ppp0 <--> /dev/ttyS0
> Nov  4 21:01:54 gateway486 pppd[1908]: sent [LCP ConfReq id=0x1
> <asyncmap 0x0> <magic 0xbfcf6e95> <pcomp> <accomp>]
> Nov  4 21:01:54 gateway486 pppd[1908]: rcvd [LCP ConfReq id=0x20
> <asyncmap 0x0> <pcomp> <accomp> <auth chap MD5> <magic 0x2c3f1ce4>]
> Nov  4 21:01:54 gateway486 pppd[1908]: sent [LCP ConfRej id=0x20 <auth
> chap MD5>]  <---
> Nov  4 21:01:54 gateway486 pppd[1908]: rcvd [LCP ConfAck id=0x1
> <asyncmap 0x0> <magic 0xbfcf6e95> <pcomp> <accomp>]
> Nov  4 21:01:54 gateway486 pppd[1908]: rcvd [LCP TermReq id=0x22]
> Nov  4 21:01:54 gateway486 pppd[1908]: sent [LCP TermAck id=0x22]
> Nov  4 21:01:56 gateway486 pppd[1908]: Hangup (SIGHUP)
> Nov  4 21:01:56 gateway486 pppd[1908]: Modem hangup
> Nov  4 21:01:56 gateway486 pppd[1908]: Connection terminated.
>
> Here's the config files:
>
> /etc/diald.conf:
> ----------
> mode ppp
> connect "/usr/sbin/chat -v -f /etc/sysconfig/network-scripts/chat-ppp0"
> device /dev/ttyS0
> speed 115200
> modem
> lock
> crtscts
> local 192.168.0.100
> remote 192.168.0.101
> dynamic
> defaultroute
> include /usr/lib/diald/standard.filter
> accounting-log /var/log/diald.log
> fifo /etc/diald.ctl
>
> /etc/sysconfig/network-scripts/chat-ppp0 (note: same chat script as for
> ifup)
> ------------------------------
> 'ABORT' 'BUSY'
> 'ABORT' 'ERROR'
> 'ABORT' 'NO CARRIER'
> 'ABORT' 'NO DIALTONE'
> 'ABORT' 'Invalid Login'
> 'ABORT' 'Login incorrect'
> '' 'ATZ'
> 'OK' 'ATDT2381015'
> 'CONNECT' ''
> 'TIMEOUT' '5'
> '~--' ''
>
>
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]
>



-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to