Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration does not specify a valid login name/password #4

Closed
morfikov opened this issue Jul 10, 2016 · 7 comments
Closed

Configuration does not specify a valid login name/password #4

morfikov opened this issue Jul 10, 2016 · 7 comments

Comments

@morfikov
Copy link

morfikov commented Jul 10, 2016

I was unable to connect using wvdial-gui. Here's to log:

--> WvDial: Internet dialer version 1.61
--> Cannot set information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 H0 S0=0
ATQ0 V1 E1 H0 S0=0
OK
--> Modem initialized.
--> Configuration does not specify a valid login name.
--> Configuration does not specify a valid password.

What login and password is it asking about?

@mhogomchungu
Copy link
Owner

mhogomchungu commented Jul 10, 2016

Can you make a data connection when running "wvdial" from the terminal?,the application assumes "wvdial" is self sufficient and does not pass it any arguments.

my "/etc/wvdial.conf" looks like below:

try adding bogus username and password entries to silence the error.They will not be used if your service provider does not require them.

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
; Phone = <Target Phone Number>
ISDN = 0
; Username = <Your Login Name>
Init1 = ATZ
; Password = <Your Password>
Modem = /dev/ttyACM0
Baud = 460800
Phone = *99#
Password = "Vodafone"
Username = "Vodafone"

@morfikov
Copy link
Author

Can you make a data connection when running "wvdial" from the terminal?

Yes, but I have to use commands like the one below:

$ wvdial modem-start set-new red_bull_mobile-auto

Check my config file: https://github.com/morfikov/files/blob/master/configs/etc/wvdial.conf .

@mhogomchungu
Copy link
Owner

Did it work when adding bogus username and password in your config file?

@morfikov
Copy link
Author

morfikov commented Jul 10, 2016

I just added:

Password = "Vodafone"
Username = "Vodafone"

And It worked:

--> WvDial: Internet dialer version 1.61
--> Cannot set information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 H0 S0=0
ATQ0 V1 E1 H0 S0=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun Jul 10 17:21:20 2016
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 130203
--> Using interface ppp0
--> Authentication (PAP) started
--> Authentication (PAP) successful
--> local  IP address 10.139.166.221
--> remote IP address 10.64.64.64
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect

But how does it know which profile to use in order to connect?

@morfikov
Copy link
Author

morfikov commented Jul 10, 2016

I think it takes parameters from the last connection. I mean when I connect manually via wvdial, then the parameters will be used by wvdial-gui. Is there a way to choose which settings will be used or am I forced to change that via wvdial?

@mhogomchungu
Copy link
Owner

wvdial-gui currently calls wvdial with no arguments meaning wvdial takes its configuration options from its default locations which are "/etc/wvdial.config" and "$HOME/.wvdialrc"(this is according to wvdial documentation).

The idea i had is that wvdial-gui will work if wvdial also works without any additional arguments.

@mhogomchungu
Copy link
Owner

I am closing this one since the problem you had is now gone after you added those options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants