Re: wvdial Ask Password fails with tcgetattr error
From: Richard (dont.spam.me_at_news.invalid)
Date: 07/10/05
- Previous message: Robert: "Re: Setting up Multiple VirtualHosts in Apache"
- In reply to: Unruh: "Re: wvdial Ask Password fails with tcgetattr error"
- Next in thread: Unruh: "Re: wvdial Ask Password fails with tcgetattr error"
- Reply: Unruh: "Re: wvdial Ask Password fails with tcgetattr error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 09 Jul 2005 23:56:45 GMT
Unruh <unruh-spam@physics.ubc.ca> wrote in
news:dap6it$jna$1@nntp.itservices.ubc.ca:
>
> What does your wvdial config file have in it (do not post the password
> here).
>
Configuration files:
/etc/ppp/options
asyncmap 0
noauth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
/etc/ppp/wvdial.conf
[Dialer ppp0]
Init2 = ATL1
Password = ******
Stupid mode = 0
Init1 = AT&F1
Phone = 421-0549
Username = XXXXXX
Dial Command = ATDT
Modem = /dev/ttyS1
Baud = 115200
[Dialer Defaults]
Modem = /dev/ttyS1
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0L3
ISDN = 0
Modem Type = Analog Modem
/etc/ppp/peers/ppp0
usepeerdns
user XXXXXX
/dev/ttyS1
connect "/usr/bin/wvdial --chat ppp0"
defaultroute
noipdefault
noauth
> As I said (almost) no ISP uses login -- it really is highly unlikely.
>
> However wvdial can be stupid, and they realise it, so put in the
> option Supid Mode = 1
> Make sure you have pap/chap secrets file properly set up.
>
> Also remove the Login and Password or Ask Password entries.
>
I tried several experiments at your suggestion, and here are my
observations:
With Stupid Mode = 0, wvdial will authenticate via login/password before
starting pppd.
With Stupid Mode = 1, wvdial will start pppd immediately and (apparently)
authenticate via pap/chap-secrets files.
Either method connects successfully.
Regardless of how Stupid Mode is set, wvdial gets a username and password
from wvdial.conf (or asks for a password if Ask Password = 1), and writes
them to the pap/chap-secrets files. If it cannot find/get both username and
password, it exits before dialing. When I remove Username, Password and Ask
Password from wvdial.conf, I get the following result (with Stupid Mode = 1
or 0):
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: AT&F1
AT&F1
OK
--> Sending: ATL1
ATL1
OK
--> Modem initialized.
--> Configuration does not specify a valid password.
--> Configuration does not specify a valid user name.
(exits)
The wvdial man page does say it automatically updates pap/chap-secrets
files, so I guess it wants a username/password pair to accomplish that.
Don't recall seeing any way to turn that behavior off.
- Previous message: Robert: "Re: Setting up Multiple VirtualHosts in Apache"
- In reply to: Unruh: "Re: wvdial Ask Password fails with tcgetattr error"
- Next in thread: Unruh: "Re: wvdial Ask Password fails with tcgetattr error"
- Reply: Unruh: "Re: wvdial Ask Password fails with tcgetattr error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|