Networking Forums

Networking Forums > Computer Networking > Linux Networking > pppd dial ISP with empty username and password

Reply
Thread Tools Display Modes

pppd dial ISP with empty username and password

 
 
narke
Guest
Posts: n/a

 
      08-09-2011, 02:23 AM
Hi,

I am using pppd to dial my ISP which ask for an empty username/password
pair. However, I've not figured out a way to let pppd treat my empty
username/password as normally, it's too smart and treat empty username
and password as 'authentication is imposssible', so it reject <auth pap>
request from the GPRS modem.

How can I cheat pppd to let it do the job? Currently, my configuration
file in /etc/ppp/peers/myisp containts no username line. But I also
tried to use one line such as:

.... ...
username ''
.... ...

and in my 'pap-secrets' file there is a:

\'\' * \'\'

but, still it doesn't work.

Plese someone help me. Thanks in advance.


--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer

narke
 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      08-09-2011, 07:56 PM
On Mon, 08 Aug 2011, in the Usenet newsgroup comp.os.linux.networking, in
article <(E-Mail Removed)> , narke wrote:

>I am using pppd to dial my ISP which ask for an empty username/password
>pair. However, I've not figured out a way to let pppd treat my empty
>username/password as normally, it's too smart and treat empty username
>and password as 'authentication is imposssible', so it reject <auth pap>
>request from the GPRS modem.


While RFC1334 (PPP Authentication Protocols) does indeed allow for a
zero length username and password, I don't think I've ever seen it
used in practice. Philosophically, if "" is accepted, what is the
need/use of such authentication?

The _normal_ interpretation of such instructions is to not try the
so-called text or shell login - where the dialing program looks for a
UNIX style "Login:" and subsequent "Password:" prompt (as is depicted
in older documentation such as the PPP-HOWTO in section 18.2, or the
ISP-Hookup-HOWTO) - that went out of style when microsoft invented the
telephone in 1995, but many *nix users think that because they are
using something like UNIX, they must find a UNIX "Login:" prompt which
is definitely NOT true. If you are attempting to use the WvDial
program, set "Stupid Mode = 1" in /etc/wvdial.conf if that file exists.

>How can I cheat pppd to let it do the job? Currently, my configuration
>file in /etc/ppp/peers/myisp containts no username line.


I'm not a C programmer, but I don't think pppd will accept 'user ""'
as an option, and without the user option, pppd will guess that the
user who is running pppd on your computer is the one to try to
authenticate as. Neither is likely to work.

Try setting your ISP username/password in /etc/ppp/pap-secrets in the
form

narke * p42Sw0rD~

(or what-ever the real username and password is - some ISPs want to see
"(E-Mail Removed)" instead), and TEMPORARILY rename "/etc/ppp/options"
to "/etc/ppp/options.unused" then run

/usr/sbin/pppd user narke lock crtscts nodetach defaultroute modem
115200 noipdefault /dev/modem connect "/usr/sbin/chat ABORT BUSY \"\"
AT\&F1 OK ATDT2662902 CONNECT \"\d\c\""

NOTE: THAT IS ALL ONE LINE 177 characters long. Does that cause the
system to connect? (Note "AT\&F1" may have to be replaced with "ATZ"
depending on your modem requirements.) Note: the "user narke" in the
line above must match your real username in /etc/ppp/pap-secrets.

>But I also tried to use one line such as:
>
>... ...
>username ''
>... ...


REJECT! "username" is not a valid option to pppd. The correct option
is "user" meaning "user narke" or "user (E-Mail Removed)" or what-ever.

>and in my 'pap-secrets' file there is a:
>
>\'\' * \'\'
>
>but, still it doesn't work.


I don't expect it would work, but you could try

user ""

and

"" * ""

but I think pppd is going to barf over that.

>Plese someone help me. Thanks in advance.


Have you tried adding the 'debug' option? This should send a copy of
the "conversation your pppd is having with the peer to syslogd which
should put this data into a log file (depending on your un-named
Linux distribution and release).

In theory, a better news group to post this kind of question to would
be "comp.protocols.ppp" as one of the Linux pppd maintainers tends to
monitor that - but the group is very quiet, and I haven't seen him
post there since early January 2011. Your news server (giganews) has
two Italian newsgroups pertaining to GPRS (free.it.cellulari.gprs and
it-alt.tlc.gprs) but I doubt they would be useful.

Old guy
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Username and Password with WPA ??? Roughneck Wireless Networks 5 10-12-2006 05:36 AM
empty username at win98 login Mijc Windows Networking 5 12-15-2003 08:58 AM
How To Take Off Username and Password DareDevil Windows Networking 1 10-23-2003 11:39 PM
username & password req'd Matthew Jones Windows Networking 1 07-28-2003 02:11 PM
username & password req'd Matthew Jones Home Networking 1 07-28-2003 10:26 AM



1 2 3 4 5 6 7 8 9 10 11