Re: [radext] I-D Action: draft-ietf-radext-nai-02.txt

Alan DeKok <aland@deployingradius.com> Tue, 19 March 2013 13:31 UTC

Return-Path: <aland@deployingradius.com>
X-Original-To: radext@ietfa.amsl.com
Delivered-To: radext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9D75C21F8A6F for <radext@ietfa.amsl.com>; Tue, 19 Mar 2013 06:31:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.452
X-Spam-Level:
X-Spam-Status: No, score=-101.452 tagged_above=-999 required=5 tests=[AWL=-0.608, BAYES_00=-2.599, J_CHICKENPOX_31=0.6, RCVD_IN_SORBS_HTTP=0.001, RCVD_IN_SORBS_MISC=0.353, RCVD_IN_SORBS_SOCKS=0.801, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l2pENrIcOsIV for <radext@ietfa.amsl.com>; Tue, 19 Mar 2013 06:31:16 -0700 (PDT)
Received: from power.freeradius.org (power.freeradius.org [88.190.25.44]) by ietfa.amsl.com (Postfix) with ESMTP id B1AE321F8A6E for <radext@ietf.org>; Tue, 19 Mar 2013 06:31:15 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by power.freeradius.org (Postfix) with ESMTP id A23A52240F0E; Tue, 19 Mar 2013 14:31:14 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at power.freeradius.org
Received: from power.freeradius.org ([127.0.0.1]) by localhost (power.freeradius.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C0bu6G2ooKt0; Tue, 19 Mar 2013 14:31:14 +0100 (CET)
Received: from Thor-2.local (bas1-ottawa11-1177690350.dsl.bell.ca [70.50.32.238]) by power.freeradius.org (Postfix) with ESMTPSA id C669F2240C5B; Tue, 19 Mar 2013 14:31:13 +0100 (CET)
Message-ID: <514868A0.2040207@deployingradius.com>
Date: Tue, 19 Mar 2013 09:31:12 -0400
From: Alan DeKok <aland@deployingradius.com>
User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228)
MIME-Version: 1.0
To: Stefan Winter <stefan.winter@restena.lu>
References: <20130128155031.8392.45953.idtracker@ietfa.amsl.com> <5147172F.8090100@restena.lu> <08fd01ce23f5$cf8d0b90$6ea722b0$@augustcellars.com> <tslfvzsvd24.fsf@mit.edu> <091f01ce240a$6705a860$3510f920$@augustcellars.com> <51476C2C.5070000@deployingradius.com> <5148192B.90507@restena.lu>
In-Reply-To: <5148192B.90507@restena.lu>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Cc: radext@ietf.org
Subject: Re: [radext] I-D Action: draft-ietf-radext-nai-02.txt
X-BeenThere: radext@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: RADIUS EXTensions working group discussion list <radext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/radext>, <mailto:radext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/radext>
List-Post: <mailto:radext@ietf.org>
List-Help: <mailto:radext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/radext>, <mailto:radext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Mar 2013 13:31:16 -0000

Stefan Winter wrote:
>>   As I write RADIUS servers instead of supplicants, I think the
>> normalization work should be pushed off onto supplicants.
>>
>>   The document already says that realm names MUST be registrable as
>> names within DNS.  DNS requires NFC.  Therefore, realms are NFC.  Any
>> supplicant injecting non-NFC names is wrong.
> 
> Not quite. Section 2.1 states:
> 
> See [RFC5198] for a discussion of normalization; the use of Normal
>    Form Composed (NFC) is RECOMMENDED.

  Yes.  Keep reading.  It also says that realm names MUST be registrable
as names within DNS.  Which (eventually) means NFC.

  The text you quote is left over from an earlier version of the draft,
before I worked through the DNS documents.  It will be updated in the
next rev.

> If this statement were a MUST; plus a discussion what to do if an
> incoming string is not in NFC (discard?) would make the whole thing a
> lot more deterministic.

  I vote a "hell no" to discarding packets with malformed NAI.

  For me, a malformed NAI only means that it's not an NAI.  EXAMPLE\user
 is a perfectly valid RADIUS User-Name.  It should *not* be forbidden by
the NAI document.

> It may be that the home server does not "need" the non-normalised junk
> :-) It may just be that a supplicant thinks it's wise to send it; and
> since the contents of the attribute can't be altered in-flight, this
> junk will stay in the packet until it arrives at the home server.

  That's not what I got from his message, but OK.

> My argument was that it may not even reach the home server if proxies
> aren't allowed to do some sort of "sane" lookup of the packet content
> vs. their local configuration.

  They are allowed.  They do this today.  Proxy routing can be done on
EXAMPLE\user.

  The point of the NAI draft is to (a) fix RFC 4282, (b) define the NAI
correctly, and (c) encourage people to use it instead of broken
alternatives.

  There are no plans for a RADIUS police force who will shut down
non-complaint implementations.  They just won't get the benefit of
standardization.

> That verification may ultimately require normalisation by the home
> server. It's true that this is site-specific; but in the presence of
> proxies the problematic bit is to reach that home site in the first place.

  That's blaming the messenger.

  The problem is really the supplicants that inject multiple versions of
the same domain.

> My issue is: does realm A', which is extremely similar to A in that it
> differs only in string representation, also go to server A? Or is it
> discarded by the proxy due to being unknown (i.e. not byte-wise equal to
> the configured realm A)? Or sent to a "last resort"? If NFC(A') = A, and
> if that is looked up in the routing table, a lot good is done in terms
> of forwardability, IMHO.

  I'm OK with proxies doing deeper inspection or normalization of the
NAI.  I'm against the *requirement* that they do this.  RFC 4282
requires it.  Requiring non-NFS from the supplicants means that proxies
are required to massage the NAI before they use it.

  Alan DeKok.