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