Hi,
Most ISPs support PAP authentication. Probably you
should try and use PAP instead of a script. Insert
your ISP username and password as follows into
/etc/ppp/pap-secrets:
username * password
Note that password is NOT encrypted. So watch out for
permissions to this file.
You will also have to create
/etc/sysconfig/network-scripts/chat-ppp0 and
/etc/sysconfig/network-scripts/ifcfg-ppp0 files.
In the ifcfg-ppp0 file, give the PAPNAME="username"
option.
I know this reply is kinda cursory but since you've
already configured it for PPP you should be able to do
it.
Vicky
--- "M. Selvakumar" <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> Our server is RHL6.1. Our server connect to ISDN
> line through D-Link ISDN
> TA.
> Our server is connecting, but not prompting
> username.
> I am connecting as below.
>
>
> I have run pppd as follows
>
> /usr/sbin/pppd /dev/ttyS0 115200 passive connect \
> /etc/ppp/script/ppp-on-dial
>
> /etc/ppp/script/ppp-on-dial is chat script as
> follows
>
>
> #!/bin/sh
> #exec chat -v \
> TIMEOUT 60 \
> ABORT '\nBUSY\r' \
> ABORT '\nNO ANSWER\r' \
> ABORT '\nRINGING\r\n\r\nRINGING\r' \
> '' \rAT \
> 'OK-+++\c-OK' ATH0 \
> TIMEOUT 40 \
> OK ATD8210020 \
> CONNECT '' \
> sername:--sername: ACCOUNT \
> assword: PASSWORD
>
>
> my log message is
>
>
> May 30 10:40:12 localhost modprobe: can't locate
> module char-major-108
> May 30 10:40:12 localhost pppd[949]: pppd 2.3.10
> started by root, uid 0
> May 30 10:40:13 localhost chat[952]: timeout set to
> 60 seconds
> May 30 10:40:13 localhost chat[952]: abort on
> (\nBUSY\r)
> May 30 10:40:13 localhost chat[952]: abort on (\nNO
> ANSWER\r)
> May 30 10:40:13 localhost chat[952]: abort on (\nNO
> CARRIER\r)
> May 30 10:40:13 localhost chat[952]: abort on
> (\nRINGING\r\n\r\nRINGING\r)
> May 30 10:40:13 localhost chat[952]: send (rAT^M)
> May 30 10:40:13 localhost chat[952]: expect (OK)
> May 30 10:40:14 localhost chat[952]: AT^M^M
> May 30 10:40:14 localhost chat[952]: OK
> May 30 10:40:14 localhost chat[952]: -- got it
> May 30 10:40:14 localhost chat[952]: send (ATH0^M)
> May 30 10:40:14 localhost chat[952]: timeout set to
> 40 seconds
> May 30 10:40:14 localhost chat[952]: expect (OK)
> May 30 10:40:14 localhost chat[952]: ^M
> May 30 10:40:14 localhost chat[952]: ATH0^M^M
> May 30 10:40:14 localhost chat[952]: OK
> May 30 10:40:14 localhost chat[952]: -- got it
> May 30 10:40:14 localhost chat[952]: send
> (ATD8210020^M)
> May 30 10:40:14 localhost chat[952]: expect
> (CONNECT)
> May 30 10:40:14 localhost chat[952]: ^M
> May 30 10:40:16 localhost chat[952]: ATD8210020^M^M
> May 30 10:40:16 localhost chat[952]: CARRIER 64000^M
> May 30 10:40:16 localhost chat[952]: ^M
> May 30 10:40:16 localhost chat[952]: PROTOCOL: PPP^M
> May 30 10:40:16 localhost chat[952]: ^M
> May 30 10:40:16 localhost chat[952]: CONNECT
> May 30 10:40:16 localhost chat[952]: -- got it
> May 30 10:40:16 localhost chat[952]: send (^M)
> May 30 10:40:16 localhost chat[952]: expect
> (sername:)
> May 30 10:40:16 localhost chat[952]: 115200^M
> May 30 10:40:16 localhost chat[952]:
>
~^?}#@!}!E}}?}#}$@#}%}&z75y}1}$}%t}3}-}!gimdisdn020}*^@}
> } } } } } } } } } } } } May
> 30 10:40:16 localhost chat[952]: } } } } } } } } } }
> } } } } } } } } } } }
> } } } } } } } } } } } } } } } } } } }
> May 30 10:40:17 localhost last message repeated 2
> times
> May 30 10:40:17 localhost chat[952]: } } } } } } } }
> } } } } } } } } } } }
> } } } } } } } } } } } ^@} } } } } } } } } }
> May 30 10:40:17 localhost chat[952]: } } } } } } }
> } } } } } } } } } } }
> } } } } } } } } } } } } } } } } } } } } } }
> May 30 10:40:17 localhost last message repeated 6
> timesMay 30 10:40:17
> localhost chat[952]: } } } } } } } } } }
> } } } } } } } } } } } } } } } } }
> May 30 10:40:17 localhost chat[952]: } } } } } } } }
> } } } } } } } } } } }
> } } } } } } } } } } } } } } } } } } } } }
> May 30 10:40:17 localhost last message repeated 25
> timesMay 30 10:40:17
> localhost chat[952]: } } } } } } } } } } } } } } } }
> } } } } } } } } } } }
> } } } } } } } } } } } } =&
> May 30 10:40:21 localhost chat[952]: ~~^?}#@!}!h}
>
}?}#}$@#}%}&zJ}6b}1}$}%t}3}-}!gimdisdn02}"m~~^?}#@!}!i}
> }?}#}$@#}%}&z
> May 30 10:40:23 localhost chat[952]:
> J}6b}1}$}%t}3}-}!gimdisdn02qM~~^?}#@!}!j}
> }?}#}$@#}%}&zJ}6b}1}$}%t}3}-}!gimdisdn0
> May 30 10:40:27 localhost
> chat[952]: 2d,~~^?}#@!}!k}
>
}?}#}$@#}%}&zJ}6b}1}$}%t}3}-}!gimdisdn02}7},~~^?}#@!}!l}
> }?}#}$@#}May 30
> 10:40:29 localhost chat[952]:
> %}&zJ}6b}1}$}%t}3}-}!gimdisdn02Nn~~^?}#@!}!m}
> }?}#}$@#}%}&zJ}6b}1}$}%t}3}-}!gimdi
> May 30 10:40:33 localhost
> chat[952]:sdn02=N~~^?}#@!}!n}
>
}?}#}$@#}%}&zJ}6b}1}$}%t}3}-}!gimdisdn02(/~~^?}#@!}!o}
> }?}#}$@
> May 30 10:40:35 localhost
>
chat[952]:#}%}&zJ}6b}1}$}%t}3}-}!gimdisdn02[^O~~^?}#@!}!p}
> }?}#}$@#}%}&zJ}6b}1}$}%t}3}-}!gim
> May 30 10:40:39 localhost
> chat[952]:disdn02^Y}]~~^?}#@!}!q}
>
}?}#}$@#}%}&zJ}6b}1}$}%t}3}-}!gimdisdn02j]~~^?}#@!}!r}
> }?}#
> May 30 10:40:42 localhost chat[952]:
> }$@#}%}&zJ}6b}1}$}%t}3}-}!gimdisdn02^?<~^M
> May 30 10:40:42 localhost chat[952]: NO CARRIER^M
> May 30 10:40:42 localhost chat[952]: -- failed
> May 30 10:40:42 localhost chat[952]: Failed (
> NOCARRIER^M)
> May 30 10:40:42 localhost pppd[949]: Connect script
> failed
> May 30 10:40:43 localhost pppd[949]: Exit.
>
>
>
> Can you please help me to solve this.
>
> bye
> selva
>
>
>
>
-----------------------------------------------------------------------
> The LIH mailing list archives are available at:
>
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH