PDA

View Full Version : Off Topic: Road Runner dialup login.scp for Linux



dbrot
06-15-2005, 03:28 PM
I use Road Runner high speed cable for internet access at home. I use their roaming dialup service while at work. I can login using Windows XP but because Road Runner uses some funky login script to log me in, it does not work with linux. Road Runner uses CHAP to authenticate.

****Windows login.scp****

proc main

string prefix = "aolnet/ent."
string UID = prefix + $USERID

waitfor
"ANSNet" then DoANSLogin,
"Login:" then DoPPPLogin,
"sername:" then DoDirLogin,
"% Username:" then DoPRLogin
until 20

DoANSLogin:
waitfor "login" until 5
if $SUCCESS then
transmit prefix + $USERID, raw
transmit "^M"
goto DONE
endif

DoPPPLogin:
transmit UID, raw
transmit "^M"
waitfor "Password" until 5
transmit $PASSWORD, raw
transmit "^M"
waitfor ">" until 5
transmit "ppp", raw
transmit "^M"
goto DONE

DoDirLogin:
transmit UID, raw
transmit "^M"
waitfor "Password" until 5
transmit $PASSWORD, raw
transmit "^M"
goto DONE

DoPRLogin:
waitfor "% Username:" until 20
if $SUCCESS then
transmit UID, raw
transmit "^M"
waitfor "Password" until 5
transmit $PASSWORD, raw
transmit "^M"
goto DONE
endif

DONE:
delay 2
endproc


Here is the tail from the message log.
Jun 15 11:14:01 linux pppd[5132]: Plugin passwordfd.so loaded.
Jun 15 11:14:01 linux pppd[5132]: pppd 2.4.2 started by root, uid 0
Jun 15 11:14:02 linux wvdial[5133]: WvDial: Internet dialer version 1.54.0
Jun 15 11:14:02 linux wvdial[5133]: Initializing modem.
Jun 15 11:14:02 linux wvdial[5133]: Sending: ATZ
Jun 15 11:14:02 linux wvdial[5133]: ATZ
Jun 15 11:14:03 linux wvdial[5133]: OK
Jun 15 11:14:03 linux wvdial[5133]: Sending: AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jun 15 11:14:03 linux wvdial[5133]: AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jun 15 11:14:03 linux wvdial[5133]: OK
Jun 15 11:14:03 linux wvdial[5133]: Sending: ATM1
Jun 15 11:14:03 linux wvdial[5133]: ATM1
Jun 15 11:14:03 linux wvdial[5133]: OK
Jun 15 11:14:03 linux wvdial[5133]: Modem initialized.
Jun 15 11:14:03 linux wvdial[5133]: Sending: ATDT9,5285758
Jun 15 11:14:03 linux wvdial[5133]: Waiting for carrier.
Jun 15 11:14:03 linux wvdial[5133]: ATDT9,5285758
Jun 15 11:14:27 linux wvdial[5133]: CONNECT 49333/ARQ/V92/LAPM/V42BIS
Jun 15 11:14:27 linux wvdial[5133]: Carrier detected. Waiting for prompt.
Jun 15 11:14:28 linux wvdial[5133]: UQKT2 an1.lax33.da.uu.net
Jun 15 11:14:28 linux wvdial[5133]: Login:
Jun 15 11:14:28 linux wvdial[5133]: Looks like a login prompt.
Jun 15 11:14:28 linux wvdial[5133]: Sending: aolnet/[email protected]
Jun 15 11:14:29 linux wvdial[5133]: aolnet/[email protected]
Jun 15 11:14:29 linux wvdial[5133]: Password:
Jun 15 11:14:29 linux wvdial[5133]: Looks like a password prompt.
Jun 15 11:14:29 linux wvdial[5133]: Sending: (password)
Jun 15 11:14:29 linux wvdial[5133]: L2TP: Starting session
Jun 15 11:14:29 linux wvdial[5133]: Primary server '205.188.64.110'
Jun 15 11:14:31 linux wvdial[5133]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Jun 15 11:14:31 linux wvdial[5133]: PPP negotiation detected.
Jun 15 11:14:31 linux pppd[5132]: Serial connection established.
Jun 15 11:14:31 linux pppd[5132]: Using interface ppp0
Jun 15 11:14:31 linux pppd[5132]: Connect: ppp0 <--> /dev/ttyS0
Jun 15 11:14:37 linux pppd[5132]: Hangup (SIGHUP)
Jun 15 11:14:37 linux pppd[5132]: Modem hangup
Jun 15 11:14:37 linux pppd[5132]: Connection terminated.
Jun 15 11:14:38 linux pppd[5132]: Exit.


I get a simular error when I do not run the login.scp after connecting to Road Runner from a Windows XP box. Road Runner is recognizing my username but is not running the login.scp on the linux box. I figure there is some compatibility problems between using the windows dialup script on a linux box. Does anyone know anything about writing login scripts or converting this login script to be compatible with linux. I have searched high and low on google and have not found much of anything that would answer my question.

Thanks in advance.