From: Philip Paeps <philip@paeps.cx>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] gatchat: implement PAP authentication
Date: Thu, 19 Jun 2014 10:29:53 +0200 [thread overview]
Message-ID: <20140619082953.GA33006@rincewind.trouble.is> (raw)
In-Reply-To: <53A210C0.9020501@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2520 bytes --]
On 2014-06-18 17:20:48 (-0500), Denis Kenzior <denkenz@gmail.com> wrote:
> Hi Philip,
Thanks for your review Denis. I'll send an updated patch in a bit. I
hadn't noticed the doc/coding-style.txt document and just tried to be
consistent with the existing code.
> On 06/17/2014 04:57 PM, Philip Paeps wrote:
> > This works around the amusing requirement of 3GPP TS 29.061 that
> > modems must send a forced positive acknowledgement of the
> > authentication method tried (i.e.: the modem will successfully
> > accept any CHAP handshake, but if the network only supports PAP,
> > the modem will hang up when it tries and fails to activate the
> > PDP context)
>
> In theory this is because CHAP authentication should always be accepted
> by the network operator, but it seems there are still a few out there
> that do not do this properly.
My reading of TS 29.061 leaves me feeling there's a misalignment between
the PPP side and the packet data side of modems and this is glossed over
by requiring that modems must send a forced positive acknowledgement to
any authentication method tried (even none).
On the network side, it looks like the authentication method could in
principle be anything you can convince RADIUS about, but there is no way
for the modem to know which methods are supported (or required) before
trying to set up the packet data context.
The modem is expected to copy the authentication parameters it gets
through PPP into protocol configuration options when it sets up the
packet data context on the network side and hang up PPP when it fails.
I couldn't find a requirement for CHAP. Only the requirement that it
should be tried first, and the requirement that any method tried should
get a forced positive acknowledgement. I'm not intimately familiar with
these standards though, and I've not read them all.
> > + default:
> > + /*
> > + * We only support CHAP and PAP.
> > + * Tough luck!
> > + */
> > + return RCR_NAK;
>
> Since this can never happen, we should probably not even include this
> statement.
I originally had g_assert() here, but since it doesn't look like that's
a popular construct for catching programmer forgetfulness in ofono, I
turned it into a reject. As coding-style.txt points out though, the
compiler will complain if the enum changes, so I'll drop the default
case in my updated patch.
Philip
--
Philip Paeps
Senior Reality Engineer
Ministry of Information
next prev parent reply other threads:[~2014-06-19 8:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 21:57 [PATCH] Add support for PAP authentication Philip Paeps
2014-06-17 21:57 ` [PATCH 1/3] gatchat: implement " Philip Paeps
2014-06-18 22:20 ` Denis Kenzior
2014-06-19 8:29 ` Philip Paeps [this message]
2014-06-19 9:41 ` Philip Paeps
2014-06-17 21:57 ` [PATCH 2/3] gprs: make PPP authentication method configurable Philip Paeps
2014-06-18 22:27 ` Denis Kenzior
2014-06-17 21:57 ` [PATCH 3/3] mbpi: add authentication methods to provisioning Philip Paeps
2014-06-18 22:33 ` Denis Kenzior
2014-06-19 8:34 ` Philip Paeps
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140619082953.GA33006@rincewind.trouble.is \
--to=philip@paeps.cx \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox