From clive at demon.net  Tue Nov  2 03:05:50 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  2 03:05:58 2004
Subject: [NNTP] Current NNTP draft status
In-Reply-To: <877jpunj9q.fsf@windlord.stanford.edu>
References: <877jpunj9q.fsf@windlord.stanford.edu>
Message-ID: <20041102110550.GC34826@finch-staff-1.thus.net>

Russ Allbery said:
> If everyone would look over the LIST EXTENSIONS proposal that I sent out
> and comment on it, I'd really like to get consensus about this by the time
> I get back or shortly thereafter, if at all possible.

See separate threads.

> We've already had a few working group calls for the AUTHINFO and TLS
> documents, and I believe that the next versions will be ready for IETF
> last call.  I'd like to be sure that Clive feels the same way, but other
> than that, I think the documents are ready.

I sent out a few comments on them. I'd obviously like to eyeball the next
versions, but I don't think there are any showstoppers.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  2 03:29:58 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  2 03:30:07 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <417E8D0D.6050403@oceana.com>
References: <20041020150153.GB10816@finch-staff-1.thus.net>
	<417A7798.30708@oceana.com>
	<20041026162003.GW81365@finch-staff-1.thus.net>
	<417E8D0D.6050403@oceana.com>
Message-ID: <20041102112958.GD34826@finch-staff-1.thus.net>

Ken Murchison said:
> I think where we diverge is that the NNTPv2 proposal follows the KISS 
> principal and only solves the existing problem(s); by putting a line in 
> the sand w.r.t. base functionality and existing extensions which we are 
> standardizing.  Your proposal wants to try to solve any problems with 
> extensions moving forward.

Yes, that's a key difference.

> 1)  Based on past history of IMAP/POP3/SMTP, few, if any, extensions 
> will have their functionality changed in any significant way.
> 
> 2)  If the functionality *is* changed in a drastic, non-backwards 
> compatible way, then a new extension should be advertised rather than 
> trying to wedge it into the existing extension.
> 
> 3) If the previous two assumptions turn out to be false, then we can 
> always address this issue at a later time.  The existing LIST EXTENSIONS 
> syntax already allows for extension labels to take arguments, which 
> could be used for versioning and/or enabled/disabled flags.

Okay. Furthermore, if we have reserved characters (as in the separate
proposal) then these can be used to introduce such a change as well.

>> My concerns, as explained in my previous messages, split into two areas:

>> (1) The ability to handle variations - version numbers - of extensions.
>> This *will* happen to lots of protocols, even if it hasn't happened yet.
> I agree that functionality *may* change for certain extensions, but my 
> guess is that the WGs responsible for the other protocols would just 
> create a new extension or separate extension label/capability.

I'm not convinced that's the right approach, but I appear to be pretty much
alone at present on this.

>> (2) NNTP's unique (as far as I know) concept of "extensions that aren't
>> available until you do something separate".
[...]
> I don't see this being an issue for clients.
[...]
> If we're interested in saving roundtrips, then we could always look at 
> Mark's proposal (which I haven't seen get to the list yet) of allowing 
> relevant responses to carry extension info.

I don't think this will work like this, but it's certainly worth thinking
through. Separate thread?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  2 03:36:30 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  2 03:36:40 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <416FCD30.40906@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<416FCD30.40906@oceana.com>
Message-ID: <20041102113630.GE34826@finch-staff-1.thus.net>

Ken Murchison said:
>> But I'd certainly like to encourage extensions to indicate both what is
>> available and what is currently-unavailable, rather than just the former.
>> And this is something that I'd like to see even if we don't adopt this
>> STATUS proposal.
> I don't see why this is necessary.  We really need client authors to 
> weigh in here.  We, as server authors shouldn't be deciding what's good 
> for clients in a vacuum.

I'd still like to hear from client authors here.

>> Or we can bite the bullet and say that servers must advertise every command
>> that they implement.
> *Every* command?  Why?  The NNTPv2 capability states all of the base 
> commands that the server supports (other than the optional LIST xxx 
> stuff -- which is still a klugde IMHO).  Any other commands MUST be 
> advertised by an extension label.

Um, I didn't mean that each command should be listed separately in LIST
EXTENSIONS (or STATUS). I meant that every command supported (except for
the mandatory ones) should be *indicated* by something in the output. In
many cases several commands are indicated at once.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  2 04:16:03 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  2 04:16:06 2004
Subject: [NNTP] LIST EXTENSIONS (again)
Message-ID: <20041102121603.GF34826@finch-staff-1.thus.net>

Okay, let me have another go, this time assuming that we only want a
minimal version indication for LIST EXTENSIONS. Here's a proposal:

(0) Adopt the "restrict characters in command names and extension labels
proposal".

(1) Make LIST EXTENSIONS mandatory.

(2) Require a version entry in the output from LIST EXTENSIONS. However,
rather than "NNTPv2", I would suggest:

    _RFC_ 3977

(this assumes that _ is not a permitted character); 3977 is the number of
the final RFC for NNTP. [This approach has been used successfully in other
standards, and allows more flexibility than just an arbitrary string.]

(3) A conforming server MUST NOT advertise any extension label, other
than one beginning with X, not in the IANA registry.

(4) Any specification in extensions should be phrased along the lines of:

    This specification requires that the server conform to [NNTP],
    indicated by "_RFC_ 3977" or some higher number in the output from
    LIST EXTENSIONS.

or:

    If the server conforms to [NNTP], indicated by "_RFC_ 3977" or some
    higher number in the output from LIST EXTENSIONS, then ....
    Otherwise ....

(5) I'd *like* to see this entry also used to indicate at least some
of the optional things that are in the core protocol. For example:

    _RFC_ 3977 MODE_READER         indicates MODE READER is significant

    _RFC_ 3977 LIST_OPTIONAL       indicates all four optional LIST
                                   commands (excludes OVERVIEW.FMT) are
                                   supported

[Actually, those are the only two significant options I can think of.] But
don't let this derail the previous points.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Tue Nov  2 06:48:31 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  2 06:47:42 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041102121603.GF34826@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
Message-ID: <41879E3F.10905@oceana.com>

Clive D.W. Feather wrote:

> Okay, let me have another go, this time assuming that we only want a
> minimal version indication for LIST EXTENSIONS. Here's a proposal:
> 
> (0) Adopt the "restrict characters in command names and extension labels
> proposal".

If this is the proposal to allow upper/lower and numeric chars (with a 
few extras), I agree.


> (1) Make LIST EXTENSIONS mandatory.

Absolutely.


> (2) Require a version entry in the output from LIST EXTENSIONS. However,
> rather than "NNTPv2", I would suggest:
> 
>     _RFC_ 3977

My only problem with tying the capability to a particular document 
revision, is that the document may be updated in the future to fix 
errata, ambiguities, etc without changing the underlying functionality. 
  For example, RFC3977 gets updated by RFC4321 without change of 
functionality, should the server then advertise "_RFC_ 4321" or continue 
to advertise "_RFC_ 3977"?  I don't think either case is optimal.  By 
choosing a somewhat arbitrary string like "NNTPv2", we're RFC 
revision-proof, and still have the intended behavior.


> (this assumes that _ is not a permitted character); 3977 is the number of
> the final RFC for NNTP. [This approach has been used successfully in other
> standards, and allows more flexibility than just an arbitrary string.]

Has RFC3977 actually been reserved for the new NNTP spec (ala 
RFC282[12]), or did you just pick this as an example?  I think reserving 
3977 it is a good idea, but we'd need to move fast if it hasn't already 
been done, since the RFCs are up to at least 3955 already.


> (3) A conforming server MUST NOT advertise any extension label, other
> than one beginning with X, not in the IANA registry.

Agreed.


> (4) Any specification in extensions should be phrased along the lines of:
> 
>     This specification requires that the server conform to [NNTP],
>     indicated by "_RFC_ 3977" or some higher number in the output from
>     LIST EXTENSIONS.
> 
> or:
> 
>     If the server conforms to [NNTP], indicated by "_RFC_ 3977" or some
>     higher number in the output from LIST EXTENSIONS, then ....
>     Otherwise ....

Yes, we would need some sort of language along these lines.


> (5) I'd *like* to see this entry also used to indicate at least some
> of the optional things that are in the core protocol. For example:
> 
>     _RFC_ 3977 MODE_READER         indicates MODE READER is significant
> 
>     _RFC_ 3977 LIST_OPTIONAL       indicates all four optional LIST
>                                    commands (excludes OVERVIEW.FMT) are
>                                    supported

I like the idea of advertising whether MODE READER is required and which 
optional LIST commands are supported, but I don't see where our new 
token needs to be used as part of this.

Is it realistic to assume that if a server supports one of the optional 
LIST commands, that it would support all of them?  I don't know, I'm 
just asking (especially since Cyrus nntpd which I wrote only currently 
supports LIST NEWSGROUPS).  It seems like it would be better to 
enumerate them as part of the extension label, e.g.:

[C] LIST EXTENSIONS
[S] MODE_READER
[S] LIST ACTIVE.TIMES DISTRIBUTIONS DISTRIB.PATS NEWSGROUPS
[S] .

Obviously, any combination of the four LIST arguments is valid.

If we nail down capabilities for these two items, then a client can 
learn everything it needs to from LIST EXTENSIONS and no longer has to 
guess or do a trial-and-error.  This is a "good thing" IMHO.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Tue Nov  2 07:37:16 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  2 07:37:22 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <41879E3F.10905@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
Message-ID: <20041102153716.GN34826@finch-staff-1.thus.net>

Ken Murchison said:
>> (0) Adopt the "restrict characters in command names and extension labels
>> proposal".
> If this is the proposal to allow upper/lower and numeric chars (with a 
> few extras), I agree.

It is.

>> (2) Require a version entry in the output from LIST EXTENSIONS. However,
>> rather than "NNTPv2", I would suggest:
>>     _RFC_ 3977
> 
> My only problem with tying the capability to a particular document 
> revision, is that the document may be updated in the future to fix 
> errata, ambiguities, etc without changing the underlying functionality. 
>  For example, RFC3977 gets updated by RFC4321 without change of 
> functionality, should the server then advertise "_RFC_ 4321" or continue 
> to advertise "_RFC_ 3977"?  I don't think either case is optimal.  By 
> choosing a somewhat arbitrary string like "NNTPv2", we're RFC 
> revision-proof, and still have the intended behavior.

Two things. Firstly, I want the number separate from the pseudo
extension-label, to make it clear that it is a number and not an arbitrary
string. Whether it's "_RFC_ 3977" or "_NNTP_ 2" is secondary.

Secondly, we're back the the versioning issue again.

There are three basic cases to consider and, as far as I can see, three
approaches we could follow.

Case 1: a new specification makes absolutely no changes to what's on the
wire; it just clarifies things.

Case 2: a new specification is completely upwards compatible but adds new
facilities. Note: a MODE NEW command that *changed* the semantics of
existing commands is fine, so long as an unsuspecting client doesn't see
the changes.

Case 3: a new specification is not upwards compatible for whatever reason.

Approach A: the server lists the latest RFC to which it conforms. The
client needs a list of RFCs that it can handle.
- Following a case 1 change, the number does *not* change; the server
  continues to reply "3977" and not "4321".
- Following a case 2 change, the number does change; the server replies
  "4321". The client needs to know that it can talk to either 3977 or 4321
  servers even if it doesn't grok the extra features of the latter.
- Following a case 3 change, the number does change; the server replies
  "4321". The client needs to know that it can talk to 3977 but not 4321
  servers, or it needs separate code paths contingent on the two.

Approach B: the server lists all the RFCs to which it conforms. The client
needs only know a single RFC (unless it has multiple code paths).
- Following a case 1 change, the number does *not* change; the server
  continues to reply "3977".
- Following a case 2 change, the number does change; the server replies
  "3977 4321". The client recognises 3977 and works, or it recognises
  4321 and uses the additional features.
- Following a case 3 change, the number does change; the server replies
  "4321". The client needs to know that it can talk to 3977 but not 4321
  servers, or it needs separate code paths contingent on the two.

Approach C: there are major and minor version numbers; what we have now
is 2.0. The client needs only know its current version number.
- Following a case 1 change, the number does *not* change; the server
  continues to reply "2.0".
- Following a case 2 change, the minor number changes and the server
  replies "2.1". A 2.0 client knows that 2.1 is upwards compatible and
  talks 2.0. A 2.1 client can use the extra features with a 2.1 server,
  and ignores them with a 2.0 server.
- Following a case 3 change, the major number changes; the server replies
  "3.0". A 2.x client knows that it can't handle this, or it has separate
  2.x and 3.x code paths.

Approach C is my preference and matches (e.g.) HTTP. I only suggested an
alternative because people choked on the major.minor idea previously.

> Has RFC3977 actually been reserved for the new NNTP spec (ala 
> RFC282[12]), or did you just pick this as an example?  I think reserving 
> 3977 it is a good idea, but we'd need to move fast if it hasn't already 
> been done, since the RFCs are up to at least 3955 already.

I haven't done it. I'd very much like it to be done, but the RFC editors
don't seem to be talking to me - they still haven't answered my comment
about them mangling the last few drafts (as Ken, I think, first realized).

Russ? Can you have a go at this?

>> (3) A conforming server MUST NOT advertise any extension label, other
>> than one beginning with X, not in the IANA registry.
> Agreed.

Note, I think that's stronger than what we had before.

>> (5) I'd *like* to see this entry also used to indicate at least some
>> of the optional things that are in the core protocol. For example:
>> 
>>     _RFC_ 3977 MODE_READER         indicates MODE READER is significant
>> 
>>     _RFC_ 3977 LIST_OPTIONAL       indicates all four optional LIST
>>                                    commands (excludes OVERVIEW.FMT) are
>>                                    supported
> 
> I like the idea of advertising whether MODE READER is required and which 
> optional LIST commands are supported, but I don't see where our new 
> token needs to be used as part of this.

These are features of the core protocol, not extensions. Therefore, in my
opinion, they belong with the support information for the core extension.
Note how we have "OVER MSGID" rather than separate "OVER" and "OVER-MSGID"
capabilities.

> Is it realistic to assume that if a server supports one of the optional 
> LIST commands, that it would support all of them?  I don't know,

Nor do I. I have no objection to splitting them; I'm just getting chary of
making complex-looking proposals (even when they're actually conceptually
simple).

> It seems like it would be better to 
> enumerate them as part of the extension label, e.g.:
> 
> [C] LIST EXTENSIONS
> [S] MODE_READER
> [S] LIST ACTIVE.TIMES DISTRIBUTIONS DISTRIB.PATS NEWSGROUPS
> [S] .

I'd prefer:

  [C] LIST EXTENSIONS
  [S] _NNTP_ 2.0 MODE_READER LIST_ACTIVE_TIMES LIST_NEWSGROUPS
  [S] STREAMING
  [S] .

for the reasons given above.

> Obviously, any combination of the four LIST arguments is valid.

Of course.

> If we nail down capabilities for these two items, then a client can 
> learn everything it needs to from LIST EXTENSIONS and no longer has to 
> guess or do a trial-and-error.  This is a "good thing" IMHO.

Agreed.

Um, I'm not going to swear there's no other significant options that are
worth noting here. Can anyone think of any?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  2 07:40:19 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  2 07:40:30 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <Pine.LNX.4.62.0411020723530.15535@shiva0.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<416FCD30.40906@oceana.com>
	<20041102113630.GE34826@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411020723530.15535@shiva0.cac.washington.edu>
Message-ID: <20041102154019.GO34826@finch-staff-1.thus.net>

Mark Crispin said:
>> I'd still like to hear from client authors here.
> I am an NNTP client author, *not* an NNTP server author.

Um, yes. But Ken (I think) was saying you're the only one.

> I agree with Ken Murchison.

So you don't want a "this could be available", only "this is available
right now"? Just want to be clear I'm understanding you.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  2 07:44:24 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  2 07:44:33 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <20041102154424.GP34826@finch-staff-1.thus.net>

Mark Crispin said:
>> As far as MODE READER is concerned, I personally agree with you. However,
>> server implementers will tell you otherwise. If you want to argue for this
>> change, please do so and let's see what happens.
> It certainly can be argued that this is a server internal detail which 
> should not burden the protocol.  It also adds an additional RTT (6 by my 
> count).
[...]

Again, I'm in complete sympathy.

I note that no server authors have chipped in here (or I missed them), but
my memory is that, at the time we first discussed this, they were adamant
that it was necessary.

Russ, where do we go from here?

> Better would be something like the following, which uses an IMAP-like 
> mechanism to carry capabilities in responses, and flushes MODE READER:
> 
> 	S: 200 [STARTTLS] NNTP server, negotiate TLS now

I'm still thinking on this. As I said before, it isn't compatible with NNTP
as currently specified but that's not irretrievable.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Tue Nov  2 08:00:51 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  2 08:00:08 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041102154019.GO34826@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<416FCD30.40906@oceana.com>
	<20041102113630.GE34826@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411020723530.15535@shiva0.cac.washington.edu>
	<20041102154019.GO34826@finch-staff-1.thus.net>
Message-ID: <4187AF33.70901@oceana.com>

Clive D.W. Feather wrote:

> Mark Crispin said:
> 
>>>I'd still like to hear from client authors here.
>>
>>I am an NNTP client author, *not* an NNTP server author.
> 
> 
> Um, yes. But Ken (I think) was saying you're the only one.

Yes, I was pointing out that he was the only client author that we've 
heard from.  This is actually disconcerting that with all of the NNTP 
clients out there (it seems everyone has their own favorite) that only 
one has chosen to take part in this list (although somewhat late).

I don't know if this is because they don't know that work is being done 
to update NNTP, they became frustrated with past work and stopped paying 
attention (which is where Mark was for a while), or they just don't care.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Tue Nov  2 08:39:14 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  2 08:38:23 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041102153716.GN34826@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
Message-ID: <4187B832.2070006@oceana.com>

Clive D.W. Feather wrote:

> Two things. Firstly, I want the number separate from the pseudo
> extension-label, to make it clear that it is a number and not an arbitrary
> string. Whether it's "_RFC_ 3977" or "_NNTP_ 2" is secondary.

Ah, OK.  I didn't notice the space.  I'm not sure I like it, but I'm not 
going to make a big deal of it.

The main point is that we need a way to specify the core functionality 
and behavior to the client.  I *think* we are all in agreement on this 
point.


> Case 3: a new specification is not upwards compatible for whatever reason.

Hopefully case 3 is never allowed to happen without *very* good reason, 
but discussing it OK.


> Approach C is my preference and matches (e.g.) HTTP. I only suggested an
> alternative because people choked on the major.minor idea previously.

A and C seem to be functionally identical to me and just differ in the 
syntax.  I could live with either.  FWIW, A is similar to IMAP.  IMAP 
has both "IMAP4" and "IMAP4bis" capabilities.


> These are features of the core protocol, not extensions. Therefore, in my
> opinion, they belong with the support information for the core extension.
> Note how we have "OVER MSGID" rather than separate "OVER" and "OVER-MSGID"
> capabilities.

Agreed, since they are not extensions they do belong as arguments to the 
NNTP version capability.  My main point was that we should enumerate the 
optional LIST commands.


> Nor do I. I have no objection to splitting them; I'm just getting chary of
> making complex-looking proposals (even when they're actually conceptually
> simple).

Sorry, didn't mean to scare you off.  ;)

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Tue Nov  2 11:51:42 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  2 11:50:53 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041102153716.GN34826@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
Message-ID: <4187E54E.5030805@oceana.com>

Clive D.W. Feather wrote:

> Um, I'm not going to swear there's no other significant options that are
> worth noting here. Can anyone think of any?

I was just scanning nntp-24 and noticed that LIST OVERVIEW.FMT is listed 
as optional.  This seems somewhat questionable to me.  If the server 
advertises support for OVER, what shouldn't it support LIST 
OVERVIEW.FMT?  If the answer is because some legacy implementations 
don't support it, my response is who cares?  OVER is new and we can and 
should be able to enforce support for LIST OVERVIEW.FMT.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Tue Nov  2 12:16:11 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  2 12:16:20 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <4187E54E.5030805@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<4187E54E.5030805@oceana.com>
Message-ID: <20041102201611.GB96632@finch-staff-1.thus.net>

Ken Murchison said:
> I was just scanning nntp-24 and noticed that LIST OVERVIEW.FMT is listed 
> as optional.

Yes, but it's part of the OVER extension which is why I left it out of my
previous messages.

> This seems somewhat questionable to me.  If the server 
> advertises support for OVER, what shouldn't it support LIST 
> OVERVIEW.FMT?  If the answer is because some legacy implementations 
> don't support it, my response is who cares?  OVER is new and we can and 
> should be able to enforce support for LIST OVERVIEW.FMT.

Fine with me, but we need rough consensus on the list.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Tue Nov  2 12:49:22 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  2 12:48:31 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <20041102154424.GP34826@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>	<20041015085218.GA86186@finch-staff-1.thus.net>	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>	<20041018094755.GH31499@finch-staff-1.thus.net>	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
Message-ID: <4187F2D2.8010500@oceana.com>

Clive D.W. Feather wrote:

> Mark Crispin said:
> 
>>Better would be something like the following, which uses an IMAP-like 
>>mechanism to carry capabilities in responses, and flushes MODE READER:
>>
>>	S: 200 [STARTTLS] NNTP server, negotiate TLS now
> 
> 
> I'm still thinking on this. As I said before, it isn't compatible with NNTP
> as currently specified but that's not irretrievable.

I'm not sure why this would be incompatible.  Obviously the ABNF would 
have to change to accomodate this, but from a client perspective it 
wouldn't be a big deal.  For a client which handles this, it parses the 
contents of "[ ... ]", otherwise, it looks just like trailing-comment.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Tue Nov  2 14:36:24 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  2 15:15:16 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <4187F2D2.8010500@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
Message-ID: <20041102223624.GC96632@finch-staff-1.thus.net>

Ken Murchison said:
>>>	S: 200 [STARTTLS] NNTP server, negotiate TLS now

>> I'm still thinking on this. As I said before, it isn't compatible with NNTP
>> as currently specified but that's not irretrievable.
> 
> I'm not sure why this would be incompatible.  Obviously the ABNF would 
> have to change to accomodate this, but from a client perspective it 
> wouldn't be a big deal.  For a client which handles this, it parses the 
> contents of "[ ... ]", otherwise, it looks just like trailing-comment.

The problem is the other way round: a conforming RFC 977 server can already
produce such responses with meaningless contents.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Wed Nov  3 08:44:15 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Nov  3 08:43:20 2004
Subject: [NNTP] Proposed changes to draft-ietf-nntpext-authinfo-05
Message-ID: <41890ADF.60506@oceana.com>

Changes from Previous Version:

   Changed:
   o  Changed reference to IANA requirements in [NNTP] from Section 8 to
      Section 8.1.

   Clarified:
   o  Rewrote the LIST EXTENSIONS after security layer text yet again.



Relevant text diff:

  After a successful authentication, the client MUST NOT issue another
-AUTHINFO command in the same session and a server MUST reject any
-further AUTHINFO commands with a 502 response.  The client SHOULD send
-a LIST EXTENSIONS command as the first command after a successful
-authentication.
+AUTHINFO command in the same session.  In agreement with [SASL], if a
+security layer is established as part of the authentication, the
+server MUST continue to advertise the AUTHINFO extension label in
+response to a LIST EXTENSIONS command with the same arguments as
+before authentication (thereby enabling the client to detect a
+possible active down-negotiation attack).  Otherwise, the server MUST
+NOT return the AUTHINFO extension label in response to a LIST
+EXTENSIONS command.  In either case, the server MUST reject any
+subsequent AUTHINFO commands with a 502 response.

  The extensions returned in response to a LIST EXTENSIONS command
  received after authentication MAY be different that the list returned
  before authentication.  For example an NNTP server may not want to
  advertise support for a specific extension unless a client has been
  authenticated.
-
-A server MUST NOT return the AUTHINFO extension label in response to a
-LIST EXTENSIONS command received after authentication (since no
-further AUTHINFO commands may be issued), unless a SASL security layer
-was negotiated as part of the authentication.  Per [SASL], if a security
-layer has been established the server MUST continue to advertise the
-AUTHINFO extension label with the same arguments as before
-authentication so that the client may be able to detect a possible
-active down-negotiation attack (note that clients still MUST NOT issue
-further AUTHINFO commands).

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Wed Nov  3 08:47:56 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Nov  3 08:47:01 2004
Subject: [NNTP] Proposed changes to draft-ietf-nntpext-tls-nntp-03
Message-ID: <41890BBC.9030900@oceana.com>

Changes from Previous Version:

   Changed:
   o  Neither 480 nor 483 are valid responses to STARTTLS.
   o  Removed requirement that the client SHOULD send a LIST EXTENSIONS
      immediately after a successful TLS.
   o  Changed reference to IANA requirements in [NNTP] from Section 8 to
      Section 8.1.

   Clarified:
   o  If the server doesn't like the results of TLS, it only sends 483
      response to restricted NNTP commands (e.g. QUIT, HELP, LIST
      EXTENSIONS are excluded).


Relevent text diff:

@@ -219,7 +213,7 @@
  STARTTLS is not a valid command (see section 2.2.2.2).
  .IP
  NOTE: Notwithstanding section 3.2.1 of [NNTP], the server MUST NOT return
-483 in response to STARTTLS.
+either 480 or 483 in response to STARTTLS.
  .LP
  2.2.2. Description
  .IP
@@ -233,8 +227,8 @@
  a connection with these properties.  The client MAY therefore send
  STARTTLS after receiving a 483 response; the client also MAY decide to
  send STARTTLS without previously receiving a 483 response.
-Additionally, the server MUST NOT return 483 in response to the
-STARTTLS command.
+Additionally, the server MUST NOT return either 480 or 483 in response
+to the STARTTLS command.

  If the server is unable to initiate the TLS negotiation for any reason
  (e.g. a server configuration or resource problem), the server MUST
@@ -289,8 +283,8 @@
  is not high enough for it to continue, it SHOULD issue a QUIT command
  immediately after the TLS negotiation is complete.  If the NNTP server
  decides that the level of authentication or privacy is not high enough
-for it to continue, it SHOULD either reject further NNTP commands from
-the client (other than a QUIT command) with a 483 response code
+for it to continue, it SHOULD either reject subsequent restricted NNTP
+commands from the client with a 483 response code
  (possibly with a text string such as "Command refused due to lack of
  security"), or reject a command with a 400 response code (possibly
  with a text string such as "Connection closing due to lack of
@@ -330,8 +324,7 @@
  and article number, that was not obtained from the TLS negotiation
  itself.  The client MUST discard any knowledge obtained from the server,
  such as the list of NNTP service extensions, which was not obtained from
-the TLS negotiation itself.  The client SHOULD send a LIST EXTENSIONS
-command as the first command after a successful TLS negotiation.
+the TLS negotiation itself.

  The extensions returned in response to a LIST EXTENSIONS command
  received after the TLS handshake MAY be different than the list returned
@@ -391,7 +384,8 @@
  Example of a failed attempt to negotiate TLS, followed by two attempts
  at selecting groups only available under a security layer (in the
  first case the server allows the session to continue, in the second it
-closes the connection):
+closes the connection).  Note that unrestricted commands such as LIST
+EXTENSIONS are unaffected by the failure:
  .IP
  .in 8
  .nf
@@ -399,6 +393,11 @@
  [S] 382 Continue with TLS negotiation
  [TLS negotiation is attempted here]
  [Following failed negotiation, traffic resumes without TLS]
+[C] LIST EXTENSIONS
+[S] 202 Extensions supported:
+[S] STARTTLS
+[S] OVER
+[S] .
  [C] GROUP local.confidential
  [S] 483 Encryption or stronger authentication required
  [C] GROUP local.private

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Wed Nov  3 08:55:23 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Nov  3 08:54:30 2004
Subject: [NNTP] Proposed changes to draft-ietf-nntpext-streaming-02
Message-ID: <41890D7B.4010707@oceana.com>

Changes from Previous Version:

   New:
   o  Added "Command Continuation" section.

   Changed:
   o  Replaced uses of "asynchronous" with "pipelined".
   o  Wording used in MODE STREAM examples.
   o  Removed (ill-advised) 432 response code as a temporary failure for
      TAKETHIS.  Replaced with discussion of 400 response for temporary
      failure.
   o  Changed reference to IANA requirements in [NNTP] from Section 8 to
      Section 8.1.


Outstanding issue:

    o Do we want to add any discussion of the server issuing a 400 (or
      maybe a 403) response to TAKETHIS?


Relevant text diff:

@@ -224,7 +208,7 @@
  .fi
  .LP
  .ne 4
-2.2. Asynschronous Article Transfer
+2.2. Pipelined Article Transfer
  .IP
  The STREAMING extension provides the same functionality as the IHAVE
  command ([NNTP] section 6.3.2) but splits the query and transfer
@@ -297,16 +281,16 @@
  .ne 4
  2.3.3. Examples
  .IP
-Example of a client requesting the ability to stream articles from a
-server which does not support this extension:
+Example of a client checking the ability to stream articles on a
+legacy server which does not support this extension:
  .in 8
  .nf
  [C] MODE STREAM
  [S] 501 Unknown MODE variant
  .fi
  .IP
-Example of a client successfully requesting the ability to stream
-articles:
+Example of a client checking the ability to stream articles on a
+legacy server which supports this extension:
  .in 8
  .nf
  [C] MODE STREAM
@@ -399,7 +383,6 @@
  .in 8
  .nf
  239 message-id   Article transferred OK
-432 message-id   Transfer failed; try again later
  439 message-id   Transfer rejected; do not retry
  .fi
  .IP
@@ -409,7 +392,7 @@
  message-id = Article message-id
  .fi
  .IP
-The first parameter of the 239, 432, and 439 responses MUST be the
+The first parameter of the 239 and 439 responses MUST be the
  message-id provided by the client as the parameter to TAKETHIS.
  .LP
  2.5.2. Description
@@ -423,9 +406,8 @@
  a line indicates the end of the text, and lines starting with a dot
  in the original text have that dot doubled during transmission.  The
  server MUST return either a 239 response, indicating that the article
-was successfully transferred, a 432 response, indicating that the
-transfer failed but should be tried again later, or a 439 response,
-indicating that the article was rejected.
+was successfully transferred or a 439 response, indicating that the
+article was rejected.

  This function differs from the POST command in that it is intended for
  use in transferring already-posted articles between hosts.  It SHOULD
@@ -444,7 +426,8 @@
  The client SHOULD NOT assume that the article has been successfully
  transferred unless it receives an affirmative response from the
  server.  A lack of response (such as a dropped network connection or a
-network timeout) SHOULD be treated the same as a 432 response.
+network timeout) or a 400 response SHOULD be treated as a temporary
+failure and cause the transfer to be tried again later if possible.

  Because some news server software may not be able immediately to
  determine whether or not an article is suitable for posting or
@@ -500,7 +483,8 @@
  [C]
  [C] This is just a test article.
  [C] .
-[S] 432 <i.am.an.article.you.will.want@example.com>
+[S] 400 Service temporarily unavailable
+[Server closes connection.]
  .fi
  .LP
  .ne 4
@@ -525,7 +509,19 @@
  takethis-command    = "TAKETHIS" WS message-id
  .fi
  .LP
-3.2. LIST EXTENSIONS responses
+3.2. Command Continuation
+.IP
+.nh
+This syntax extends the non-terminal "command-continuation", which
+represents the further material sent by the client in the case of
+multi-stage commands.
+.IP
+.nf
+command-continuation =/ takethis-continuation
+takethis-continuation = encoded-article
+.fi
+.LP
+3.3. LIST EXTENSIONS responses
  .IP
  This syntax defines the specific LIST EXTENSIONS responses for the
  STREAMING extension.
@@ -569,13 +565,6 @@
  Meaning: transfer not possible; try again later.
  .fi
  .IP
-Response code 432
-.in 8
-.nf
-Generated by: TAKETHIS
-Meaning: transfer failed; try again later.
-.fi
-.IP
  Response code 438
  .in 8
  .nf
@@ -600,11 +589,11 @@
  6. IANA Considerations
  .IP
  This section gives a formal definition of the STREAMING extension as
-required by Section 8 of [NNTP] for the IANA registry.
+required by Section 8.1 of [NNTP] for the IANA registry.

  .in 8
  .ti 5
-o  The STREAMING extension provides for asynchronous transfer of
+o  The STREAMING extension provides for pipelined transfer of
  articles.

  .ti 5


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Tue Nov  2 07:24:33 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov  3 15:39:06 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041102113630.GE34826@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<416FCD30.40906@oceana.com>
	<20041102113630.GE34826@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0411020723530.15535@shiva0.cac.washington.edu>

On Tue, 2 Nov 2004, Clive D.W. Feather wrote:
>>> But I'd certainly like to encourage extensions to indicate both what is
>>> available and what is currently-unavailable, rather than just the former.
>>> And this is something that I'd like to see even if we don't adopt this
>>> STATUS proposal.
>> I don't see why this is necessary.  We really need client authors to
>> weigh in here.  We, as server authors shouldn't be deciding what's good
>> for clients in a vacuum.
> I'd still like to hear from client authors here.

I am an NNTP client author, *not* an NNTP server author.

I agree with Ken Murchison.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From mrc at CAC.Washington.EDU  Tue Nov  2 07:56:18 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov  3 15:39:07 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041102154019.GO34826@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<416FCD30.40906@oceana.com>
	<20041102113630.GE34826@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411020723530.15535@shiva0.cac.washington.edu>
	<20041102154019.GO34826@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0411020754580.16217@shiva0.cac.washington.edu>

On Tue, 2 Nov 2004, Clive D.W. Feather wrote:
> So you don't want a "this could be available", only "this is available
> right now"? Just want to be clear I'm understanding you.

Yes.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Tue Nov  2 15:31:10 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov  3 15:39:07 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <20041102223624.GC96632@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
	<20041102223624.GC96632@finch-staff-1.thus.net>
Message-ID: <Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 2 Nov 2004, Clive D.W. Feather wrote:
> The problem is the other way round: a conforming RFC 977 server can already
> produce such responses with meaningless contents.

It is not, however, particularly likely that an RFC 977 is going to 
produce such a response which contains the "NNTPv2" capability.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From clive at demon.net  Wed Nov  3 21:17:01 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov  3 21:17:05 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
Message-ID: <20041104051701.GA2000@finch-staff-1.thus.net>

Mark Crispin said:
> That would require me to read the document in full, which unfortunately I 
> haven't.  I'm just bewildered why a relatively small protocol such as NNTP 
> has a document that is almost as large as IMAP which is a much larger and 
> more complex protocol.

I've done a brief analysis of my current text (draft 25 in waiting).

There are 107 pages and 5992 lines (of which 4087 are substantive).
The breakdown of pages is:
  4  Abstract and bumf
  3  Table of contents
 16  Introduction, notation, concepts, wildmats
 39  The 22 core commands (including "initial connection")
 19  Extensions, both concepts and the three we've bundled in [*]
  8  ABNF syntax
  7  IANA and security considerations, acknowledgements
  1  References
 10  Appendices:
      1  Future directions
      3  Interaction with other specifications
      4  Summary of response codes
      2  Formal specification of extensions

[*] 2 and a bit pages of concepts, just under 17 pages of bundled

I then stripped all the examples out of the text. This lost 25 pages:
   2 from the concepts section
  16 from the core commands
   6 from the extensions
plus one more because the TOC now just fits on two pages.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From andrew at supernews.net  Thu Nov  4 03:06:44 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov  4 03:07:02 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Mon, 18 Oct 2004 14:49:37 -0700 (Pacific Daylight
	Time)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <E1CPfSG-0002L3-5f@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <MRC@CAC.Washington.EDU> writes:

 >> As far as MODE READER is concerned, I personally agree with
 >> you. However, server implementers will tell you otherwise. If you
 >> want to argue for this change, please do so and let's see what
 >> happens.

 Mark> It certainly can be argued that this is a server internal
 Mark> detail which should not burden the protocol.  It also adds an
 Mark> additional RTT (6 by my count).  Consider the normal startup
 Mark> situation:

 [long exchange of commands]

OK, it occurs to me that we can simplify that a lot by allowing the
LIST EXTENSIONS output to indicate one of three explicit conditions:

1) that MODE READER isn't necessary (which will be a very common case)
2) that MODE READER really is necessary (but might fail)
3) that MODE READER isn't possible, and nor are any reader commands (which
will be true for transit servers with no reader support at all, or where
the connecting IP can never obtain reader access)

with the absence of any of the above indications, the existing rule
applies (that the server is allowed to reject reader commands if MODE
READER is not issued first).

In existing practice, ignoring the above proposal, it's actually not
unreasonable for clients to do MODE READER before the first LIST
EXTENSIONS, since the MODE READER shouldn't get a 480 response (and
if it does, you can do LIST EXTENSIONS then before authenticating).
But the spec certainly doesn't lead an implementor to do it that way.

Other issues:

 - the client doesn't have to do LIST EXTENSIONS before STARTTLS if it
   wants to initiate TLS on its own initiative rather than at the
   server's request.

 - if the client doesn't want to initiate TLS but the server wants to
   force it to do so, your suggested exchange doesn't make any sense.
   (It's important that servers not encourage clients to initiate TLS
   unnecessarily, since that leads to overhead that can only be avoided
   by disabling TLS altogether.)

 Mark> Better would be something like the following, which uses an
 Mark> IMAP-like mechanism to carry capabilities in responses, and
 Mark> flushes MODE READER:

There are two fundamental objections to that. First is that you're
assigning semantics to fields which in the deployed specification are
explicitly designated as containing arbitrary non-semantic text. The
second is that you can't just handwave MODE READER out of existence;
if you make it impossible to conform to the spec, then people will
just not bother conforming to the spec and will stick with the
established practice.

-- 
Andrew, Supernews
http://www.supernews.com

From clive at demon.net  Thu Nov  4 07:13:05 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov  4 07:13:19 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPfSG-0002L3-5f@trinity.supernews.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
Message-ID: <20041104151304.GK42341@finch-staff-1.thus.net>

Andrew - Supernews said:
> OK, it occurs to me that we can simplify that a lot by allowing the
> LIST EXTENSIONS output to indicate one of three explicit conditions:
> 
> 1) that MODE READER isn't necessary (which will be a very common case)
> 2) that MODE READER really is necessary (but might fail)
> 3) that MODE READER isn't possible, and nor are any reader commands (which
> will be true for transit servers with no reader support at all, or where
> the connecting IP can never obtain reader access)

What you mean by 3 is "MODE READER will fail with 502", right? Number 2
means that reading commands can fail "401 MODE-READER" while number 1
means they won't.

> with the absence of any of the above indications, the existing rule
> applies (that the server is allowed to reject reader commands if MODE
> READER is not issued first).

Um, let's do it right: the server will be required to include this
information in the LIST EXTENSIONS response.

>  Mark> Better would be something like the following, which uses an
>  Mark> IMAP-like mechanism to carry capabilities in responses, and
>  Mark> flushes MODE READER:
> 
> There are two fundamental objections to that. First is that you're
> assigning semantics to fields which in the deployed specification are
> explicitly designated as containing arbitrary non-semantic text.

Right: even if it's unlikely in practice, that is not a foundation to build
a standard on.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Thu Nov  4 08:16:03 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov  4 08:16:32 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
	<20041102223624.GC96632@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <20041104161603.GL42341@finch-staff-1.thus.net>

Mark Crispin said:
>> The problem is the other way round: a conforming RFC 977 server can already
>> produce such responses with meaningless contents.
> It is not, however, particularly likely that an RFC 977 is going to 
> produce such a response which contains the "NNTPv2" capability.

It doesn't matter; you can't rely on it. That's building on sand, not
drawing a line in it :-)

There's also the problem that response lines are limited in length and
there may not be room for the message as well as the existing response.

====

I've done some thinking about this and come to some conclusions.

What you're talking about is a specific use of what I would call
"asynchronous messages" - messages not in immediate response to a command.
IIRC, IMAP has these as a general possibility, as does (in a different
area) the X11 protocol.

Our existing response code model doesn't have anywhere to insert
asynchronous messages from the server. It can't go in the free text area
for the reasons given above, so it needs to go somewhere else. For example,
a response line beginning "!" could indicate an asynchronous message (I
thought of using a response code range like 7xx, but it doesn't work well).
However, if we start sending these to existing clients they will get very
very confused.  This means that the client needs to explicitly indicate
that it is willing to receive these messages.

At which point I realize that we're talking about an extension to the
protocol which can be specified just like any other extension. So we don't
have to include it in the core document and we don't even have to agree it
right now. That means we don't need to let it affect the present work.

====

Having said that, and purely as a proof of concept, I'll sketch out such an
extension to show that it does what you want. I'll call it "EVENTS", having
pinched the name from X11.

If the extension is supported, LIST EXTENSIONS reports it as EVENTS
followed by one or more keywords indicating the event types available.
The initial set is:
  EXTENSIONS - report changes to the available set of extensions since
               the last LIST EXTENSIONS in this session.
  GROUPSIZE  - report a change in the low and/or high water marks of the
               current group.
  TELLUSER   - the server wishes the user to be informed of something.

A client indicates its willingness to receive events by issuing the EVENTS
command followed by the set of events it wants. "*" indicates all events;
an empty argument list cancels all previous requests. Response codes:
  206 - request successful
  503 - unsupported event type

An event is indicated by a response line beginning "!", instead of a three
digit response code, at *any* place where the server can send a response
(including both places in two-stage commands). A single-line event begins
with "! ", while a multi-line one begins "!. " and is dot-stuffed and
-terminated. The event is followed by another event (without limit) or
the actual response.

Initial list of events:

EXTENSIONS events. In the following, the "current extensions knowledge"
is the server's understanding of what the client knows about the available
extensions. This is an empty set at connection setup, and is set to the
response whenever a LIST EXTENSIONS command is successfully issued.

!. EXTENSIONS !
    The current extensions knowledge is replaced by the following material.
    This MUST be used after successful authentication or security level
    changes and whenever the server knows that the knowledge is wrong; this
    implies it will occur as part of the response to an EVENTS command if
    no LIST EXTENSIONS has been issued.

!. EXTENSIONS +
    The following material is added to the current extensions knowledge.

!. EXTENSIONS -
    The following material is removed from the current extensions knowledge.

GROUPSIZE events:

! GROUPSIZE number low high group
    If a GROUP command were issued with the name of the current group, the
    server would return a 211 response with these parameters.

TELLUSER events:

! TELLUSER text
    The server wishes the user to be informed of the contents of the text
    without delay.

Example:

    [C] EVENTS GROUPSIZE
    [S] 206
    [C] GROUP local.group
    [S] 211 5 100 107 local.group selected
    [C] STAT 107
    [S] 223 107 <a.message@id> selected
    [C] NEXT
    [S] 421 no next article
    [C] LAST
    [S] 223 106 <another@message.id> selected
    [C] NEXT
    [S] ! GROUPSIZE 6 100 108 local.group
    [S] 223 107 <a.message@id> selected
    [C] NEXT
    [S] 223 108 <new.message@id> selected

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Thu Nov  4 09:00:51 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov  4 09:09:04 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <4187B832.2070006@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<4187B832.2070006@oceana.com>
Message-ID: <20041104170051.GN42341@finch-staff-1.thus.net>

Ken Murchison said:
> The main point is that we need a way to specify the core functionality 
> and behavior to the client.  I *think* we are all in agreement on this 
> point.

Indeed (well, I agree).

>> Case 3: a new specification is not upwards compatible for whatever reason.
> Hopefully case 3 is never allowed to happen without *very* good reason, 
> but discussing it OK.

We need to think about it, otherwise we risk being hit over the head later
when it happens. Look how OVER is incompatible with the old XOVER, and some
of the similar debates of the past.

>> Approach C is my preference and matches (e.g.) HTTP. I only suggested an
>> alternative because people choked on the major.minor idea previously.
> A and C seem to be functionally identical to me and just differ in the 
> syntax.

In A, case 2, the client needs to know that 4321 exists and is upwards
compatible; otherwise it will barf when it meets a 4321 server. In C, a
2.0 client automatically knows that 2.1 is upwards compatible.

*B* and C are functionally equivalent - the server indicates all the client
versions it can work with and the client needs to know only its own
version. B does it explicitly, while C does it implicitly.

Let me present it another way. Let's suppose that we have RFC 3977, a
compatible update in 4321, and an incompatible one in 5555. There are
three types of server, which issue responses:

  Server type:       3977            4321            5555
                   ---------------------------------------
  Approach A         3977            4321            5555
  Approach B         3977            3977 4321       5555
  Approach C         2.0             2.1             3.0

There are *four* types of client:
  (P) 3977 that doesn't know 4321 exists ) this distinction only
  (Q) 3977 that *does*  know 4321 exists ) matters in approach A
  (R) 4321
  (S) 5555

When they meet, we get:

  Server type:       3977            4321            5555
                   ---------------------------------------
  Client type P:     works          [1][3]             reject
  Client type Q:     works          [2][3]             reject
  Client type R:      [4]            works           reject
  Client type S:    reject          reject           works

[1] Reject in approach A, because 3977 != 4321.
[2] Works in approach A because the client knows that 4321 encompasses
    3977 as a subset.
[3] Works in approach B because server response includes 3977; works in
    approach C because 2.1 >= 2.0 but indicates compatibility.
[4] Works in approaches A and B because the client knows 3977 was a subset
    of 4321; works in approach C because 2.0 indicates compatibility. In
    both cases the client needs to know which features to avoid.

> My main point was that we should enumerate the 
> optional LIST commands.

Agreed (again).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Thu Nov  4 09:15:16 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov  4 09:25:05 2004
Subject: [NNTP] SASL error code
Message-ID: <20041104171516.GO42341@finch-staff-1.thus.net>

Surely the error code for a bad/unsupported mechanism in AUTHINFO SASL
should be 503 (feature not supported) and not 501 (syntax error). Note that
[NNTP] says for the former: "... or only handles a subset of legitimate
cases ...".

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From mrc at CAC.Washington.EDU  Thu Nov  4 09:27:25 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 09:27:29 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPfSG-0002L3-5f@trinity.supernews.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
Message-ID: <Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Andrew - Supernews wrote:
> OK, it occurs to me that we can simplify that a lot by allowing the
> LIST EXTENSIONS output to indicate one of three explicit conditions:
> 1) that MODE READER isn't necessary (which will be a very common case)
> 2) that MODE READER really is necessary (but might fail)
> 3) that MODE READER isn't possible, and nor are any reader commands (which
> will be true for transit servers with no reader support at all, or where
> the connecting IP can never obtain reader access)

This is a good idea.

> In existing practice, ignoring the above proposal, it's actually not
> unreasonable for clients to do MODE READER before the first LIST
> EXTENSIONS, since the MODE READER shouldn't get a 480 response (and
> if it does, you can do LIST EXTENSIONS then before authenticating).
> But the spec certainly doesn't lead an implementor to do it that way.

Sigh.  Once again, we fall into the trap of talking about how to work 
around existing warts, rather than moving forward.

> - the client doesn't have to do LIST EXTENSIONS before STARTTLS if it
>   wants to initiate TLS on its own initiative rather than at the
>   server's request.

No!!!  The client must know that the server supports a non-mandatory 
command before issuing it.  That is the entire point of a capability 
announcement mechanism.

Please expunge this notion of "just try the command and see if it works." 
It is *extremely* harmful to a protocol to have a mixed mode of capability 
announcement and "just try."

> - if the client doesn't want to initiate TLS but the server wants to
>   force it to do so, your suggested exchange doesn't make any sense.

In all protocols, a server forces TLS by requiring authentication and not 
advertising any authentication mechanisms until TLS is in force.

In all protocols with the exception of NNTP, TLS is forced unless the 
server has an authentication mechanism that does not exchange passwords in 
the clear.  Even then, it is advisable to use TLS since it is absolutely 
trivial to hijack sessions.

>   (It's important that servers not encourage clients to initiate TLS
>   unnecessarily, since that leads to overhead that can only be avoided
>   by disabling TLS altogether.)

TLS is here.  TLS is mandatory.  We need to live with it.

Statements to the effect of "security isn't as important in this protocol" 
are going to be met with very harsh responses from people who have fought 
this battle many times before.

Yes, indeed, this battle has been fought many times before; your argument 
has been advanced many times before; and it's been thoroughly crushed many 
times before.  Hard feelings have very commonly resulted.

It would be a benefit for all of our blood pressures if we can learn the 
lessons from the past, decide not to fight this battle, and accept the 
outcome from this battle in every other protocol.

> There are two fundamental objections to that. First is that you're
> assigning semantics to fields which in the deployed specification are
> explicitly designated as containing arbitrary non-semantic text.

There is ample precedent in other protocols: MIME and IMAP have both done 
it, and quite successfully.

Removal of extraneous RTTs is always a good thing.

> The
> second is that you can't just handwave MODE READER out of existence;
> if you make it impossible to conform to the spec, then people will
> just not bother conforming to the spec and will stick with the
> established practice.

Is it really just one server, inn, that has this issue?

It certainly is not "impossible to conform to the spec"; and adding an 
unnecessary RTT to every NNTP interchange for the benefit of a single 
server implementation is an extremely poor idea.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From mrc at CAC.Washington.EDU  Thu Nov  4 09:34:39 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 09:34:43 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041104151304.GK42341@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Clive D.W. Feather wrote:
>> with the absence of any of the above indications, the existing rule
>> applies (that the server is allowed to reject reader commands if MODE
>> READER is not issued first).
> Um, let's do it right: the server will be required to include this
> information in the LIST EXTENSIONS response.

Yes.  If MODE READER is required, there should be an extension that 
indicates that fact (or an extension to indicate that MODE READER is not 
required -- I don't care).

The cases then degenerate into:

1) MODE READER isn't required
2) MODE READER is required, but you must authenticate before you can do
    any reading.  The extension for MODE READER is not listed until after
    authentication.
3) MODE READER is required, and authentication is not required before you
    can do any reading.  The extension for MODE READER is listed.

>> There are two fundamental objections to that. First is that you're
>> assigning semantics to fields which in the deployed specification are
>> explicitly designated as containing arbitrary non-semantic text.
> Right: even if it's unlikely in practice, that is not a foundation to build
> a standard on.

Why?  MIME did it.  IMAP did it.

These are standards which are arguably quite a bit technically superior 
to, and much less messy than, NNTP.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From mrc at CAC.Washington.EDU  Thu Nov  4 09:50:15 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 09:50:19 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <20041104161603.GL42341@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
	<20041102223624.GC96632@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>
	<20041104161603.GL42341@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0411040935100.17595@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Clive D.W. Feather wrote:
>>> The problem is the other way round: a conforming RFC 977 server can already
>>> produce such responses with meaningless contents.
>> It is not, however, particularly likely that an RFC 977 is going to
>> produce such a response which contains the "NNTPv2" capability.
> It doesn't matter; you can't rely on it. That's building on sand, not
> drawing a line in it :-)

Sometimes you have to make compromises in order to accomplish a desirable 
result.  The elimination of several RTTs is a highly desirable result.

I know that I'm sounding like a broken record, but both MIME and IMAP 
exist as precedents.  I know because I was personally involved in both; 
and in both cases there were objections much as you have raised.

Nevertheless, the predicted problems never came to pass.

Actually, now that I think about it, SMTP has *also* done this!!!!!!!

> There's also the problem that response lines are limited in length and
> there may not be room for the message as well as the existing response.

That, now, is a real issue.

However, I note that the the response line limit is 512 octets.  This is 
enough for the existing set of extensions, although I would recommend a 
larger limit.

A way that this could be gotten around may be to restrict the 
auto-announced extensions to a certain set which are meaningful for 
session startup; that is, the extensions for TLS, authentication, and 
(sigh) MODE READER.  So, the client still has to do a single LIST 
EXTENSIONS when it's actually ready to do actual reading.  That's one 
addtional RTT, which is still better than the status quo.

> What you're talking about is a specific use of what I would call
> "asynchronous messages" - messages not in immediate response to a command.

No.  It's piggy-backing additional status information on an existing 
synchronous response.  Both IMAP and SMTP does this.  SMTP has no 
"asynchronous messages".

> Our existing response code model doesn't have anywhere to insert
> asynchronous messages from the server. It can't go in the free text area
> for the reasons given above, so it needs to go somewhere else.

What is so special about NNTP that it can not do exactly what IMAP and 
SMTP did?

Both IMAP and SMTP have piggy-backing, and both did it on what was 
previously a free-text area.

I repeat: what is so special about NNTP?!?!

> Having said that, and purely as a proof of concept, I'll sketch out such an
> extension to show that it does what you want. I'll call it "EVENTS", having
> pinched the name from X11.

If you're going to add what IMAP calls "unsolicited data" to NNTP, then 
you have a l-o-n-g way to go.  Don't forget that I've been in that 
business with IMAP for nearly 20 years.

At that point, the question becomes "why not flush NNTP in favor of IMAP."

Fortunately, you don't need unsolicted data.  You just need piggybacking.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ma at dt.e-technik.uni-dortmund.de  Thu Nov  4 08:50:31 2004
From: ma at dt.e-technik.uni-dortmund.de (Matthias Andree)
Date: Thu Nov  4 10:11:49 2004
Subject: [NNTP] MODE READER
In-Reply-To: <20041018094755.GH31499@finch-staff-1.thus.net> (Clive
	D. W. Feather's message of "Mon, 18 Oct 2004 10:47:55 +0100")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
Message-ID: <m33bzpimnc.fsf@merlin.emma.line.org>

"Clive D.W. Feather" <clive@demon.net> writes:

> As far as MODE READER is concerned, I personally agree with you. However,
> server implementers will tell you otherwise. If you want to argue for this
> change, please do so and let's see what happens.

I am a server implementor (leafnode) and can state that "mode reader" is
a no-op, printing 200, not switching state, in my software, but leafnode
is best described as store-and-forward proxy in its current shape, so it
won't stack up to INN (I don't care for what INN implementors might
think until I've read it), DNews or Diablo.

MODE READER to me has been the means that told INN to exec NNRPD... and
this documents there appears to be a desire to distinguish streamlined
transport facilities (within innd) from more expensive and colorful
reader facilities (within nnrpd).

NNTP is, in this respect, different from mail, for instance, which has
separate protocols for transport (SMTP, UUCP) and retrieval (POP3, IMAP,
ETRN, ODMR, perhaps something else I forgot).

I don't have strong opinions either way, on one hand the startup
overhead is considerable, on the other hand we have a lot more mode
switching around, STARTTLS the most prominent in this thread albeit in
different context, so if thinking this to the very end, the first step
would be to drop STARTTLS and other obvious mode switching, and the
second step would be to drop the hidden mode switching, such as
statefulness of GROUP command, which switches from the mode/state
"cannot retrieve by article number" into "can switch by article number".

So let's please do away with mode selection arguments.

-- 
Matthias Andree
From andrew at supernews.net  Thu Nov  4 10:36:21 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov  4 10:36:37 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Thu, 4 Nov 2004 09:27:25 -0800 (PST)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
Message-ID: <E1CPmTM-0009oU-Gu@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <mrc@CAC.Washington.EDU> writes:

 >> - the client doesn't have to do LIST EXTENSIONS before STARTTLS if
 >> it wants to initiate TLS on its own initiative rather than at the
 >> server's request.

 Mark> No!!!  The client must know that the server supports a
 Mark> non-mandatory command before issuing it.  That is the entire
 Mark> point of a capability announcement mechanism.

 Mark> Please expunge this notion of "just try the command and see if
 Mark> it works." It is *extremely* harmful to a protocol to have a
 Mark> mixed mode of capability announcement and "just try."

I can see we're not going to agree on this.

 >> - if the client doesn't want to initiate TLS but the server wants
 >> to force it to do so, your suggested exchange doesn't make any
 >> sense.

 Mark> In all protocols, a server forces TLS by requiring
 Mark> authentication and not advertising any authentication
 Mark> mechanisms until TLS is in force.

It's very common with NNTP to not require authentication at all.
That's why we have a response code specifically saying "you can't do
that without starting TLS first" in addition to the one that says "you
can't do that without authenticating".

 Mark> In all protocols with the exception of NNTP, TLS is forced
 Mark> unless the server has an authentication mechanism that does not
 Mark> exchange passwords in the clear.  Even then, it is advisable to
 Mark> use TLS since it is absolutely trivial to hijack sessions.

When authentication isn't necessary, it's extremely rare (by proportion
of traffic) for TLS to have any value at all for an NNTP session.

 >> (It's important that servers not encourage clients to initiate TLS
 >> unnecessarily, since that leads to overhead that can only be
 >> avoided by disabling TLS altogether.)

 Mark> TLS is here.  TLS is mandatory.  We need to live with it.

So you'll be happy to foot the bill?

Let me ask you this question. What would you say is a typical range
for peak (or 95-percentile) traffic in megabits/sec (client -> server
and server -> client combined) for a large POP3 or IMAP installation?

 Mark> Yes, indeed, this battle has been fought many times before;
 Mark> your argument has been advanced many times before; and it's
 Mark> been thoroughly crushed many times before.  Hard feelings have
 Mark> very commonly resulted.

I suggest you read what I actually said.

 >> There are two fundamental objections to that. First is that you're
 >> assigning semantics to fields which in the deployed specification
 >> are explicitly designated as containing arbitrary non-semantic
 >> text.

 Mark> There is ample precedent in other protocols: MIME and IMAP have
 Mark> both done it, and quite successfully.

MIME did it? where?

 Mark> Removal of extraneous RTTs is always a good thing.

Only where it doesn't break stuff.

 >> The second is that you can't just handwave MODE READER out of
 >> existence; if you make it impossible to conform to the spec, then
 >> people will just not bother conforming to the spec and will stick
 >> with the established practice.

 Mark> Is it really just one server, inn, that has this issue?

I believe so. However, you have to understand the _reason_ why that is
so - other servers, such as Diablo for example (or indeed our
proprietary one) simply split the two functions (transit and reader)
apart and require that they be run on separate servers or separate
ports, thus adding an order of magnitude to the difficulty of
installing and setting up. That's tolerable at large sites, but INN
is still usually the favoured (free) solution for small to medium
sites.

Furthermore, the problem is architectural in nature and not a mere
implementation issue - good design usually requires separating the
transit and reader functions since they have almost no overlap, and
forcing use of an alternate port number for transit is not an
acceptable solution.  That means that any INN-like implementation
will run into exactly the same issue.

 Mark> It certainly is not "impossible to conform to the spec";

It would be impossible to conform to the spec (sans MODE READER)
without taking away features that people are, in fact, using quite
widely. 

I agree that MODE READER is an extremely annoying wart, but it exists
for a specific reason, and you can't legislate that reason out of
existence. Which is why I proposed an approach that actually _is_
implementable.

 Mark> Science does not emerge from voting, party politics, or public
 Mark> debate.

I think you should read your own signature more often.

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Thu Nov  4 10:48:25 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov  4 10:48:39 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Thu, 4 Nov 2004 09:34:39 -0800 (PST)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
Message-ID: <E1CPmf1-000A2g-1q@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <mrc@CAC.Washington.EDU> writes:

 Mark> The cases then degenerate into:

 Mark> 1) MODE READER isn't required

This is, by far, the most common case.

 Mark> 2) MODE READER is required, but you must authenticate before
 Mark> you can do any reading.  The extension for MODE READER is not
 Mark> listed until after authentication.

That's backwards. Where MODE READER is required, it has to come
_before_ authentication (or TLS). I should have spotted that error in
your previous post. (Implementations where MODE READER is an issue
almost certainly won't be advertising auth or TLS in the LIST
EXTENSIONS output until after the MODE READER command, and even if
they do, the MODE READER has to come first because authentication
is likely to be handled differently for transit clients.)

-- 
Andrew, Supernews
http://www.supernews.com

From ken at oceana.com  Thu Nov  4 10:54:05 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 10:53:11 2004
Subject: [NNTP] SASL error code
In-Reply-To: <20041104171516.GO42341@finch-staff-1.thus.net>
References: <20041104171516.GO42341@finch-staff-1.thus.net>
Message-ID: <418A7ACD.2020008@oceana.com>

Clive D.W. Feather wrote:
> Surely the error code for a bad/unsupported mechanism in AUTHINFO SASL
> should be 503 (feature not supported) and not 501 (syntax error).

Yes, you are correct.  Just changed this in the source text.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Thu Nov  4 11:07:42 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 11:07:44 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPmf1-000A2g-1q@trinity.supernews.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
Message-ID: <Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Andrew - Supernews wrote:
> Mark> 1) MODE READER isn't required
> This is, by far, the most common case.

Excellent.

> Mark> 2) MODE READER is required, but you must authenticate before
> Mark> you can do any reading.  The extension for MODE READER is not
> Mark> listed until after authentication.
> That's backwards. Where MODE READER is required, it has to come
> _before_ authentication (or TLS). I should have spotted that error in
> your previous post.

That is *not* (repeat, NOT!!) the case in implementations today.

I have encountered multiple server implementations which do NOT (repeat, 
NOT) permit MODE READER until after authentication is negotiated.

If you are seriously advocating requiring MODE READER before 
authentication, then in effect you are declaring these deployed servers as 
being non-compliant.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Thu Nov  4 11:16:05 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 11:15:17 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <20041104161603.GL42341@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
	<20041102223624.GC96632@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>
	<20041104161603.GL42341@finch-staff-1.thus.net>
Message-ID: <418A7FF5.5020607@oceana.com>

Clive D.W. Feather wrote:

> Mark Crispin said:
> 
>>>The problem is the other way round: a conforming RFC 977 server can already
>>>produce such responses with meaningless contents.
>>
>>It is not, however, particularly likely that an RFC 977 is going to 
>>produce such a response which contains the "NNTPv2" capability.
> 
> 
> It doesn't matter; you can't rely on it. That's building on sand, not
> drawing a line in it :-)

How/why wouldn't it be reliable?  If we use a construct that is fairly 
unique (e.g. "[ ... ]") and pick an extension label for our undated spec 
(e.g. "NNTPv2" or "_NNTP_2") that is unlikely to be used in comment 
text, the likely hood of them being used together in a specific format 
in a response (e.g. "[NNTPv2 STARTTLS ...]" is *very* unlikely. 
Therefore any client which is aware of NNTPv2 and wishes to use this 
facility can easily spot the capability list in the response.  I'd also 
like to point out, that only four of our current responses (200, 201, 
281, 283) would be realistic candidates for this facility (although I 
could be missing one).

If a client is not aware of NNTPv2 or this capability announcement 
facility, it will simply ignore it as comment text.


> There's also the problem that response lines are limited in length and
> there may not be room for the message as well as the existing response.

This isn't a big deal.  Either the server pares down the list as Mark 
suggests, or it simply doesn't include it at all (forcing the client to 
do an explicit LIST EXTENSIONS).  We're doing a similar thing with the 
SASL initial response.  If the initial response would cause the command 
line to be too long, the client must omit it and force the server to 
request it with an empty challenge.


> 
> ====
> 
> I've done some thinking about this and come to some conclusions.
> 
> What you're talking about is a specific use of what I would call
> "asynchronous messages" - messages not in immediate response to a command.
> IIRC, IMAP has these as a general possibility, as does (in a different
> area) the X11 protocol.

Mark has already addressed this as *not* what we're doing.  All we're 
really doing here is anticipating the fact the the client will be doing 
a LIST EXTENSIONS after the current command and merging the responses 
into a single one.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From andrew at supernews.net  Thu Nov  4 11:18:08 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov  4 11:18:24 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Thu, 4 Nov 2004 11:07:42 -0800 (PST)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
Message-ID: <E1CPn7n-000AWk-D6@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <mrc@CAC.Washington.EDU> writes:

 Mark> 2) MODE READER is required, but you must authenticate before
 Mark> you can do any reading.  The extension for MODE READER is not
 Mark> listed until after authentication.

 >> That's backwards. Where MODE READER is required, it has to come
 >> _before_ authentication (or TLS). I should have spotted that error
 >> in your previous post.

 Mark> That is *not* (repeat, NOT!!) the case in implementations today.

 Mark> I have encountered multiple server implementations which do NOT
 Mark> (repeat, NOT) permit MODE READER until after authentication is
 Mark> negotiated.

Interesting. Do you have data on what implementations those are?
Because INN certainly doesn't allow authentication to happen before a
_required_ MODE READER, so either you're seeing this from non-INN
implementations (in which case MODE READER isn't just a
one-implementation artifact) or you're confusing the (rare) required
use of MODE READER with the no-op implementation.

Traces of actual conversations would be useful.

-- 
Andrew, Supernews
http://www.supernews.com

From ken at oceana.com  Thu Nov  4 11:36:03 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 11:35:11 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPmf1-000A2g-1q@trinity.supernews.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>	<20041015085218.GA86186@finch-staff-1.thus.net>	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>	<20041018094755.GH31499@finch-staff-1.thus.net>	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>	<E1CPfSG-0002L3-5f@trinity.supernews.net>	<20041104151304.GK42341@finch-staff-1.thus.net>	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
Message-ID: <418A84A3.9000100@oceana.com>

Andrew - Supernews wrote:

>>>>>>"Mark" == Mark Crispin <mrc@CAC.Washington.EDU> writes:
> 
> 
>  Mark> The cases then degenerate into:
> 
>  Mark> 1) MODE READER isn't required
> 
> This is, by far, the most common case.
> 
>  Mark> 2) MODE READER is required, but you must authenticate before
>  Mark> you can do any reading.  The extension for MODE READER is not
>  Mark> listed until after authentication.
> 
> That's backwards. Where MODE READER is required, it has to come
> _before_ authentication (or TLS). I should have spotted that error in
> your previous post. (Implementations where MODE READER is an issue
> almost certainly won't be advertising auth or TLS in the LIST
> EXTENSIONS output until after the MODE READER command, and even if
> they do, the MODE READER has to come first because authentication
> is likely to be handled differently for transit clients.)

Given INN's use of MODE READER, I would expect this to be the case. 
Assuming that this is the expected use, I think we can address these 
issues with 2 capabilities (these are actually arguments to the NNTPv2 
extension label since we're talking about base functionality):

1. MODE_READER - (as already proposed by Clive) specifies that MODE 
READER is required before using any reader commands

2. MODE_FEEDER (or FEED_ONLY or NO_READING, etc) - specifies that the 
server doesn't permit *any* reader commands

The absence of both of these options means that the server permits 
reader commands and MODE READER isn't required.  The two options MUST 
NOT be advertised at the same time.

The only case which isn't addressed is a reader-only server, which 
really only effects IHAVE and I think returning a 503 solves this.  I'm 
guessing most reading clients wouldn't bother with IHAVE anyways.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Thu Nov  4 11:41:30 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 11:41:32 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPmTM-0009oU-Gu@trinity.supernews.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
Message-ID: <Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Andrew - Supernews wrote:
> Mark> Please expunge this notion of "just try the command and see if
> Mark> it works." It is *extremely* harmful to a protocol to have a
> Mark> mixed mode of capability announcement and "just try."
> I can see we're not going to agree on this.

This is not a matter of opinion.  It is proven fact.

IMAP, POP3, SMTP, ACAP, etc. all have a capability mechanism that works as 
I state.

NNTP, on the other hand, has indeterminate states and an incomplete 
capability mechanism.  To put it mildly, NNTP sucks.

I was hoping that this group was going to fix that.

> It's very common with NNTP to not require authentication at all.
> That's why we have a response code specifically saying "you can't do
> that without starting TLS first" in addition to the one that says "you
> can't do that without authenticating".

That is an obsolete protocol design.  The problem is (as was realized 
during the IMAP2 -> IMAP4 transition) is that the client is obliged to 
undertake many unnecessary RTTs.

RTTs are not your friend.

> When authentication isn't necessary, it's extremely rare (by proportion
> of traffic) for TLS to have any value at all for an NNTP session.

We are rapidly approaching a world in which authentication is always 
necessary.

Yes, I know that Supernews (like many other NNTP service provides) uses 
quick and dirty authentication mechanisms such as IP address validation.

> Mark> TLS is here.  TLS is mandatory.  We need to live with it.
> So you'll be happy to foot the bill?

I'm sorry to be the bearer of bad news, but you will foot the bill, after 
you find itself the victim of an attack that your current authentication 
mechanisms do not prevent.  Your are, in effect, hiding behind a security 
through obscurity shield.

The means of attack are already well-known and implemented.  Currently, 
there are much easier targets for the bad guys.  However, as those targets 
are one-by-one closing their holes, your day of reckoning approaches.

We all have the choice of being reactive or proactive.  We're forced in 
some cases to be reactive.  However, there are other cases in which we can 
be proactive now to save having to be reactive later.

> Mark> There is ample precedent in other protocols: MIME and IMAP have
> Mark> both done it, and quite successfully.
> MIME did it? where?

MIME boundary delimiters.  I know because I invented them.

All the same arguments were made against MIME boundary delimiters because 
the string in the delimiter could appear in the MIME segment (those who 
held this position argued for a count of "lines").  The successful 
counter-argument was that it was easily possible to generate a boundary 
delimiter with the chance of a false hit mathematically small enough to be 
disregarded.

Later, BASE64 and QUOTED-PRINTABLE made it possible to create boundary 
delimiters which could not appear in MIME segments that used those 
transport encodings.  However, since not all segments use these transport 
encodings, it has to fall back on unlikelihood.

> Mark> Removal of extraneous RTTs is always a good thing.
> Only where it doesn't break stuff.

However, in this case nothing is being broken.  The client can still do 
the RTT-costly method.

> >> The second is that you can't just handwave MODE READER out of
> >> existence; if you make it impossible to conform to the spec, then
> >> people will just not bother conforming to the spec and will stick
> >> with the established practice.
> Mark> Is it really just one server, inn, that has this issue?
> I believe so. However, you have to understand the _reason_ why that is
> so

I understand perfectly.  It's an implementation issue in one server. 
That is a remarkably poor excuse for something which costs multiple RTTs 
per session for every client.

If a mode switch was needed to separate clients from peers, why isn't the 
burden on peers?

> Mark> It certainly is not "impossible to conform to the spec";
> It would be impossible to conform to the spec (sans MODE READER)
> without taking away features that people are, in fact, using quite
> widely.

Just what "features" are "taken away"?

> I agree that MODE READER is an extremely annoying wart, but it exists
> for a specific reason, and you can't legislate that reason out of
> existence.

No, but competant programmers can fix the servers so that they do not have 
this problem.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Thu Nov  4 11:43:54 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 11:43:00 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041104170051.GN42341@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<4187B832.2070006@oceana.com>
	<20041104170051.GN42341@finch-staff-1.thus.net>
Message-ID: <418A867A.4020204@oceana.com>

Clive D.W. Feather wrote:


>>>Approach C is my preference and matches (e.g.) HTTP. I only suggested an
>>>alternative because people choked on the major.minor idea previously.
>>
>>A and C seem to be functionally identical to me and just differ in the 
>>syntax.
> 
> 
> In A, case 2, the client needs to know that 4321 exists and is upwards
> compatible; otherwise it will barf when it meets a 4321 server. In C, a
> 2.0 client automatically knows that 2.1 is upwards compatible.

I think you're splitting hairs here.  Why does a 2.0 client know that 
2.1 is upwards compatible?  Just because of the version number?  Whether 
it seems obvious or not given your choice of syntax, it still MUST be 
explicitly document somewhere that 2.1 retains 2.0 functionality (AFAIC 
2.0 and 2.1 are still meaningless tokens at a protocol level).  The same 
would be true in the A case, RFC 4321 MUST explicitly state that it 
retains RFC 3977 functionality.  In either case, the client knows this 
because the author read the specs and programmed accordingly.


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Thu Nov  4 11:44:21 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 11:44:23 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPn7n-000AWk-D6@trinity.supernews.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
Message-ID: <Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Andrew - Supernews wrote:
> Because INN certainly doesn't allow authentication to happen before a
> _required_ MODE READER

In that case, INN is not compliant with the AUTHINFO draft.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Thu Nov  4 11:48:42 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 11:47:48 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>	<20041015085218.GA86186@finch-staff-1.thus.net>	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>	<20041018094755.GH31499@finch-staff-1.thus.net>	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>	<E1CPfSG-0002L3-5f@trinity.supernews.net>	<20041104151304.GK42341@finch-staff-1.thus.net>	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>	<E1CPmf1-000A2g-1q@trinity.supernews.net>	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
Message-ID: <418A879A.2010602@oceana.com>

Mark Crispin wrote:

> On Thu, 4 Nov 2004, Andrew - Supernews wrote:
> 
>> Because INN certainly doesn't allow authentication to happen before a
>> _required_ MODE READER
> 
> 
> In that case, INN is not compliant with the AUTHINFO draft.

If there is text in AUTHINFO which either explicitly or implicitly 
states that MODE READER can't be used before authentication, please 
point it out so I can fix it.  This certainly wasn't the intent of the 
document.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Thu Nov  4 11:50:34 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 11:50:35 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <418A879A.2010602@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
Message-ID: <Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Ken Murchison wrote:
>>> Because INN certainly doesn't allow authentication to happen before a
>>> _required_ MODE READER
>> In that case, INN is not compliant with the AUTHINFO draft.
> If there is text in AUTHINFO which either explicitly or implicitly states 
> that MODE READER can't be used before authentication, please point it out so 
> I can fix it.  This certainly wasn't the intent of the document.

There is text in AUTHINFO which states that authentication can be used 
before MODE READER.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From andrew at supernews.net  Thu Nov  4 11:52:35 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov  4 11:52:52 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Thu, 4 Nov 2004 11:41:30 -0800 (PST)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
	<Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
Message-ID: <E1CPnf8-000B33-2v@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <mrc@CAC.Washington.EDU> writes:

 [snip]

I'll address your other points separately, but I'll repeat this
question since you failed to answer it:

Let me ask you this question. What would you say is a typical range
for peak (or 95-percentile) traffic in megabits/sec (client -> server
and server -> client combined) for a large POP3 or IMAP installation?

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Thu Nov  4 12:00:21 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov  4 12:00:36 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <418A84A3.9000100@oceana.com> (Ken Murchison's message of "Thu,
	04 Nov 2004 14:36:03 -0500")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<418A84A3.9000100@oceana.com>
Message-ID: <E1CPnmd-000BBu-Ci@trinity.supernews.net>

>>>>> "Ken" == Ken Murchison <ken@oceana.com> writes:

 Ken> The only case which isn't addressed is a reader-only server,
 Ken> which really only effects IHAVE and I think returning a 503
 Ken> solves this.  I'm guessing most reading clients wouldn't bother
 Ken> with IHAVE anyways.

It might be possible to make a case that IHAVE should really be an
extension.

Traditionally, reader-only servers have responded with 480 to IHAVE,
though that's slightly misleading since no possible authentication
could make the command available. We return 502 at the moment. It's
mostly a non-issue precisely because reader clients don't use it.

-- 
Andrew, Supernews
http://www.supernews.com

From ken at oceana.com  Thu Nov  4 12:02:33 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 12:01:41 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
Message-ID: <418A8AD9.5070801@oceana.com>

Mark Crispin wrote:

> On Thu, 4 Nov 2004, Ken Murchison wrote:
> 
>>>> Because INN certainly doesn't allow authentication to happen before a
>>>> _required_ MODE READER
>>>
>>> In that case, INN is not compliant with the AUTHINFO draft.
>>
>> If there is text in AUTHINFO which either explicitly or implicitly 
>> states that MODE READER can't be used before authentication, please 
>> point it out so I can fix it.  This certainly wasn't the intent of the 
>> document.
> 
> 
> There is text in AUTHINFO which states that authentication can be used 
> before MODE READER.

Right, it says:

"The AUTHINFO commands can be used before or after the MODE READER
command, with the same semantics."

It doesn't say that AUTHINFO MUST be used prior to mode reader.  How is 
INN non-compliant?  Maybe I'm being thick.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Thu Nov  4 12:01:53 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 12:01:56 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPnf8-000B33-2v@trinity.supernews.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
	<Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
	<E1CPnf8-000B33-2v@trinity.supernews.net>
Message-ID: <Pine.LNX.4.62.0411041155110.24364@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Andrew - Supernews wrote:
> I'll address your other points separately, but I'll repeat this
> question since you failed to answer it:
> Let me ask you this question. What would you say is a typical range
> for peak (or 95-percentile) traffic in megabits/sec (client -> server
> and server -> client combined) for a large POP3 or IMAP installation?

Even if I had an answer for this question, it is irrelevant for the 
discussion at hand.

If a facility's lack of security is used to enable a major attack, the 
number of megabits/second without security ceases to be relevant.  The 
facility will do what is necessary to ameliorate the attack.

You are not the only person to squawk about the overhead of TLS.  The cell 
phone providers also vigorously object; currently use of TLS cuts battery 
time in half.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From mrc at CAC.Washington.EDU  Thu Nov  4 12:11:59 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 12:12:01 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <418A8AD9.5070801@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
Message-ID: <Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Ken Murchison wrote:
>>>>> Because INN certainly doesn't allow authentication to happen before a
>>>>> _required_ MODE READER
>>>> In that case, INN is not compliant with the AUTHINFO draft.
>>> If there is text in AUTHINFO which either explicitly or implicitly states 
>>> that MODE READER can't be used before authentication, please point it out 
>>> so I can fix it.  This certainly wasn't the intent of the document.
>> There is text in AUTHINFO which states that authentication can be used 
>> before MODE READER.
> Right, it says:
> "The AUTHINFO commands can be used before or after the MODE READER
> command, with the same semantics."
> It doesn't say that AUTHINFO MUST be used prior to mode reader.  How is INN 
> non-compliant?  Maybe I'm being thick.

The statement:

>>>>> Because INN certainly doesn't allow authentication to happen before a
>>>>> _required_ MODE READER

is non-complaint with:

> "The AUTHINFO commands can be used before or after the MODE READER
> command, with the same semantics."


You're thinking about the other case, which is of a server which issues a 
480 to MODE READER, which was the (2) example of server handling of mode 
reader.  AUTHINFO seems to prohibit this behavior as well as inn's 
behavior.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Thu Nov  4 12:33:49 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 12:32:55 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
Message-ID: <418A922D.6070804@oceana.com>

Mark Crispin wrote:

> The statement:
> 
>>>>>> Because INN certainly doesn't allow authentication to happen before a
>>>>>> _required_ MODE READER
> 
> 
> is non-complaint with:
> 
>> "The AUTHINFO commands can be used before or after the MODE READER
>> command, with the same semantics."

OK, I see your point.

The intent of the statement is to allow servers to decide whether to 
permit AUTHINFO before and/or after MODE READER.

You're looking from the client's perspective in which the statement 
seems to say that the client can use AUTHINFO whenever it feels like it. 
  But as long as INN doesn't advertise AUTHINFO before MODE READER, 
doesn't this solve the problem?

Do you have any suggested text which might clarify this?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From andrew at supernews.net  Thu Nov  4 12:51:21 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov  4 12:51:37 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041155110.24364@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Thu, 4 Nov 2004 12:01:53 -0800 (PST)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
	<Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
	<E1CPnf8-000B33-2v@trinity.supernews.net>
	<Pine.LNX.4.62.0411041155110.24364@shiva1.cac.washington.edu>
Message-ID: <E1CPoZz-000C0B-EK@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <mrc@CAC.Washington.EDU> writes:

 >> I'll address your other points separately, but I'll repeat this
 >> question since you failed to answer it:

 >> Let me ask you this question. What would you say is a typical
 >> range for peak (or 95-percentile) traffic in megabits/sec (client
 >> -> server and server -> client combined) for a large POP3 or IMAP
 >> installation?

 Mark> Even if I had an answer for this question, it is irrelevant for
 Mark> the discussion at hand.

It's relevent, but the reasons for that may not become clear unless you
answer the question.

 Mark> If a facility's lack of security is used to enable a major
 Mark> attack, the number of megabits/second without security ceases
 Mark> to be relevant.  The facility will do what is necessary to
 Mark> ameliorate the attack.

I don't think you really understand the threat model that applies to
much of the common usage of NNTP.

-- 
Andrew, Supernews
http://www.supernews.com

From mrc at CAC.Washington.EDU  Thu Nov  4 13:03:54 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 13:03:56 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPoZz-000C0B-EK@trinity.supernews.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
	<Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
	<E1CPnf8-000B33-2v@trinity.supernews.net>
	<Pine.LNX.4.62.0411041155110.24364@shiva1.cac.washington.edu>
	<E1CPoZz-000C0B-EK@trinity.supernews.net>
Message-ID: <Pine.LNX.4.62.0411041254000.29918@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Andrew - Supernews wrote:
> Mark> Even if I had an answer for this question, it is irrelevant for
> Mark> the discussion at hand.
> It's relevent, but the reasons for that may not become clear unless you
> answer the question.

I know, you're going to give me the "TLS is too expensive" argument.

The fallacy is that this assumes current conditions.  When engineering a 
protocol, we must consider the conditions of the future.

> Mark> If a facility's lack of security is used to enable a major
> Mark> attack, the number of megabits/second without security ceases
> Mark> to be relevant.  The facility will do what is necessary to
> Mark> ameliorate the attack.
> I don't think you really understand the threat model that applies to
> much of the common usage of NNTP.

The phrase "much of the common usage" is quite a prevarication.

Threats occur from many sources.  DDOS is a threat, but so are session 
hijacking and IP address spoofing.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Thu Nov  4 13:06:04 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 13:05:09 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <418A922D.6070804@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>	<20041015085218.GA86186@finch-staff-1.thus.net>	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>	<20041018094755.GH31499@finch-staff-1.thus.net>	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>	<E1CPfSG-0002L3-5f@trinity.supernews.net>	<20041104151304.GK42341@finch-staff-1.thus.net>	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>	<E1CPmf1-000A2g-1q@trinity.supernews.net>	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>	<E1CPn7n-000AWk-D6@trinity.supernews.net>	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>	<418A879A.2010602@oceana.com>	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>	<418A8AD9.5070801@oceana.com>	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
Message-ID: <418A99BC.4040808@oceana.com>

Ken Murchison wrote:
> Mark Crispin wrote:
> 
>> The statement:
>>
>>>>>>> Because INN certainly doesn't allow authentication to happen 
>>>>>>> before a
>>>>>>> _required_ MODE READER
>>
>>
>>
>> is non-complaint with:
>>
>>> "The AUTHINFO commands can be used before or after the MODE READER
>>> command, with the same semantics."
> 
> 
> OK, I see your point.
> 
> The intent of the statement is to allow servers to decide whether to 
> permit AUTHINFO before and/or after MODE READER.
> 
> You're looking from the client's perspective in which the statement 
> seems to say that the client can use AUTHINFO whenever it feels like it. 
>  But as long as INN doesn't advertise AUTHINFO before MODE READER, 
> doesn't this solve the problem?
> 
> Do you have any suggested text which might clarify this?

Answering my own question.  Would this text be better?

"A server MAY allow the AUTHINFO commands to be used before or after the 
MODE READER command, with the same semantics."

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Thu Nov  4 13:20:12 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 13:20:14 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <418A922D.6070804@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
Message-ID: <Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Ken Murchison wrote:
> The intent of the statement is to allow servers to decide whether to permit 
> AUTHINFO before and/or after MODE READER.

That is an extremely bad design (to put it mildly).

> You're looking from the client's perspective in which the statement seems to 
> say that the client can use AUTHINFO whenever it feels like it.

That is the only reasonable interpretation of:
 	The AUTHINFO commands can be used before or after the MODE READER
 	command, with the same semantics.

> But as long 
> as INN doesn't advertise AUTHINFO before MODE READER, doesn't this solve the 
> problem?

At the cost of considerable client complexity, which will get worse if 
authentication is required for peers as well as clients.

As a client author, I vehemently object to allowing the server to dictate 
the order of a protocol sequence.  In EVERY well-designed protocol, the 
protocol sequence is dictated first by the specification, and then by the 
client.

> Do you have any suggested text which might clarify this?

Yes.  Do not give the server the option of imposing an order on the 
client.  Either leave the order as random (under client direction), or 
impose One True Order and *prohibit* all other orders.

My released client code implements this order, which works on every NNTP 
server that I tested:
 	STARTTLS (if needed - note that plaintext password authentication
 		  requires TLS)
 	AUTHINFO (if needed)
 	MODE READER

To re-confirm, I just verified on an inn server that inn *does* allow 
AUTHINFO before MODE READER.  I also determined that Supernews' NNTP 
server allows AUTHINFO before MODE READER.

Perhaps there are clients which implement a different order.  If so, then 
the *only* choice is to require that servers MUST allow either order.

Life's tough if you're in the server business.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Thu Nov  4 13:33:18 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 13:32:23 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
Message-ID: <418AA01E.5030608@oceana.com>

Mark Crispin wrote:

>> You're looking from the client's perspective in which the statement 
>> seems to say that the client can use AUTHINFO whenever it feels like it.
> 
> 
> That is the only reasonable interpretation of:
>     The AUTHINFO commands can be used before or after the MODE READER
>     command, with the same semantics.

Yes, I came to this conclusion myself after re-reading it.


> As a client author, I vehemently object to allowing the server to 
> dictate the order of a protocol sequence.  In EVERY well-designed 
> protocol, the protocol sequence is dictated first by the specification, 
> and then by the client.
> 
>> Do you have any suggested text which might clarify this?
> 
> 
> Yes.  Do not give the server the option of imposing an order on the 
> client.  Either leave the order as random (under client direction), or 
> impose One True Order and *prohibit* all other orders.

I'm tending to agree with this recommendation.  My gut it to leave the 
order as random, but I'll wait to see if anybody squeals before I make 
this change.


> My released client code implements this order, which works on every NNTP 
> server that I tested:
>     STARTTLS (if needed - note that plaintext password authentication
>           requires TLS)
>     AUTHINFO (if needed)
>     MODE READER
> 
> To re-confirm, I just verified on an inn server that inn *does* allow 
> AUTHINFO before MODE READER.  I also determined that Supernews' NNTP 
> server allows AUTHINFO before MODE READER.

OK, so the current language in AUTHINFO does not make either server 
non-compliant.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Thu Nov  4 13:34:56 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 13:34:59 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <418AA01E.5030608@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<418AA01E.5030608@oceana.com>
Message-ID: <Pine.LNX.4.62.0411041334050.29918@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Ken Murchison wrote:
>> To re-confirm, I just verified on an inn server that inn *does* allow 
>> AUTHINFO before MODE READER.  I also determined that Supernews' NNTP server 
>> allows AUTHINFO before MODE READER.
> OK, so the current language in AUTHINFO does not make either server 
> non-compliant.

Unless there is a version of inn server (or Supernews server) that forces 
one or the other.  If so, that version is non-compliant.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Thu Nov  4 13:39:10 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov  4 13:38:18 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041334050.29918@shiva1.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<418AA01E.5030608@oceana.com>
	<Pine.LNX.4.62.0411041334050.29918@shiva1.cac.washington.edu>
Message-ID: <418AA17E.5010202@oceana.com>

Mark Crispin wrote:

> On Thu, 4 Nov 2004, Ken Murchison wrote:
> 
>>> To re-confirm, I just verified on an inn server that inn *does* allow 
>>> AUTHINFO before MODE READER.  I also determined that Supernews' NNTP 
>>> server allows AUTHINFO before MODE READER.
>>
>> OK, so the current language in AUTHINFO does not make either server 
>> non-compliant.
> 
> 
> Unless there is a version of inn server (or Supernews server) that 
> forces one or the other.  If so, that version is non-compliant.

The intent is to document existing deployment, so any text which makes 
existing implementations non-compliant is not a good thing.  I'd like to 
rewrite the text, if necessary, solve any problems.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From andrew at supernews.net  Thu Nov  4 13:42:56 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov  4 13:43:15 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Thu, 4 Nov 2004 13:20:12 -0800 (PST)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
Message-ID: <E1CPpNy-000Cjl-4P@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <mrc@CAC.Washington.EDU> writes:

 Mark> My released client code implements this order, which works on
 Mark> every NNTP server that I tested:
 Mark>  	STARTTLS (if needed - note that plaintext password authentication
 Mark>  		  requires TLS)
 Mark>  	AUTHINFO (if needed)
 Mark>  	MODE READER

This will fail on INN in those few cases where MODE READER is actually
needed (rather than being a no-op) and where authentication (or TLS)
is also required. However, I think you'll be hard-pressed to find such
a case other than by setting it up explicitly.  (In most of the few
cases where MODE READER is needed, authentication would be pointless.)

 Mark> To re-confirm, I just verified on an inn server that inn *does*
 Mark> allow AUTHINFO before MODE READER.

This is only true when the MODE READER was never necessary in the
first place (which as I said before is the most common case by far).

In the case where you actually need MODE READER, some AUTHINFO
commands will work before MODE READER is used but the results will
be thrown away once you're talking to nnrpd rather than innd.

If you want to test it, you need to arrange to have transfer as well
as reader access to the INN server you're testing against.

 Mark> I also determined that Supernews' NNTP server allows AUTHINFO
 Mark> before MODE READER.

MODE READER is a no-op on our server.

-- 
Andrew, Supernews
http://www.supernews.com

From MRC at CAC.Washington.EDU  Thu Nov  4 16:31:41 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 16:33:50 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <418AA17E.5010202@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<418AA01E.5030608@oceana.com>
	<Pine.LNX.4.62.0411041334050.29918@shiva1.cac.washington.edu>
	<418AA17E.5010202@oceana.com>
Message-ID: <Pine.WNT.4.62.0411041629550.4896@Tomobiki-Cho.CAC.Washington.EDU>

On Thu, 4 Nov 2004, Ken Murchison wrote:
>> Unless there is a version of inn server (or Supernews server) that forces 
>> one or the other.  If so, that version is non-compliant.
> The intent is to document existing deployment, so any text which makes 
> existing implementations non-compliant is not a good thing.  I'd like to 
> rewrite the text, if necessary, solve any problems.

Well, I haven't seen any deployments that do that.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Thu Nov  4 16:35:08 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 16:37:14 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPpNy-000Cjl-4P@trinity.supernews.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<E1CPpNy-000Cjl-4P@trinity.supernews.net>
Message-ID: <Pine.WNT.4.62.0411041631460.4896@Tomobiki-Cho.CAC.Washington.EDU>

On Thu, 4 Nov 2004, Andrew - Supernews wrote:
> This will fail on INN in those few cases where MODE READER is actually
> needed (rather than being a no-op) and where authentication (or TLS)
> is also required. However, I think you'll be hard-pressed to find such
> a case other than by setting it up explicitly.  (In most of the few
> cases where MODE READER is needed, authentication would be pointless.)

In that case, I think that it is safe to say that such cases don't exist 
and *won't exist* in NNTPv2.

> In the case where you actually need MODE READER, some AUTHINFO
> commands will work before MODE READER is used but the results will
> be thrown away once you're talking to nnrpd rather than innd.

Remember that we are documenting NNTPv2.  This would be something that 
would have to be fixed in inn before it can advertise itself as being 
NNTPv2 compliant.  Fortunately, it seems that the fix affect few if any 
deployed sites.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Thu Nov  4 20:36:03 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 20:36:04 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Thu, 4 Nov 2004 13:20:12 -0800 (PST)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
Message-ID: <87d5ys3ob0.fsf@windlord.stanford.edu>

Mark Crispin <mrc@CAC.Washington.EDU> writes:

> My released client code implements this order, which works on every NNTP
> server that I tested:
>  	STARTTLS (if needed - note that plaintext password authentication
>  		  requires TLS)
>  	AUTHINFO (if needed)
>  	MODE READER

> To re-confirm, I just verified on an inn server that inn *does* allow
> AUTHINFO before MODE READER.

Then your INN server is configured in a way that doesn't require MODE
READER.  Please note that almost all INN configurations do not require
MODE READER, since even when the initial connection is handled by innd, it
is immediately shunted to nnrpd unless the connecting host has permission
to issue transit commands.

As the maintainer of INN, I can assure you with 100% certainty that this
order will NOT work in the unusual situation where MODE READER is
required.  Your AUTHINFO command will fail before MODE READER, and after
nnrpd spawns it will have no idea that you ever attempted it.

Note that most servers have eliminated the need for MODE READER by
ensuring that one of the following conditions is true:

 * The same server process is used for both transit and reader
   connections.  I think this design makes it considerably harder to
   maintain the server, for a wide host of reasons, but admittedly those
   reasons are internal to server design.

 * There are no connecting hosts which are both allowed to issue transit
   commands and are allowed to read news.  This is the common case and is
   the reason why one can completely ignore MODE READER with nearly all
   INN installations and get away with it.

 * The transit server is running on the separate port reserved for that
   purpose (433) and the reader-only server is running on 119.

Of the solutions, I actually prefer the last one, since I've encountered
rare but significant instances where I really needed to give both transit
and reader permissions to the same client host.  It's obnoxious in that
NNTP consumes an extra low-numbered port, which is really highly rude of
it, but the damage (in terms of the port registration) was already done
many years ago.

I don't like MODE READER either.  Personally, I implement the third
solution for all of my servers.  But mandating one of the above cases
makes me pretty nervous.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 20:38:14 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 20:38:15 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CPnmd-000BBu-Ci@trinity.supernews.net> (andrew@supernews.net's
	message of "Thu, 04 Nov 2004 20:00:21 +0000")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<418A84A3.9000100@oceana.com>
	<E1CPnmd-000BBu-Ci@trinity.supernews.net>
Message-ID: <878y9g3o7d.fsf@windlord.stanford.edu>

"Andrew - Supernews" <andrew@supernews.net> writes:

> Traditionally, reader-only servers have responded with 480 to IHAVE,
> though that's slightly misleading since no possible authentication could
> make the command available. We return 502 at the moment. It's mostly a
> non-issue precisely because reader clients don't use it.

Note that INN optionally allows IHAVE via the reader-only server due to
constant demand for the feature complete with provided patches from server
administrators who had to implement it.  I believe the primary motivation
was support for Microsoft products that wanted to pull news with NEWNEWS
and send it back with IHAVE.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 20:58:59 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 20:59:01 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411041254000.29918@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Thu, 4 Nov 2004 13:03:54 -0800 (PST)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
	<Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
	<E1CPnf8-000B33-2v@trinity.supernews.net>
	<Pine.LNX.4.62.0411041155110.24364@shiva1.cac.washington.edu>
	<E1CPoZz-000C0B-EK@trinity.supernews.net>
	<Pine.LNX.4.62.0411041254000.29918@shiva1.cac.washington.edu>
Message-ID: <874qk43n8s.fsf@windlord.stanford.edu>

Mark Crispin <mrc@CAC.Washington.EDU> writes:
> On Thu, 4 Nov 2004, Andrew - Supernews wrote:

>> It's relevent, but the reasons for that may not become clear unless you
>> answer the question.

> I know, you're going to give me the "TLS is too expensive" argument.

> The fallacy is that this assumes current conditions.  When engineering a
> protocol, we must consider the conditions of the future.

It's probably a mistake to stick my ore in here, but in the hope that I
can try to explain where large site administrators like Andrew are coming
from....

I understand your point about security, but the content transmitted via
NNTP is public information to several nines.  Sites that deal with private
newsgroups do indeed have to worry about the things that you talk about;
sites that deal with the public Usenet simply don't, and won't, because
it's unnecessary work.  The data that security measures would normally
protect is not worth protecting.  The cost/benefit tradeoff for using TLS
routinely, at least for reading (posting can be a separate issue) is
wrong, and nothing we say in a standard will change that.

I *wholeheartedly* agree with you that NNTP has wandered far out in the
woods, ignored lessons from other protocols, and made a mess of itself by
doing things its own way.  It is, by and large, not special, not
different, and doesn't need its own solutions to problems.  However, there
is one way in which NNTP actually is legitimately different than other
protocols mentioned in this discussion, and that's that nearly all traffic
it transmits is public information neither requiring nor wanting any sort
of protection.  In this respect, the best analog to another protocol is
actually to HTTP, and the common case for HTTP traffic is to not encrypt
it and not protect it for very similar reasons.  NNTP does do more
authentication than HTTP (*particularly* for posting), but I don't think
the benefits of authentication for the typical NNTP server even reach the
level of SMTP, let alone something like IMAP or POP.

Yes, the facilities have to exist to deal with the difference between
almost and all, but NNTP does have a significantly different common case,
and hence when one tries to optimize for the common case, one ends up
taking different tradeoffs.

Anyway, I don't think that we have to agree on this to figure out the
right protocol design for the current document, so we probably don't
really need to argue over it.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 21:01:31 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 21:01:32 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <417FA1A6.5040601@oceana.com> (Ken Murchison's message of "Wed,
	27 Oct 2004 09:24:54 -0400")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
	<20041015091534.GD86062@finch-staff-1.thus.net>
	<416FCE9E.4060908@oceana.com>
	<20041018101311.GI31499@finch-staff-1.thus.net>
	<4173CEE5.90303@oceana.com>
	<20041027075906.GB25499@finch-staff-1.thus.net>
	<417F887B.9010601@oceana.com>
	<20041027114116.GG25499@finch-staff-1.thus.net>
	<417FA1A6.5040601@oceana.com>
Message-ID: <87zn1w28k4.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Clive D.W. Feather wrote:
>> Ken Murchison said:

>>> I guess the only additional char (beyond what you've outlined) which
>>> sticks out as potentially usable for keywords is '_'

>> I think we only want one of '-' and '_'. I don't greatly care which,
>> though I think the former is slightly preferable.

> I don't care enough to make a big issue out of it.  I'll let the rest of
> the WG (you and Russ) decide which one(s) will be used.

I've been engaging in a completely irrational war against underscores for
years, so I'm quite happy with a dash.  :)  (Really, I don't much care one
way or the other, and can't see omitting '_' causing any real problems for
anyone.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 21:06:42 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 21:06:44 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <4173D448.3050707@oceana.com> (Ken Murchison's message of "Mon,
	18 Oct 2004 10:33:44 -0400")
References: <87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu> <416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu> <416DF1BE.9010703@oceana.com>
	<87k6ttlxc2.fsf@windlord.stanford.edu> <416E710F.8050906@oceana.com>
	<20041015102147.GF86062@finch-staff-1.thus.net>
	<E1CIWIk-000J9b-PX@trinity.supernews.net>
	<20041018104643.GO31499@finch-staff-1.thus.net>
	<4173D448.3050707@oceana.com>
Message-ID: <87vfck28bh.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> FWIW, I agree with Clive on this point (regarding 436, I think the jury
> is still out on 432).  I'm all for trying to document existing practice,
> as long as existing practice isn't horribly broken.  Poor
> implementations should wither and die, not continue to exist because we
> retroactively make them compliant.

I agree with Andrew that returning deferrals to an article body is
horribly broken (dealing with it makes a mess in innfeed).  I was willing
to see it in there because servers do actually do it, but I find his
argument rather persuasive and would rather just explicitly mention the
400 response.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 21:08:26 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 21:08:28 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041018093614.GG31499@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Mon, 18 Oct 2004 10:36:14 +0100")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<20041015102433.GG86062@finch-staff-1.thus.net>
	<E1CIWLM-000JCn-0h@trinity.supernews.net>
	<20041018093614.GG31499@finch-staff-1.thus.net>
Message-ID: <87r7n8288l.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:
> Andrew - Supernews said:

>> If for some strange reason the client wants to use reader commands, it
>> can reconnect.

> And you don't think that's antisocial?

The failure cases that we're discussing are such things as a full disk or
a bad drive, and hence are so rare as to make the question of
inconvenience to a client that wants to use the limping server for some
other purpose pretty much irrelevant.  This case is so rare that it's not
worth exerting any effort to make it efficient.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 21:13:51 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 21:13:52 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <416FCF72.8040300@oceana.com> (Ken Murchison's message of "Fri,
	15 Oct 2004 09:24:02 -0400")
References: <20041015102530.GH86062@finch-staff-1.thus.net>
	<416FCF72.8040300@oceana.com>
Message-ID: <87mzxw27zk.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Clive D.W. Feather wrote:

>>> As I see it, the 432 response to TAKETHIS has exactly the same meaning
>>> as the 436 response to IHAVE. We explicitly list 436 as being possible
>>> after the article body has been sent. So when do existing servers
>>> generate this response? If they do, why shouldn't they generate 432 in
>>> the same situation?

>> Oh, and what about 441 to POST. Should this be replaced by 400 as well?

> I am also confused.  I think we need Andrew to help us (or at least me)
> understand this how/why TAKETHIS is vastly different from IHAVE/POST.

I don't understand why people are confused.  441 is a rejection, not a
deferral.  All of IHAVE, TAKETHIS, and POST have return codes they
generate after the body to reject the message (namely 437, 439, and 441
respectively).  IHAVE, alone among these three, also has a deferral code
at present because some servers do this.  Andrew's point is that this
should be removed, and I'm inclined to agree after reading his messages.

There is, distinct from this, a *different* set of codes that are used as
responses to CHECK and *initial* responses to IHAVE, but that's a
completely different situation.

BTW, I just noted in streaming-01 that the 439 TAKETHIS code is described
as "Transfer failed" in the Syntax summary.  I don't know if this has
already been fixed or not (I'm grabbing the latest version but haven't
gotten that far in my catching up yet), but this is misleading.  A better
description would be "Article rejected".

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 21:18:06 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 21:18:08 2004
Subject: [NNTP] Re: [ietf-nntp] I-D ACTION:draft-ietf-nntpext-base-24.txt
In-Reply-To: <20041015095817.GE86062@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Fri, 15 Oct 2004 10:58:17 +0100")
References: <200409081936.PAA09860@ietf.org> <416D3CD0.6040107@oceana.com>
	<20041015095817.GE86062@finch-staff-1.thus.net>
Message-ID: <87is8k27sh.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> Firstly, the problem happened between -22 and -23.

> Secondly, I don't know what on earth happened. The file that I sent to
> the I-D editors was correct in every aspect; it had form feeds and every
> page contained the same (correct) number of lines. I didn't change my
> method of submission either (.txt file attached in a MIME
> email). They've made the change after receipt.

> Thirdly, what's happened is three things:
> - two blank lines have been removed from the top of the document;
> - the form feeds have been deleted;
> - every block of blank lines has had an extra blank line added.

In case you hadn't already heard, this was a widespread problem with the
I-D editing process that has since been fixed.  It wasn't specific to
anything that we did; many working groups were affected.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 21:19:40 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 21:19:41 2004
Subject: [NNTP] Re: [ietf-nntp] MODE READER and formal specification of
	extensions
In-Reply-To: <418A994E.7060905@oceana.com> (Ken Murchison's message of "Thu,
	04 Nov 2004 16:04:14 -0500")
References: <418A994E.7060905@oceana.com>
Message-ID: <87ekj827pv.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> For example, in nntp-24 it states "The LISTGROUP command can only be
> used after MODE READER command".  This seems to *require* the client to
> issue MODE READER, even if not required by the server, before it can use
> LISTGROUP.  I don't *think* this is the intent of the statement - I
> think we're just trying to tag it as a "reader" command.  Perhaps the
> statement should say something along the lines of:

> "On servers that require the use of the MODE READER command, the
> LISTGROUP command can only be used after the MODE READER command."

This sounds like good wording to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 22:00:14 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 22:00:16 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041102201611.GB96632@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Tue, 2 Nov 2004 20:16:11 +0000")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<4187E54E.5030805@oceana.com>
	<20041102201611.GB96632@finch-staff-1.thus.net>
Message-ID: <87actwzvgx.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:
> Ken Murchison said:

>> This seems somewhat questionable to me.  If the server advertises
>> support for OVER, what shouldn't it support LIST OVERVIEW.FMT?  If the
>> answer is because some legacy implementations don't support it, my
>> response is who cares?  OVER is new and we can and should be able to
>> enforce support for LIST OVERVIEW.FMT.

> Fine with me, but we need rough consensus on the list.

I have no problems with making it mandatory.  Mark has convinced me to
fear and hate optional commands.  :)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 22:10:00 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 22:10:02 2004
Subject: [NNTP] Proposed changes to draft-ietf-nntpext-streaming-02
In-Reply-To: <41890D7B.4010707@oceana.com> (Ken Murchison's message of "Wed,
	03 Nov 2004 11:55:23 -0500")
References: <41890D7B.4010707@oceana.com>
Message-ID: <87654kzv0n.fsf@windlord.stanford.edu>

The proposed changes to all three of the drafts look good to me.

Ken Murchison <ken@oceana.com> writes:

> Outstanding issue:

>     o Do we want to add any discussion of the server issuing a 400 (or
>       maybe a 403) response to TAKETHIS?

I think so.  Here's some suggested text:

    If the server encounters a temporary error that prevents it from
    processing the article but does not want to reject the article, it
    MUST reply with a 400 response to the client and close the connection.

I'm nervous about the effect of 403 on existing implementations, but
probably wouldn't object strongly if it were added as an additional
alternative here, like:

    If the server encounters a temporary error that prevents it from
    processing the article but does not want to reject the article, it
    MUST reply with either a 403 or a 400 response to the client.  A
    400 response (which is followed by the server closing the connection)
    is recommended if the error is likely to affect all subsequent
    attempts to transfer articles as well.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 22:17:02 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 22:17:04 2004
Subject: [NNTP] Optional LIST commands (was: LIST EXTENSIONS (again))
In-Reply-To: <20041102153716.GN34826@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Tue, 2 Nov 2004 15:37:16 +0000")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
Message-ID: <871xf8zuox.fsf_-_@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:
> Ken Murchison said:

>> I like the idea of advertising whether MODE READER is required and
>> which optional LIST commands are supported, but I don't see where our
>> new token needs to be used as part of this.

> These are features of the core protocol, not extensions. Therefore, in
> my opinion, they belong with the support information for the core
> extension.  Note how we have "OVER MSGID" rather than separate "OVER"
> and "OVER-MSGID" capabilities.

So, here's a question.  Why *aren't* they extensions?  If it's just
because they were in RFC 977, I don't think that's a very good reason;
we've already eliminated one command that no one used (SLAVE), and I'm
happy to take other little-used commands and move them into the extension
category.

Here's a proposal:  Why don't we make LIST NEWSGROUPS mandatory (pretty
much everyone implements it, even if they don't have any data to return,
and the case of not having any data to return is already supported in the
description of the command), and make LIST ACTIVE.TIMES, LIST
DISTRIB.PATS, and LIST DISTRIBUTIONS separate extensions?

(Actually, I'd be quite happy if we dropped LIST DISTRIBUTIONS entirely,
but that may be too much hassle at this point.  It's a rather pointless
command that could be replaced by a web page at sites that care.)

They're optional commands, we want to advertise them in LIST EXTENSIONS,
we have a well-defined way of doing that for actual extensions... I think
this would be the simplest approach.

>> Is it realistic to assume that if a server supports one of the optional
>> LIST commands, that it would support all of them?  I don't know,

> Nor do I.

They're unrelated.  Many servers support one of them and not the others.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From mrc at CAC.Washington.EDU  Thu Nov  4 22:23:01 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov  4 22:23:04 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <874qk43n8s.fsf@windlord.stanford.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
	<Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
	<E1CPnf8-000B33-2v@trinity.supernews.net>
	<Pine.LNX.4.62.0411041155110.24364@shiva1.cac.washington.edu>
	<E1CPoZz-000C0B-EK@trinity.supernews.net>
	<Pine.LNX.4.62.0411041254000.29918@shiva1.cac.washington.edu>
	<874qk43n8s.fsf@windlord.stanford.edu>
Message-ID: <Pine.LNX.4.62.0411042159080.12527@shiva1.cac.washington.edu>

On Thu, 4 Nov 2004, Russ Allbery wrote:
> The cost/benefit tradeoff for using TLS
> routinely, at least for reading (posting can be a separate issue) is
> wrong, and nothing we say in a standard will change that.

Posting is an issue.  Session hijacking and IP address spoofing are 
currently too much trouble for spammers to use, given all the much easier 
ways to spam.  That will not always be the case.

Unfortunately, it is not safe to infer that the absence of attacks in the 
past is a predictor of the absence of attacks in the future.

As for reading, I'll note that Supernews apparently considers read 
security to be important enough to deny me access to their servers when my 
client IP address is my office workstation at UW, but to permit it when my 
client IP address is one of my home network sites.  So read security is 
not unimportant.

Note, however, that TLS protects more than public posting.  It also 
protects the exchange of authentication credentials.  For better or worse, 
the overwhelming majority of authentications involve userid and password, 
transmitted to the server in the clear.  Every NNTP server that has 
password-based authentication but not mandatory TLS exposes that user's 
password to every bad guy in the universe.

I am reasonably confident that IESG will not permit AUTHINFO USER or 
AUTHINFO SASL PLAIN to be standardized without mandatory TLS.

Now, you could have AUTHINFO SASL CRAM-MD5 or AUTHINFO SASL GSSAPI or any 
other SASL authenticator that does not allow an eavesdropping attacker to 
authenticate as the user, and get away without using TLS.  But that still 
doesn't address session hijacking problems.  Not using AUTHINFO at all, 
and instead relying upon client IP address validation, doesn't address IP 
address spoofing.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Thu Nov  4 22:53:23 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 22:53:25 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041102153716.GN34826@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Tue, 2 Nov 2004 15:37:16 +0000")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
Message-ID: <87wtx0yefw.fsf@windlord.stanford.edu>

Okay, I've read and I think digested all of the long threads about the
NNTPv2 label and related issues.  I'm pleasantly surprised that everyone
agreed that we should have the protocol version advertised; I thought that
was going to be controversial!

Here is my take on this:

I think we need to be able to say what version of the base protocol
specification the server follows (everyone agrees on this).  I would
prefer to copy IMAP as closely as possible here because IMAP has done this
and we know that it works in practice, which means that unless we can see
a really significant problem with IMAP's approach, I don't think we should
think too hard.  It's possible that IMAP just hasn't encountered the
problems that could come up, but I think it's also equally possible that
IMAP's track record shows that the problems don't actually come up.

I don't think we need to know what version of an extension the server
supports because I don't expect extensions to have versions.  Note that no
documented standard command has ever changed its behavior in a significant
and non-backwards-compatible way over the life of the NNTP protocol; the
only things we've had to change were for commands like XOVER where
implementations diverged without a specification.  (Well, I guess that the
dropping of the optional distribution argument to NEWNEWS could be called
a non-backward-compatible change, but I think that's a stretch.)

If a command changes in a non-backward-compatible way, I think a new
command should be introduced instead and the old one left alone and
deprecated.  This is analogous to header fields.  New names are cheap;
backward compatibility problems aren't.  And even if we had a versioning
mechanism, I know there would be problems with older clients that didn't
support it quite right.  That's code that's likely to break since it's
never exercised in practice and won't be for years.

If a command changes but in a backward-compatible way, this is why we have
additional arguments to the extension advertisement.  Like with OVER
MSGID, we can define a way to advertise the new capability with more
specificity than is offered by a version number.

I'm comfortable setting the basic parameters of the extension in stone
once it's published, at least barring another major NNTP revision.  And I
agree with Ken that if it turns out we desperately need this, we can add
it later, with a bit of trouble.

I see what Clive is getting at by making the extension label "NNTP 2" or
the like instead of "NNTPv2", but I think it's better to go the route that
lets us advertise compatibility with multiple NNTP versions rather than
going the route that lets clients compare numbers.  Again, I'd rather
follow IMAP here.  I don't see a need for minor protocol revisions
indicating backward-compatible changes; I think that is subsumed by the
ability to advertise compatibility with multiple revisions (listing both
NNTPv2 and NNTPv3 extension labels, for instance).

I don't think using an RFC number instead of an arbitrary version number
is a good idea for the reasons that Ken stated.  There's too much chance
that RFCs may have significant errata, there may be multiple RFCs that
update each other, etc.  We're safer with an arbitrary version number like
v2.  (And again, let's follow IMAP.)

I do think that we want to adopt something out of the discussion that
Andrew and Mark had about avoiding round trips.  NNTP is too heavy on
round trips right now, and that's been bothering me when we list all the
places clients need to issue LIST EXTENSIONS again.  At the least, we need
to advertise whether MODE READER is required.  I think there are four
possible states the server can be in:  all commands supported; reader
commands not supported until after MODE READER; transit commands not
supported at all; and reader commands not supported at all.  I think the
best way to indicate those states would be with two extensions:

    NOREADER [MODE-READER]
    NOTRANSIT

(those may not be the best names).  NOTRANSIT is a negative extension
saying that IHAVE is not supported, which saves a client the need to try
it and get 502.  NOREADER is a negative extension saying that reader
commands (ARTICLE, BODY, POST, GROUP, LAST, NEXT, NEWGROUPS, and NEWNEWS)
are not available.  If the optional MODE-READER parameter is given, it
indicates that they will be available (possibly still requiring STARTTLS
and authentication) after issuing MODE READER.  Note that this label
doesn't need to imply anything about extensions, since that can be done
with the presence or absence of the extension labels themselves.

After Mark's messages, I've been convinced that we should mandate the
order of the state change commands.  The correct order as near as I can
tell would be:

    MODE READER
    STARTTLS
    AUTHINFO

(where you can skip the initial MODE READER if your initial LIST
EXTENSIONS doesn't have the NOREADER extension listed).  That still means
that a connection with TLS and authentication requires seven commands to
initiate in the worst case, though, which is rather obscene:

    LIST EXTENSIONS
    MODE READER
    LIST EXTENSIONS
    STARTTLS
    LIST EXTENSIONS
    AUTHINFO SASL
    LIST EXTENSIONS

Of course, nearly all servers won't require MODE READER, which cuts out
the second and third commands.

One could cut this down by one more command by adding some sort of initial
extension advertisement to the greeting, but this worries me for the
reasons stated by Clive and Andrew, just in a cleanliness sense.  It's
worth considering, though.

One can also gain a round trip with a different idea, namely having
successful successful AUTHINFO SASL (which is a new commands, so we can do
whatever we want with it) include LIST EXTENSIONS output in its response.
I'm not sure what I think of that; I'm guessing it's a bad idea since no
one else does it.

Assuming most servers don't have MODE READER, the normal case with TLS and
auth will be five round trips (plus however many SASL needs).  Adding
[STARTTLS] or some such thing to the welcome banner would make that four.
Assuming that sending extension information after AUTHINFO is a bad idea,
I don't see any way to get it lower than four -- two of the commands have
to be issued, the LIST EXTENSIONS after STARTTLS is required for security
reasons since you can't trust the results of it beforehand, and the LIST
EXTENSIONS after AUTHINFO is required if authenticating changes anything
about what you can do.  (Although I'm wondering how often authenticating
is really going to change anything other than noting that you can no
longer run STARTTLS or AUTHINFO again, and if clients would really need to
check there.)

Clive D W Feather <clive@demon.net> writes:
> Ken Murchison said:

>>> (0) Adopt the "restrict characters in command names and extension
>>> labels proposal".

>> If this is the proposal to allow upper/lower and numeric chars (with a
>> few extras), I agree.

> It is.

I agree with this as well.

> Approach B: the server lists all the RFCs to which it conforms. The client
> needs only know a single RFC (unless it has multiple code paths).
> - Following a case 1 change, the number does *not* change; the server
>   continues to reply "3977".
> - Following a case 2 change, the number does change; the server replies
>   "3977 4321". The client recognises 3977 and works, or it recognises
>   4321 and uses the additional features.
> - Following a case 3 change, the number does change; the server replies
>   "4321". The client needs to know that it can talk to 3977 but not 4321
>   servers, or it needs separate code paths contingent on the two.

This is equivalent to having NNTPv2, NNTPv3, etc. extension labels that
can all be advertised together if the revisions are compatible somehow.  I
think this is the best approach to take.

>> Has RFC3977 actually been reserved for the new NNTP spec (ala
>> RFC282[12]), or did you just pick this as an example?  I think
>> reserving 3977 it is a good idea, but we'd need to move fast if it
>> hasn't already been done, since the RFCs are up to at least 3955
>> already.

> I haven't done it. I'd very much like it to be done, but the RFC editors
> don't seem to be talking to me - they still haven't answered my comment
> about them mangling the last few drafts (as Ken, I think, first
> realized).

> Russ? Can you have a go at this?

I'll ask our AD.

>>> (3) A conforming server MUST NOT advertise any extension label, other
>>> than one beginning with X, not in the IANA registry.

>> Agreed.

> Note, I think that's stronger than what we had before.

Yes, but I think it's the right thing to do.

Optional LIST commands discussed in another message.  (Mark, to give you
the summary, I'm proposing making one of them mandatory and the other
three regular extensions with regular extension labels; the argument I
gave you before about them is sounding less persuasive to me.)

>> If we nail down capabilities for these two items, then a client can
>> learn everything it needs to from LIST EXTENSIONS and no longer has to
>> guess or do a trial-and-error.  This is a "good thing" IMHO.

> Agreed.

> Um, I'm not going to swear there's no other significant options that are
> worth noting here. Can anyone think of any?

Do we want to get into advertising whether commands are permitted for a
particular client?  (POST and NEWNEWS are the ones most frequently not
permitted.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Thu Nov  4 23:04:22 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov  4 23:04:23 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411042159080.12527@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Thu, 4 Nov 2004 22:23:01 -0800 (PST)")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
	<Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
	<E1CPnf8-000B33-2v@trinity.supernews.net>
	<Pine.LNX.4.62.0411041155110.24364@shiva1.cac.washington.edu>
	<E1CPoZz-000C0B-EK@trinity.supernews.net>
	<Pine.LNX.4.62.0411041254000.29918@shiva1.cac.washington.edu>
	<874qk43n8s.fsf@windlord.stanford.edu>
	<Pine.LNX.4.62.0411042159080.12527@shiva1.cac.washington.edu>
Message-ID: <87sm7oydxl.fsf@windlord.stanford.edu>

Mark Crispin <mrc@CAC.Washington.EDU> writes:

> Note, however, that TLS protects more than public posting.  It also
> protects the exchange of authentication credentials.  For better or
> worse, the overwhelming majority of authentications involve userid and
> password, transmitted to the server in the clear.

Well, the majority (but probably not overwhelming any more) of NNTP
authentications are based on the IP address of the connecting client and
don't involve any protocol commands at all, since anything heavier-weight
isn't judged to be worth the tradeoff.  (Sites like Supernews are a
special case since they have clients all over the Internet, but most news
servers are for particular organizations, and just accept all connections
coming from the IP addresses of those organizations.)  I'm not sure how
long this will continue to be viable, particularly for protecting posting,
but my experience with helping people install INN is that this is what the
significant majority of INN installations use.

Part of the problem, of course, is the lack of support in clients for
sensible authentication mechanisms that don't involve handing your
passwords out to every server you talk to and sticking them into every
client program you run, but if I start ranting about Kerberos and lack of
support thereof even with network protocols that have allowed for it for
years, I'll be here all day.  :)

> I am reasonably confident that IESG will not permit AUTHINFO USER or
> AUTHINFO SASL PLAIN to be standardized without mandatory TLS.

Yup, I agree with you.

The restriction on AUTHINFO USER will likely be ignored by everyone,
however, even if we put it into the protocol.  I doubt we're going to see
anyone change existing practice for AUTHINFO USER; our best hope is to get
them to do the right thing when they go to AUTHINFO SASL.

But that doesn't mean I think we should take it out.  I'm just saying that
what the standard will say for good, valid security reasons and what
people will do is going to differ for a while, due to where we're at right
now and the slow speed of change.

I don't expect anyone to be convinced that session hijacking is a real
problem until spammers start doing it on a broad basis.  This is one of
those things that is likely to require negative things to happen in
practice before installation configurations will change.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From clive at demon.net  Fri Nov  5 00:51:45 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Nov  5 00:55:29 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87wtx0yefw.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
Message-ID: <20041105085145.GA60994@finch-staff-1.thus.net>

Russ Allbery said:
> Okay, I've read and I think digested all of the long threads about the
> NNTPv2 label and related issues.
[...]

I have a number of issues I want to talk through before we make final
decisions on this. I'm going to be off-net for most of today and Monday,
but I'll try to write some stuff ASAP.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Fri Nov  5 06:36:27 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 06:35:31 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <87zn1w28k4.fsf@windlord.stanford.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>	<416D785F.5080107@oceana.com>	<20041015091534.GD86062@finch-staff-1.thus.net>	<416FCE9E.4060908@oceana.com>	<20041018101311.GI31499@finch-staff-1.thus.net>	<4173CEE5.90303@oceana.com>	<20041027075906.GB25499@finch-staff-1.thus.net>	<417F887B.9010601@oceana.com>	<20041027114116.GG25499@finch-staff-1.thus.net>	<417FA1A6.5040601@oceana.com>
	<87zn1w28k4.fsf@windlord.stanford.edu>
Message-ID: <418B8FEB.7060709@oceana.com>

Russ Allbery wrote:

> Ken Murchison <ken@oceana.com> writes:
> 
>>Clive D.W. Feather wrote:
>>
>>>Ken Murchison said:
> 
> 
>>>>I guess the only additional char (beyond what you've outlined) which
>>>>sticks out as potentially usable for keywords is '_'
> 
> 
>>>I think we only want one of '-' and '_'. I don't greatly care which,
>>>though I think the former is slightly preferable.
> 
> 
>>I don't care enough to make a big issue out of it.  I'll let the rest of
>>the WG (you and Russ) decide which one(s) will be used.
> 
> 
> I've been engaging in a completely irrational war against underscores for
> years, so I'm quite happy with a dash.  :)  (Really, I don't much care one
> way or the other, and can't see omitting '_' causing any real problems for
> anyone.)

Whatever we do, we should make sure that we're consistent with the use 
of the extension label as documented for the 401 response (which 
currently includes "MODE-READER").

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Nov  5 06:45:54 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 06:44:57 2004
Subject: [NNTP] Optional LIST commands
In-Reply-To: <871xf8zuox.fsf_-_@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>
	<871xf8zuox.fsf_-_@windlord.stanford.edu>
Message-ID: <418B9222.9090506@oceana.com>

Russ Allbery wrote:

> Clive D W Feather <clive@demon.net> writes:
> 
>>Ken Murchison said:
> 
> 
>>>I like the idea of advertising whether MODE READER is required and
>>>which optional LIST commands are supported, but I don't see where our
>>>new token needs to be used as part of this.
> 
> 
>>These are features of the core protocol, not extensions. Therefore, in
>>my opinion, they belong with the support information for the core
>>extension.  Note how we have "OVER MSGID" rather than separate "OVER"
>>and "OVER-MSGID" capabilities.
> 
> 
> So, here's a question.  Why *aren't* they extensions?  If it's just
> because they were in RFC 977, I don't think that's a very good reason;

Actually, to strengthen the argument, they weren't in RFC 977, they are 
only documented in RFC 2980, which IMHO definitely puts them in the 
extension category.


> Here's a proposal:  Why don't we make LIST NEWSGROUPS mandatory (pretty
> much everyone implements it, even if they don't have any data to return,
> and the case of not having any data to return is already supported in the
> description of the command), and make LIST ACTIVE.TIMES, LIST
> DISTRIB.PATS, and LIST DISTRIBUTIONS separate extensions?

Works for me.  I'd [re]suggest a "LIST" extension with one or more 
arguments, e.g.:

[C] LIST EXTENSIONS
[S] LIST ACTIVE.TIMES DISTRIBUTIONS
[S] .

Of course, if we don't allow '.' in arguments, we could use '-' instead.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Nov  5 07:51:29 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 07:50:33 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87wtx0yefw.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
Message-ID: <418BA181.4060504@oceana.com>

Russ Allbery wrote:

I agree with all of Russ' points.  No surprise, since he has agreed with 
most of my opinions on this topic  ;)


> I see what Clive is getting at by making the extension label "NNTP 2" or
> the like instead of "NNTPv2", but I think it's better to go the route that
> lets us advertise compatibility with multiple NNTP versions rather than
> going the route that lets clients compare numbers.  Again, I'd rather
> follow IMAP here.  I don't see a need for minor protocol revisions
> indicating backward-compatible changes; I think that is subsumed by the
> ability to advertise compatibility with multiple revisions (listing both
> NNTPv2 and NNTPv3 extension labels, for instance).

Just to clarify the way that I envision that this would work (and the 
way it currently works in IMAP).  If NNTPv3 adds to NNTPv2 and retains 
NNTPv2 functionality, then only NNTPv3 would have to be advertised by 
the server (although there would be no harm in also advertising NNTPv2). 
  If NNTPv3 removes functionality from NNTPv2, but the server retains 
this functionality, then both NNTPv3 and NNTPv2 would have to be advertised.


 > At the least, we need
> to advertise whether MODE READER is required.  I think there are four
> possible states the server can be in:  all commands supported; reader
> commands not supported until after MODE READER; transit commands not
> supported at all; and reader commands not supported at all.  I think the
> best way to indicate those states would be with two extensions:
> 
>     NOREADER [MODE-READER]
>     NOTRANSIT
> 
> (those may not be the best names).  NOTRANSIT is a negative extension
> saying that IHAVE is not supported, which saves a client the need to try
> it and get 502.  NOREADER is a negative extension saying that reader
> commands (ARTICLE, BODY, POST, GROUP, LAST, NEXT, NEWGROUPS, and NEWNEWS)
> are not available.  If the optional MODE-READER parameter is given, it
> indicates that they will be available (possibly still requiring STARTTLS
> and authentication) after issuing MODE READER.  Note that this label
> doesn't need to imply anything about extensions, since that can be done
> with the presence or absence of the extension labels themselves.

Works for me.  The only question that I have is whether these 
capabilities are advertised as arguments to NNTPv2 or as standalone 
extension labels?  The only alternative names that I have for the 
capabilities would be something like "READINGDISABLED" and 
"TRANSPORTDISABLED"


> After Mark's messages, I've been convinced that we should mandate the
> order of the state change commands.  The correct order as near as I can
> tell would be:
> 
>     MODE READER
>     STARTTLS
>     AUTHINFO

If we do this, then I can add the same language to STARTTLS and AUTHINFO 
that I proposed for yesterday for OVER, etc.


> (where you can skip the initial MODE READER if your initial LIST
> EXTENSIONS doesn't have the NOREADER extension listed).  That still means
> that a connection with TLS and authentication requires seven commands to
> initiate in the worst case, though, which is rather obscene:
> 
>     LIST EXTENSIONS
>     MODE READER
>     LIST EXTENSIONS
>     STARTTLS
>     LIST EXTENSIONS
>     AUTHINFO SASL
>     LIST EXTENSIONS
> 
> Of course, nearly all servers won't require MODE READER, which cuts out
> the second and third commands.
> 
> One could cut this down by one more command by adding some sort of initial
> extension advertisement to the greeting, but this worries me for the
> reasons stated by Clive and Andrew, just in a cleanliness sense.  It's
> worth considering, though.

I understand that most folks find this proposal somewhat "distasteful" 
(for lack of a better term), but does anyone have any *technical* 
reasons why this can't work?


> One can also gain a round trip with a different idea, namely having
> successful successful AUTHINFO SASL (which is a new commands, so we can do
> whatever we want with it) include LIST EXTENSIONS output in its response.
> I'm not sure what I think of that; I'm guessing it's a bad idea since no
> one else does it.

I don't think IMAP disallows it.  Mark, does your server do this?

I don't see any technical reasons why we can't.  The only issue would be 
that if a SASL security layer is negotiated, any extensions returned in 
the response would probably be ignored by the client anyways, since the 
response is sent in the clear.  Only subsequent commands (e.g. LIST 
EXTENSION) are protected by the SASL security layer.

So, assuming capabilities are advertised in 200, 201, 281 and 283, this 
would look like:

	[MODE READER]
	STARTTLS
	LIST EXTENSIONS
	AUTHINFO
	[LIST EXTENSIONS]

MODE READER would only be used if required by the server and the second 
LIST EXTENSIONS would only be used if a SASL security layer was negotiated.


> and the LIST
> EXTENSIONS after AUTHINFO is required if authenticating changes anything
> about what you can do.  (Although I'm wondering how often authenticating
> is really going to change anything other than noting that you can no
> longer run STARTTLS or AUTHINFO again, and if clients would really need to
> check there.)

I'm probably not qualified to answer this, but might there be a case 
where "lightweight" reading is offered for free (w/o authentication), 
but more "expensive" commands such as NEWNEWS or OVER or some future 
XSEARCH are only allowed to (paying) customers that authenticate?


> Do we want to get into advertising whether commands are permitted for a
> particular client?  (POST and NEWNEWS are the ones most frequently not
> permitted.)

Doesn't the 201 response signal that POST is disabled, or I'm I 
completely clueless?  NEWNEWS can probably just spit back 503, correct?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Fri Nov  5 08:19:52 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 08:19:54 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <418BA181.4060504@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
Message-ID: <Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>

On Fri, 5 Nov 2004, Ken Murchison wrote:
> I agree with all of Russ' points.  No surprise, since he has agreed with most 
> of my opinions on this topic  ;)

I think that I do as well, but I need to digest his message more 
thoroughly.

> Works for me.  The only question that I have is whether these capabilities 
> are advertised as arguments to NNTPv2 or as standalone extension labels?

IMHO, standalone labels are easier to deal with.  Ease of client 
implementation has priority over before syntactic sugar.

>> After Mark's messages, I've been convinced that we should mandate the
>> order of the state change commands.  The correct order as near as I can
>> tell would be:
>>     MODE READER
>>     STARTTLS
>>     AUTHINFO
> If we do this, then I can add the same language to STARTTLS and AUTHINFO that 
> I proposed for yesterday for OVER, etc.

I wish that I could sign off on this, but I don't recall precisely which 
server(s) issued a 480 to MODE READER.  I won't sign off on this unless 
that 480 is explicitly forbidden.

>> One could cut this down by one more command by adding some sort of initial
>> extension advertisement to the greeting, but this worries me for the
>> reasons stated by Clive and Andrew, just in a cleanliness sense.  It's
>> worth considering, though.
> I understand that most folks find this proposal somewhat "distasteful" (for 
> lack of a better term), but does anyone have any *technical* reasons why this 
> can't work?

IMAP status response codes and SMTP extended response codes both prove 
that it can (and does work).

>> One can also gain a round trip with a different idea, namely having
>> successful successful AUTHINFO SASL (which is a new commands, so we can do
>> whatever we want with it) include LIST EXTENSIONS output in its response.
>> I'm not sure what I think of that; I'm guessing it's a bad idea since no
>> one else does it.
> I don't think IMAP disallows it.  Mark, does your server do this?

My IMAP server used to issue an untagged CAPABILITY response to a LOGIN or 
AUTHENTICATE command, but this annoys IMAP2 clients (believe it or not, 
such things still exist in the world!).  As a result, it's now carried in 
the command response (which is completely compatible with IMAP2).

Here is a startup from a real IMAP4rev1 session:

S: * OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS STARTTLS LOGINDISABLED AUTH=CRAM-MD5 AUTH=ANONYMOUS] Ikkoku-Kan.Panda.COM IMAP4rev1 2004.355 at Fri, 5 Nov 2004 08:06:25 -0800 (PST)
C: 00000000 STARTTLS
S: 00000000 OK STARTTLS completed
C: 00000001 CAPABILITY
S: * CAPABILITY IMAP4REV1 LITERAL+ IDLE NAMESPACE MAILBOX-REFERRALS BINARY UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND SASL-IR LOGIN-REFERRALS AUTH=CRAM-MD5 AUTH=PLAIN AUTH=LOGIN AUTH=ANONYMOUS
S: 00000001 OK CAPABILITY completed
C: 00000002 AUTHENTICATE CRAM-MD5
S: + PDQyMzguMTA5OTY3MDc5MUBJa2tva3UtS2FuLlBhbmRhLkNPTT4=
C: bXJjIDM2M2I1NzU3YjVmMDY3ODI1YjkxZGVlODM5Y2IwZmJl
S: 00000002 OK [CAPABILITY IMAP4REV1 LITERAL+ IDLE NAMESPACE MAILBOX-REFERRALS BINARY UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User mrc authenticated

Note that this entire exchange was just 4 RTTs.  It would have been 3, 
except that the CRAM-MD5 SASL authenticator requires a server challenge.

Note also that there are many more capabilities, and a much more complex 
protocol, than in NNTP; yet the responses were still much smaller than 512 
octets.

If we had been clever with TLS, we would have designed STARTTLS so that 
there was an intermediate response (not under TLS) and a final response 
(under TLS) so the exchange looked like:

C: 001 STARTTLS
S: + TLS starting, switch now
S: 001 OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=CRAM-MD5 AUTH=PLAIN AUTH=LOGIN AUTH=ANONYMOUS] If you see this we are talking TLS

This would have eliminated the need for the extra CAPABILITY command and 
thus reduced another RTT.

> I don't see any technical reasons why we can't.  The only issue would be that 
> if a SASL security layer is negotiated, any extensions returned in the 
> response would probably be ignored by the client anyways, since the response 
> is sent in the clear.  Only subsequent commands (e.g. LIST EXTENSION) are 
> protected by the SASL security layer.

Same comment about more cleverness applies here too.

>> (Although I'm wondering how often authenticating
>> is really going to change anything other than noting that you can no
>> longer run STARTTLS or AUTHINFO again, and if clients would really need to
>> check there.)
> I'm probably not qualified to answer this, but might there be a case where 
> "lightweight" reading is offered for free (w/o authentication), but more 
> "expensive" commands such as NEWNEWS or OVER or some future XSEARCH are only 
> allowed to (paying) customers that authenticate?

Right.

Also, servers which require authentication may decline to advertise their 
feature set to hackers who don't have an account.

>> Do we want to get into advertising whether commands are permitted for a
>> particular client?  (POST and NEWNEWS are the ones most frequently not
>> permitted.)
> Doesn't the 201 response signal that POST is disabled, or I'm I completely 
> clueless?  NEWNEWS can probably just spit back 503, correct?

Yes!!  There should be a POST and NEWNEWS capability, and less reliance 
upon magic response codes.

Done right, clients should be able to care only about the first digit of 
the response code.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Fri Nov  5 08:47:44 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 08:46:51 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
Message-ID: <418BAEB0.2070805@oceana.com>

Mark Crispin wrote:
> 
>>> After Mark's messages, I've been convinced that we should mandate the
>>> order of the state change commands.  The correct order as near as I can
>>> tell would be:
>>>     MODE READER
>>>     STARTTLS
>>>     AUTHINFO
>>
>> If we do this, then I can add the same language to STARTTLS and 
>> AUTHINFO that I proposed for yesterday for OVER, etc.
> 
> 
> I wish that I could sign off on this, but I don't recall precisely which 
> server(s) issued a 480 to MODE READER.  I won't sign off on this unless 
> that 480 is explicitly forbidden.

If it was my Cyrus NNTP server, its a mistake.

I'll defer to others on whether forbidding 480 will work in the wild.

>>> Do we want to get into advertising whether commands are permitted for a
>>> particular client?  (POST and NEWNEWS are the ones most frequently not
>>> permitted.)
>>
>> Doesn't the 201 response signal that POST is disabled, or I'm I 
>> completely clueless?  NEWNEWS can probably just spit back 503, correct?
> 
> 
> Yes!!  There should be a POST and NEWNEWS capability, and less reliance 
> upon magic response codes.

So, you're proposing "POSTDISABLED" and "NEWNEWSDISABLED" capabilities?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Nov  5 09:05:56 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 09:05:00 2004
Subject: [NNTP] Proposed changes to draft-ietf-nntpext-streaming-02
In-Reply-To: <87654kzv0n.fsf@windlord.stanford.edu>
References: <41890D7B.4010707@oceana.com>
	<87654kzv0n.fsf@windlord.stanford.edu>
Message-ID: <418BB2F4.3040402@oceana.com>

Russ Allbery wrote:

> The proposed changes to all three of the drafts look good to me.
> 
> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>Outstanding issue:
> 
> 
>>    o Do we want to add any discussion of the server issuing a 400 (or
>>      maybe a 403) response to TAKETHIS?
> 
> 
> I think so.  Here's some suggested text:
> 
>     If the server encounters a temporary error that prevents it from
>     processing the article but does not want to reject the article, it
>     MUST reply with a 400 response to the client and close the connection.
> 
> I'm nervous about the effect of 403 on existing implementations, but
> probably wouldn't object strongly if it were added as an additional
> alternative here, like:
> 
>     If the server encounters a temporary error that prevents it from
>     processing the article but does not want to reject the article, it
>     MUST reply with either a 403 or a 400 response to the client.  A
>     400 response (which is followed by the server closing the connection)
>     is recommended if the error is likely to affect all subsequent
>     attempts to transfer articles as well.


I'll hold off on adding text about 403 until we hear from Andrew on 
this.  If we don't discuss 403, I might combine your two versions into 
something like:

"If the server encounters a temporary error that prevents it from
processing the article (such as disk full) but does not want to reject 
the article, and the error is likely to affect all subsequent attempts 
to transfer articles, it MUST reply with a 400 response to the client 
and close the connection."


The point being that if the error only affects the given article 
(however unlikely), closing the connection seems unfriendly.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Fri Nov  5 09:39:49 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 09:39:52 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <418BAEB0.2070805@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<418BAEB0.2070805@oceana.com>
Message-ID: <Pine.LNX.4.62.0411050937540.28677@shiva1.cac.washington.edu>

On Fri, 5 Nov 2004, Ken Murchison wrote:
> So, you're proposing "POSTDISABLED" and "NEWNEWSDISABLED" capabilities?

Either that, or POST and NEWNEWS capabilities.  Pick your poison.

Remember, with NNTPv2 we have a chance to redefine the base behavior as we 
please.

Internally, it's a check for "post" than "!postdisabled".

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From andrew at supernews.net  Fri Nov  5 10:47:56 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Nov  5 10:48:16 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Fri, 5 Nov 2004 08:19:52 -0800 (PST)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
Message-ID: <E1CQ98A-0003K9-0S@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <mrc@CAC.Washington.EDU> writes:

 Mark> I wish that I could sign off on this, but I don't recall
 Mark> precisely which server(s) issued a 480 to MODE READER.  I won't
 Mark> sign off on this unless that 480 is explicitly forbidden.

A quick survey of sites suggests that currently the Diablo reader has
this issue.

-- 
Andrew, Supernews
http://www.supernews.com

From jeff at litech.org  Fri Nov  5 13:01:55 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Fri Nov  5 13:03:22 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411042159080.12527@shiva1.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
	<Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
	<E1CPnf8-000B33-2v@trinity.supernews.net>
	<Pine.LNX.4.62.0411041155110.24364@shiva1.cac.washington.edu>
	<E1CPoZz-000C0B-EK@trinity.supernews.net>
	<Pine.LNX.4.62.0411041254000.29918@shiva1.cac.washington.edu>
	<874qk43n8s.fsf@windlord.stanford.edu>
	<Pine.LNX.4.62.0411042159080.12527@shiva1.cac.washington.edu>
Message-ID: <ECFF21FE-2F6D-11D9-83FE-000393032FF0@litech.org>

On Nov 5, 2004, at 1:23 AM, Mark Crispin wrote:

> Note, however, that TLS protects more than public posting.  It also 
> protects the exchange of authentication credentials.  For better or 
> worse, the overwhelming majority of authentications involve userid and 
> password, transmitted to the server in the clear.  Every NNTP server 
> that has password-based authentication but not mandatory TLS exposes 
> that user's password to every bad guy in the universe.

The overwhelming majority of authentications involve cleartext 
passwords because up until now that's essentially all there was.  I 
expect that SASL will play a substantial role in the future.  And over 
time, I believe NNTP (and hopefully many other protocols) are going to 
subsume their authentication and encryption into SASL, and be able to 
fold all of that into use of a SASL library.  I don't think this is 
naive, but I guess I could be wrong.

Regardless, the mere fact that authentication at present is cleartext 
unless protected by TLS is insufficient justification to distinguish 
STARTTLS as coming strangely before MODE READER.


> Now, you could have AUTHINFO SASL CRAM-MD5 or AUTHINFO SASL GSSAPI or 
> any other SASL authenticator that does not allow an eavesdropping 
> attacker to authenticate as the user, and get away without using TLS.  
> But that still doesn't address session hijacking problems.

Although, a SASL mechanism that establishes a security layer would 
suffice for this.


> Not using AUTHINFO at all, and instead relying upon client IP address 
> validation, doesn't address IP address spoofing.

Although I don't have any data, my impression is that most sites using 
IP addresses for authorization are in control of the entire block of 
IPs in question, the network paths between those IPs and the server, 
and the network paths to the server from the outside world.  Thus I 
expect the level of concern these administrators have for IP spoofing 
is quite low.  Even if such attacks became more common, I'd expect the 
easiest solution to be proper configuration of the involved network 
hardware...


-- 
Jeffrey M. Vinocur
jeff@litech.org

From jeff at litech.org  Fri Nov  5 13:21:03 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Fri Nov  5 13:21:25 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87wtx0yefw.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
Message-ID: <9901E09E-2F70-11D9-83FE-000393032FF0@litech.org>

On Nov 5, 2004, at 1:53 AM, Russ Allbery wrote:

> Okay, I've read and I think digested all of the long threads about the
> NNTPv2 label and related issues.  I'm pleasantly surprised that 
> everyone
> agreed that we should have the protocol version advertised; I thought 
> that
> was going to be controversial!

I've also been impressed by the amount of headway we've made; this is 
probably the most functional the WG has been in quite a while :-)

I agree strongly with most of what Russ has said.  A few comments 
follow.


> After Mark's messages, I've been convinced that we should mandate the
> order of the state change commands.  The correct order as near as I can
> tell would be:
>
>     MODE READER
>     STARTTLS
>     AUTHINFO

I agree with that order; I found some of the orders discussed up-thread 
rather odd.


> (Although I'm wondering how often authenticating
> is really going to change anything other than noting that you can no
> longer run STARTTLS or AUTHINFO again, and if clients would really 
> need to
> check there.)

I wonder this as well.  But even if we manage to say something like "no 
previously advertised extensions can be removed except for the 
following" and "clients only need to send LIST EXTENSIONS again if they 
might be interested in some extension not previously advertised," then 
as soon as there's one common extension that becomes available 
mid-session, everything will degenerate into the "must send LIST 
EXTENSIONS" case again.

Also, I have the impression that NNTP sessions are somewhat 
longer-lived than most protocols, and thus that startup overhead is 
relatively less important.  But I could be wrong about that.


> Do we want to get into advertising whether commands are permitted for a
> particular client?  (POST and NEWNEWS are the ones most frequently not
> permitted.)

If we're going to start advertising whether reading commands are 
available, and then whether various other commands like NEWNEWS are 
available (and doing such advertising seems very reasonable to me), and 
then we get into whether they're available only after MODE READER, and 
then we get into whether they're available after 
authentication...perhaps we should try to tackle this in some uniform 
way.

Part of my concern is for cleanliness, but part of it is also for its 
effect on behavior.  I mean, suppose the unauthenticated client sees 
that it has general newsreading capabilities (NOREADER is not 
advertised), but doesn't see NEWNEWS advertised.  Suppose the client 
prefers NEWNEWS, but can fall back to alternative core commands if 
NEWNEWS is not available (I believe this is a common client 
implementation choice).  Now the client software has no way of knowing 
(without explicit user configuration) whether it should prompt the user 
to authenticate, or give up on NEWNEWS and start downloading articles 
immediately using the alternative mechanisms.

And yes, I realize this could also balloon into something quite 
complicated.

-- 
Jeffrey M. Vinocur
jeff@litech.org

From jeff at litech.org  Fri Nov  5 13:25:13 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Fri Nov  5 13:25:35 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <418BAEB0.2070805@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<418BAEB0.2070805@oceana.com>
Message-ID: <2DECBE70-2F71-11D9-83FE-000393032FF0@litech.org>

On Nov 5, 2004, at 11:47 AM, Ken Murchison wrote:

> So, you're proposing "POSTDISABLED" and "NEWNEWSDISABLED" capabilities?

Oof, these extension names (and NOREADER, NOTRANSIT) are kinda making 
my head spin.  I think we should try to stick to non-negated names 
where possible.  Even something like:

TRANSIT YES
READER MODE-READER-REQUIRED
POST NO
NEWNEWS NO

would be less confusing, I think?


-- 
Jeffrey M. Vinocur
jeff@litech.org

From rra at stanford.edu  Fri Nov  5 13:55:39 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 13:55:41 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <E1CQ98A-0003K9-0S@trinity.supernews.net> (andrew@supernews.net's
	message of "Fri, 05 Nov 2004 18:47:56 +0000")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
Message-ID: <87d5ysx8o4.fsf@windlord.stanford.edu>

"Andrew - Supernews" <andrew@supernews.net> writes:
>>>>>> "Mark" == Mark Crispin <mrc@CAC.Washington.EDU> writes:

>  Mark> I wish that I could sign off on this, but I don't recall
>  Mark> precisely which server(s) issued a 480 to MODE READER.  I won't
>  Mark> sign off on this unless that 480 is explicitly forbidden.

> A quick survey of sites suggests that currently the Diablo reader has
> this issue.

This strikes me as obviously wrong behavior that should be explicitly
banned in the standard.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Fri Nov  5 15:08:05 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 15:10:12 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <E1CQ98A-0003K9-0S@trinity.supernews.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
Message-ID: <Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>

On Thu, 4 Nov 2004, Russ Allbery wrote:
> As the maintainer of INN, I can assure you with 100% certainty that this
> order will NOT work in the unusual situation where MODE READER is
> required.  Your AUTHINFO command will fail before MODE READER, and after
> nnrpd spawns it will have no idea that you ever attempted it.

On Fri, 5 Nov 2004, Andrew - Supernews wrote:
> Mark> I wish that I could sign off on this, but I don't recall
> Mark> precisely which server(s) issued a 480 to MODE READER.  I won't
> Mark> sign off on this unless that 480 is explicitly forbidden.
> A quick survey of sites suggests that currently the Diablo reader has
> this issue.

Well, then, we have the worst-case situation.

Some servers require MODE READER first, and some other servers require 
AUTHINFO first.

I respectfully submit that this situation is unacceptable from the 
viewpoint of a client author.  NNTPv2 should rule and either determine One 
True Order, or declare that the order is totally dependent upon the 
client.

Since Russ is here with us, there may be more hope in expecting inn to 
submit to the new world order.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Fri Nov  5 15:11:27 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 15:13:33 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87sm7oydxl.fsf@windlord.stanford.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<Pine.LNX.4.62.0411040849290.17595@shiva1.cac.washington.edu>
	<E1CPmTM-0009oU-Gu@trinity.supernews.net>
	<Pine.LNX.4.62.0411041107510.24364@shiva1.cac.washington.edu>
	<E1CPnf8-000B33-2v@trinity.supernews.net>
	<Pine.LNX.4.62.0411041155110.24364@shiva1.cac.washington.edu>
	<E1CPoZz-000C0B-EK@trinity.supernews.net>
	<Pine.LNX.4.62.0411041254000.29918@shiva1.cac.washington.edu>
	<874qk43n8s.fsf@windlord.stanford.edu>
	<Pine.LNX.4.62.0411042159080.12527@shiva1.cac.washington.edu>
	<87sm7oydxl.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411051509170.4712@Tomobiki-Cho.CAC.Washington.EDU>

On Thu, 4 Nov 2004, Russ Allbery wrote:
> I'm not sure how
> long this will continue to be viable, particularly for protecting posting,
> but my experience with helping people install INN is that this is what the
> significant majority of INN installations use.

I suspect that you and I are loudly agreeing.

> I don't expect anyone to be convinced that session hijacking is a real
> problem until spammers start doing it on a broad basis.  This is one of
> those things that is likely to require negative things to happen in
> practice before installation configurations will change.

I fear that you're right on this point.  On the other hand, the fact that 
the right thing isn't taken seriously today doesn't mean that we should 
stop saying it.  Otherwise, when the problem *does* start happening, we're 
going to need a new working group to devise the standards to react to it.

Proactive is always better than reactive.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Fri Nov  5 15:13:40 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 15:13:42 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Fri, 5 Nov 2004 15:08:05 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <877jozvqhn.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:

> Well, then, we have the worst-case situation.

> Some servers require MODE READER first, and some other servers require
> AUTHINFO first.

I think the situation is not actually as bad as that, as I believe Diablo
doesn't require MODE READER at all (just "helpfully" returns 480 if you
happen to use it before you're authenticated).  They're equivalently bad
from a client writer's standpoint, but it means that it should be very
easy to get Diablo fixed; it's probably just one line of code.

> I respectfully submit that this situation is unacceptable from the
> viewpoint of a client author.  NNTPv2 should rule and either determine
> One True Order, or declare that the order is totally dependent upon the
> client.

I certainly agree with you.  I think we can declare one true order.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Fri Nov  5 15:47:07 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 15:47:18 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <877jozvqhn.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>	<E1CQ98A-0003K9-0S@trinity.supernews.net>	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu>
Message-ID: <418C10FB.4060306@oceana.com>

Russ Allbery wrote:
> Mark Crispin <MRC@CAC.Washington.EDU> writes:
> 
> 
>>Well, then, we have the worst-case situation.
> 
> 
>>Some servers require MODE READER first, and some other servers require
>>AUTHINFO first.
> 
> 
> I think the situation is not actually as bad as that, as I believe Diablo
> doesn't require MODE READER at all (just "helpfully" returns 480 if you
> happen to use it before you're authenticated).  They're equivalently bad
> from a client writer's standpoint, but it means that it should be very
> easy to get Diablo fixed; it's probably just one line of code.
> 
> 
>>I respectfully submit that this situation is unacceptable from the
>>viewpoint of a client author.  NNTPv2 should rule and either determine
>>One True Order, or declare that the order is totally dependent upon the
>>client.
> 
> 
> I certainly agree with you.  I think we can declare one true order.

OK.  Assuming that we're sticking with

     MODE READER
     STARTTLS
     AUTHINFO


I will fix the STARTTLS and AUTHINFO docs to state:

"On servers that require the use of the MODE READER command, the
STARTTLS/AUTHINFO command can only be used after the MODE READER command."


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From MRC at CAC.Washington.EDU  Fri Nov  5 15:50:03 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 15:52:10 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <418C10FB.4060306@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
Message-ID: <Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>

On Fri, 5 Nov 2004, Ken Murchison wrote:
> OK.  Assuming that we're sticking with
>    MODE READER
>    STARTTLS
>    AUTHINFO
> I will fix the STARTTLS and AUTHINFO docs to state:
> "On servers that require the use of the MODE READER command, the
> STARTTLS/AUTHINFO command can only be used after the MODE READER command."

I have a problem with that choice.

The effect is to break tens (hundreds?) of thousands of deployed Pine 
clients (and other clients based upon the c-client library), and some 
unknown number of Diablo servers.

My impression is that most inn servers will *not* be broken if we choose:
 	STARTTLS
 	AUTHINFO
 	MODE READER
Indeed, even though many people use inn servers with Pine, *nobody* has 
complained about Pine having this order.

How many inn servers would be broken?  Just a handful?  Wouldn't it be 
easier to fix those handful of inn servers?

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Fri Nov  5 16:22:20 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 16:22:22 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Fri, 5 Nov 2004 15:50:03 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87fz3nu8qr.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:

> The effect is to break tens (hundreds?) of thousands of deployed Pine
> clients (and other clients based upon the c-client library), and some
> unknown number of Diablo servers.

> My impression is that most inn servers will *not* be broken if we choose:

>  	STARTTLS
>  	AUTHINFO
>  	MODE READER

> Indeed, even though many people use inn servers with Pine, *nobody* has
> complained about Pine having this order.

> How many inn servers would be broken?  Just a handful?  Wouldn't it be
> easier to fix those handful of inn servers?

Every server that actually requires MODE READER will be broken by that
order.  Fixing the servers that require that order is equivalent to
eliminating MODE READER entirely.

You can see why by observing what MODE READER does on a system that
actually needs it:  it causes a separate program to be spawned and the
connection passed to that program, destroying all established session
state.  There's no way to preserve a TLS connection and an authentication
session across that sort of change.

I'm really sorry that it looked like this was the right thing to do.  :/
This is absolutely the fault of the NNTP community for never having
written a proper specification for MODE READER.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From andrew at supernews.net  Fri Nov  5 16:24:18 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Nov  5 16:24:37 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87d5ysx8o4.fsf@windlord.stanford.edu> (Russ Allbery's message
	of "Fri, 05 Nov 2004 13:55:39 -0800")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<87d5ysx8o4.fsf@windlord.stanford.edu>
Message-ID: <E1CQENd-0008L1-5u@trinity.supernews.net>

>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

 Mark> I wish that I could sign off on this, but I don't recall
 Mark> precisely which server(s) issued a 480 to MODE READER.  I won't
 Mark> sign off on this unless that 480 is explicitly forbidden.

 >> A quick survey of sites suggests that currently the Diablo reader
 >> has this issue.

 Russ> This strikes me as obviously wrong behavior that should be
 Russ> explicitly banned in the standard.

I agree.

The types of authentication available, and the process by which
authentication happens in the server are at least potentially
dependent on whether MODE READER has been issued. So requiring
authentication to come first doesn't seem to make any sense at all.
(However, I do not know enough about the authentication model in the
Diablo reader to know if this is something easily fixable in it.)

-- 
Andrew, Supernews
http://www.supernews.com

From MRC at CAC.Washington.EDU  Fri Nov  5 16:33:06 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 16:35:12 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87fz3nu8qr.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>

On Fri, 5 Nov 2004, Russ Allbery wrote:
> Every server that actually requires MODE READER will be broken by that
> order.  Fixing the servers that require that order is equivalent to
> eliminating MODE READER entirely.

Only those servers which *also* have STARTTLS and/or AUTHINFO.

How many such servers are there in the wild?  I suspect that this is a 
very small number.

> You can see why by observing what MODE READER does on a system that
> actually needs it:  it causes a separate program to be spawned and the
> connection passed to that program, destroying all established session
> state.  There's no way to preserve a TLS connection and an authentication
> session across that sort of change.

I certainly understand the technical difficulty (not impossibility) of 
fixing this.  That doesn't mean that this isn't the right solution, 
especially when we consider the task of changing a handful of deployed 
servers (if any) against tens of thousands of deployed clients.

It may be possible to help inn by making some simplifying assumptions. 
For example, if STARTTLS and AUTHINFO are assumed to be done only by 
readers, then these commands can do an implicit MODE READER and then make 
the subsequent MODE READER be a no-op.

If it's necessary for peers to do TLS and/or authentication, perhaps we 
could have a separate command for peer TLS and/or authentication.


Of course, I'm happy with the notion of eliminating MODE READER entirely 
(which I agree is what this all implies), so my position has to be 
considered with that in mind... :-)

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Fri Nov  5 16:43:51 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 16:43:53 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Fri, 5 Nov 2004 16:33:06 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <873bznu7qw.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:
> On Fri, 5 Nov 2004, Russ Allbery wrote:

>> Every server that actually requires MODE READER will be broken by that
>> order.  Fixing the servers that require that order is equivalent to
>> eliminating MODE READER entirely.

> Only those servers which *also* have STARTTLS and/or AUTHINFO.

> How many such servers are there in the wild?  I suspect that this is a
> very small number.

The point is more that there isn't any way to fix this *in software* to
make your order work other than eliminating the MODE READER command
altogether.  There is nothing that I can do to INN to make the current
Pine work properly for servers that require MODE READER; all I could do is
make it impossible to install INN in a currently supported configuration.

I'm not saying this is impossible; I'm just saying that if we're going to
do this, we should simply eliminate MODE READER entirely.  It makes no
sense to continue to describe it but allow it to be sent after
authentication.

> It may be possible to help inn by making some simplifying
> assumptions. For example, if STARTTLS and AUTHINFO are assumed to be
> done only by readers, then these commands can do an implicit MODE READER
> and then make the subsequent MODE READER be a no-op.

AUTHINFO, unfortunately, is not only used by readers.

> Of course, I'm happy with the notion of eliminating MODE READER entirely
> (which I agree is what this all implies), so my position has to be
> considered with that in mind... :-)

Right.  :)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Fri Nov  5 17:16:32 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 17:18:38 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <873bznu7qw.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>

On Fri, 5 Nov 2004, Russ Allbery wrote:
> I'm not saying this is impossible; I'm just saying that if we're going to
> do this, we should simply eliminate MODE READER entirely.

I would shed no tears over this outcome.

But!!!

If it's just the AUTHINFO userid, why can't it be passed as part of the 
invocation to the MODE READER server via environment variable or argv?

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Fri Nov  5 17:23:52 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 17:23:54 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Fri, 5 Nov 2004 17:16:32 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <878y9fsrbr.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:

> If it's just the AUTHINFO userid, why can't it be passed as part of the
> invocation to the MODE READER server via environment variable or argv?

Privacy layers negotiated by AUTHINFO SASL.  You're right that if it's
just an AUTHINFO USER case, it's solvable, but it doesn't work with the
more general case going forward.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Fri Nov  5 17:36:21 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 17:38:28 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <878y9fsrbr.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>

On Fri, 5 Nov 2004, Russ Allbery wrote:
> Privacy layers negotiated by AUTHINFO SASL.  You're right that if it's
> just an AUTHINFO USER case, it's solvable, but it doesn't work with the
> more general case going forward.

Are SASL privacy layers actually implemented in inn yet?  If so, which 
SASL methods?

If not, we're not talking about breaking deployed software.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Fri Nov  5 17:42:14 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 17:42:16 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Fri, 5 Nov 2004 17:36:21 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87u0s3rbwp.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:
> On Fri, 5 Nov 2004, Russ Allbery wrote:

>> Privacy layers negotiated by AUTHINFO SASL.  You're right that if it's
>> just an AUTHINFO USER case, it's solvable, but it doesn't work with the
>> more general case going forward.

> Are SASL privacy layers actually implemented in inn yet?  If so, which
> SASL methods?

Yes, privacy layers are implemented for every SASL method that has them
and is supported by the Cyrus SASL library (which is at least GSSAPI I
know).  Regardless of implementation, though, the standard allows for them
and I don't really want to fiddle with SASL.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Fri Nov  5 17:49:00 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 17:49:02 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <418BA181.4060504@oceana.com> (Ken Murchison's message of "Fri,
	05 Nov 2004 10:51:29 -0500")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
Message-ID: <87mzxvrblf.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Just to clarify the way that I envision that this would work (and the
> way it currently works in IMAP).  If NNTPv3 adds to NNTPv2 and retains
> NNTPv2 functionality, then only NNTPv3 would have to be advertised by
> the server (although there would be no harm in also advertising
> NNTPv2). If NNTPv3 removes functionality from NNTPv2, but the server
> retains this functionality, then both NNTPv3 and NNTPv2 would have to be
> advertised.

Hm.  That strikes me as odd -- how does an NNTPv2 client know if a server
advertising NNTPv3 is okay or not?  This would seem to require that
clients know whether NNTPv3 is backward-compatible when NNTPv3 may not
have even been written when the client was.

I must be missing something.

> Works for me.  The only question that I have is whether these
> capabilities are advertised as arguments to NNTPv2 or as standalone
> extension labels?  The only alternative names that I have for the
> capabilities would be something like "READINGDISABLED" and
> "TRANSPORTDISABLED"

I'd rather make them stand-alone labels.

Jeff's point is well-taken, though, and I'll write a separate reply to
that going into more depth about extension labels, particularly with
relation to commands that the client may not be allowed to issue.

>> One could cut this down by one more command by adding some sort of
>> initial extension advertisement to the greeting, but this worries me
>> for the reasons stated by Clive and Andrew, just in a cleanliness
>> sense.  It's worth considering, though.

> I understand that most folks find this proposal somewhat "distasteful"
> (for lack of a better term), but does anyone have any *technical*
> reasons why this can't work?

I don't.

I'd prefer to include only a subset of extensions in the initial reply
just because NNTP has a response length limit for single-line responses
and existing clients do rely on that.  It may be paranoia, but I know that
particularly with private extensions, extension lists can get rather long.

STARTTLS and AUTHINFO seem like the main ones that should be advertised,
and maybe a POST and IHAVE extension.

> I'm probably not qualified to answer this, but might there be a case
> where "lightweight" reading is offered for free (w/o authentication),
> but more "expensive" commands such as NEWNEWS or OVER or some future
> XSEARCH are only allowed to (paying) customers that authenticate?

Yeah, but in that case, wouldn't you advertise the extensions but reply
with a 480 code to attempts to use them, prompting the client to
authenticate?  That was what I'd been assuming in previous discussions of
extension advertisements, but maybe that's not the best way to do it?

The problem with not advertising extensions that the client is allowed to
use after authentication is that the client then has no idea whether the
extension is available but needs authentication or if it's just not there
at all.  Advertising it and then responding with 480 is annoying in the
terms of round trips, but at least lets the client figure everything out
eventually.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Fri Nov  5 17:48:29 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 17:50:35 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87u0s3rbwp.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0s3rbwp.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411051740460.4920@Tomobiki-Cho.CAC.Washington.EDU>

Well, then, I guess that it comes to whether more harm is caused by having 
to change:

  . a configuration (installed on a handful of sites at most) of one
    server implementation,

  . break until changed every client based upon the c-client library (most
    notably Pine -- we're talking about at least tens of thousands if not
    hundreds of thousands of separate implementations -- as well as break
    the fixed version of these clients against Diablo servers.

I agree that the choice is not unpalatable, and it would have been better 
if we could have avoided it.  But we didn't, and so we're screwed now.

If it helps matters, I would agree to a separate AUTHINFO/STARTLS command 
for clients vs. peers in return for the deprecation of MODE READER 
(replacing it with a no-op and servers MUST NOT require).

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Fri Nov  5 17:51:07 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 17:53:14 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87mzxvrblf.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com> <87mzxvrblf.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU>

On Fri, 5 Nov 2004, Russ Allbery wrote:
> Hm.  That strikes me as odd -- how does an NNTPv2 client know if a server
> advertising NNTPv3 is okay or not?

The server must advertise both NNTPv2 and NNTPv3.  A server which just 
advertises NNTPv3 is not OK to an NNTPv2 client.

This will place a chilling effect on any effort to create NNTPv3, perhaps 
permanently preventing it.  Good.

>> I'm probably not qualified to answer this, but might there be a case
>> where "lightweight" reading is offered for free (w/o authentication),
>> but more "expensive" commands such as NEWNEWS or OVER or some future
>> XSEARCH are only allowed to (paying) customers that authenticate?
> Yeah, but in that case, wouldn't you advertise the extensions but reply
> with a 480 code to attempts to use them, prompting the client to
> authenticate?  That was what I'd been assuming in previous discussions of
> extension advertisements, but maybe that's not the best way to do it?

I think that it's better to move away from magic response codes and use 
extensions exclusively.  The fact that authentication is offered is enough 
of a hint to anonymous clients that more can be gained through 
authentication.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From andrew at supernews.net  Fri Nov  5 18:11:42 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Nov  5 18:11:57 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Fri, 5 Nov 2004 15:50:03 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <E1CQG3Y-0009qN-Kl@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <MRC@CAC.Washington.EDU> writes:

 >> "On servers that require the use of the MODE READER command, the
 >> STARTTLS/AUTHINFO command can only be used after the MODE READER
 >> command."

Complication: a server can potentially require authentication for
_transit_ connections too, in which case the client would do AUTHINFO
without ever doing MODE READER at all. Having authenticated, it would
only do IHAVE. With INN, it could in theory do MODE READER later, but
that would, as a side effect, negate the previous authentication.

 Mark> I have a problem with that choice.

It happens to be logically necessary, since (from the server
perspective) authentication may depend on knowing whether MODE READER
has been done but not the reverse. For example, the set of available
authentication methods may be different.

This happens not to be an issue with Diablo, since the only effect
that MODE READER has on a Diablo reader is to disable some
functionality.

 Mark> Indeed, even though many people use inn servers with Pine,
 Mark> *nobody* has complained about Pine having this order.

It's quite likely that no-one has used it in a situation where it
matters (INN, transfer access _and_ authentication).

I got curious about what other clients were doing. The first two
that came to hand were slrn (because I use it) and knews (because
I recently had to fix its auth code for one of my users). In both
cases, they can cope with _either_ the INN or Diablo behaviour,
because they do this:

 - connect
 - issue MODE READER
 - if the response is 480, then authenticate and redo the command
   (this is generic handling of 480 in any case)
 - if configured to authenticate and not authenticated yet,
   then authenticate now

 Mark> How many inn servers would be broken?  Just a handful?
 Mark> Wouldn't it be easier to fix those handful of inn servers?

There is no "fix".

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Fri Nov  5 18:35:15 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Nov  5 18:35:31 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411051740460.4920@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Fri, 5 Nov 2004 17:48:29 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0s3rbwp.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051740460.4920@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <E1CQGQM-000A7B-3e@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <MRC@CAC.Washington.EDU> writes:

 Mark> Well, then, I guess that it comes to whether more harm is
 Mark> caused by having to change:

 Mark>   . a configuration (installed on a handful of sites at most)
 Mark>   of one server implementation,

 Mark>   . break until changed every client based upon the c-client
 Mark>   library (most notably Pine -- we're talking about at least
 Mark>   tens of thousands if not hundreds of thousands of separate
 Mark>   implementations -- as well as break the fixed version of
 Mark>   these clients against Diablo servers.

You don't seem to understand that this is _already broken_. None of
the MODE READER-related stuff in the spec is anything more than trying
to document _current practice_ in such a way as to get interoperability.
Trying to do STARTTLS or AUTHINFO before doing MODE READER (assuming a
reader client) does not interoperate with existing software in certain
known (but rare) cases and there is no workaround.

(Proper handling of 480 responses allows a client to cope
transparently with the INN vs. Diablo differences. Even if we mandate
the order, we should probably point this out so that new clients can
handle old noncompliant servers.)

 Mark> If it helps matters, I would agree to a separate
 Mark> AUTHINFO/STARTLS command for clients vs. peers in return for
 Mark> the deprecation of MODE READER (replacing it with a no-op and
 Mark> servers MUST NOT require).

You still don't seem to be getting the point here. If MODE READER could
be disposed of that easily, we'd have done it long ago. Nobody likes it;
it's a really nasty wart on the protocol.

-- 
Andrew, Supernews
http://www.supernews.com

From rra at stanford.edu  Fri Nov  5 19:15:50 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 19:15:52 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Fri, 5 Nov 2004 17:51:07 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<87mzxvrblf.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87r7n7pt09.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:
> On Fri, 5 Nov 2004, Russ Allbery wrote:

>> Hm.  That strikes me as odd -- how does an NNTPv2 client know if a server
>> advertising NNTPv3 is okay or not?

> The server must advertise both NNTPv2 and NNTPv3.  A server which just
> advertises NNTPv3 is not OK to an NNTPv2 client.

Okay.  Ken's statement was that if NNTPv3 adds to but retains all of
NNTPv2's functionality, the server need only advertise NNTPv3.  Your
statement above implies to me that this is not correct and it does need to
continue to advertise NNTPv2.

> I think that it's better to move away from magic response codes and use
> extensions exclusively.  The fact that authentication is offered is
> enough of a hint to anonymous clients that more can be gained through
> authentication.

Hm.  Yeah, maybe so.  Certainly, the 200/201 distinction in the opening
banner is pretty much a disaster in practice and a POST capability that
changes after authentication is a heck of a lot simpler and more accurate.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Fri Nov  5 19:21:29 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 19:21:31 2004
Subject: [NNTP] Proposed changes to draft-ietf-nntpext-streaming-02
In-Reply-To: <418BB2F4.3040402@oceana.com> (Ken Murchison's message of "Fri,
	05 Nov 2004 12:05:56 -0500")
References: <41890D7B.4010707@oceana.com>
	<87654kzv0n.fsf@windlord.stanford.edu> <418BB2F4.3040402@oceana.com>
Message-ID: <87mzxvpsqu.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> I'll hold off on adding text about 403 until we hear from Andrew on
> this.  If we don't discuss 403, I might combine your two versions into
> something like:

> "If the server encounters a temporary error that prevents it from
> processing the article (such as disk full) but does not want to reject the
> article, and the error is likely to affect all subsequent attempts to
> transfer articles, it MUST reply with a 400 response to the client and
> close the connection."

> The point being that if the error only affects the given article
> (however unlikely), closing the connection seems unfriendly.

If we don't discuss 403, closing the connection is the only option the
server has though.  Doesn't 400 require an immediate close?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Fri Nov  5 19:33:21 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 19:33:22 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <2DECBE70-2F71-11D9-83FE-000393032FF0@litech.org> (Jeffrey M.
	Vinocur's message of "Fri, 5 Nov 2004 16:25:13 -0500")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<418BAEB0.2070805@oceana.com>
	<2DECBE70-2F71-11D9-83FE-000393032FF0@litech.org>
Message-ID: <87is8jps72.fsf@windlord.stanford.edu>

Jeffrey M Vinocur <jeff@litech.org> writes:

> Oof, these extension names (and NOREADER, NOTRANSIT) are kinda making my
> head spin.  I think we should try to stick to non-negated names where
> possible.  Even something like:

> TRANSIT YES
> READER MODE-READER-REQUIRED
> POST NO
> NEWNEWS NO

> would be less confusing, I think?

I'd rather leave off the YES/NO part if possible.  What about something
like:

    TRANSIT
    READER MODE-READER-REQUIRED

and then after MODE READER something like:

    READER
    POST
    NEWNEWS

That seems like it would work to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Fri Nov  5 19:37:15 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 19:37:16 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <9901E09E-2F70-11D9-83FE-000393032FF0@litech.org> (Jeffrey M.
	Vinocur's message of "Fri, 5 Nov 2004 16:21:03 -0500")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<9901E09E-2F70-11D9-83FE-000393032FF0@litech.org>
Message-ID: <87ekj7ps0k.fsf@windlord.stanford.edu>

Jeffrey M Vinocur <jeff@litech.org> writes:

> If we're going to start advertising whether reading commands are
> available, and then whether various other commands like NEWNEWS are
> available (and doing such advertising seems very reasonable to me), and
> then we get into whether they're available only after MODE READER, and
> then we get into whether they're available after
> authentication...perhaps we should try to tackle this in some uniform
> way.

I think we may be able to just assume that if AUTHINFO is advertised,
clients know that authenticating may get them more commands.  Likewise
with STARTTLS if a server wants to require TLS before allowing something.

MODE READER is a special case since most servers don't require it, so it's
worthwhile to say that it's needed if it is.  But for the rest, just not
advertising NEWNEWS and POST and advertising AUTHINFO seems okay to me.

This does mean that we need to be clear that a server is allowed to return
480 to a command that isn't advertised, to deal with existing clients that
don't understand the whole capability system.

> Part of my concern is for cleanliness, but part of it is also for its
> effect on behavior.  I mean, suppose the unauthenticated client sees
> that it has general newsreading capabilities (NOREADER is not
> advertised), but doesn't see NEWNEWS advertised.  Suppose the client
> prefers NEWNEWS, but can fall back to alternative core commands if
> NEWNEWS is not available (I believe this is a common client
> implementation choice).  Now the client software has no way of knowing
> (without explicit user configuration) whether it should prompt the user
> to authenticate, or give up on NEWNEWS and start downloading articles
> immediately using the alternative mechanisms.

Yeah, this does concern me as well, but I wonder how many clients really
do reactive authentication and how useful reactive authentication is.

Although we should probably be clear that if we go down the route of
advertising capabilities only when they're available given the current
authentication and privacy state, we're essentially abandoning any attempt
to support reactive authentication (since clients won't try the commands
if they're not advertised).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Fri Nov  5 19:53:55 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 19:54:04 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87r7n7pt09.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>	<87mzxvrblf.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU>
	<87r7n7pt09.fsf@windlord.stanford.edu>
Message-ID: <418C4AD3.1020602@oceana.com>

Russ Allbery wrote:
> Mark Crispin <MRC@CAC.Washington.EDU> writes:
> 
>>On Fri, 5 Nov 2004, Russ Allbery wrote:
> 
> 
>>>Hm.  That strikes me as odd -- how does an NNTPv2 client know if a server
>>>advertising NNTPv3 is okay or not?
> 
> 
>>The server must advertise both NNTPv2 and NNTPv3.  A server which just
>>advertises NNTPv3 is not OK to an NNTPv2 client.
> 
> 
> Okay.  Ken's statement was that if NNTPv3 adds to but retains all of
> NNTPv2's functionality, the server need only advertise NNTPv3.  Your
> statement above implies to me that this is not correct and it does need to
> continue to advertise NNTPv2.

Mark is correct.  I was trying to multi-task when I wrote that and had a 
brain fart.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Nov  5 19:57:22 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 19:57:33 2004
Subject: [NNTP] Proposed changes to draft-ietf-nntpext-streaming-02
In-Reply-To: <87mzxvpsqu.fsf@windlord.stanford.edu>
References: <41890D7B.4010707@oceana.com>	<87654kzv0n.fsf@windlord.stanford.edu>
	<418BB2F4.3040402@oceana.com>
	<87mzxvpsqu.fsf@windlord.stanford.edu>
Message-ID: <418C4BA2.4040800@oceana.com>

Russ Allbery wrote:

> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>I'll hold off on adding text about 403 until we hear from Andrew on
>>this.  If we don't discuss 403, I might combine your two versions into
>>something like:
> 
> 
>>"If the server encounters a temporary error that prevents it from
>>processing the article (such as disk full) but does not want to reject the
>>article, and the error is likely to affect all subsequent attempts to
>>transfer articles, it MUST reply with a 400 response to the client and
>>close the connection."
> 
> 
>>The point being that if the error only affects the given article
>>(however unlikely), closing the connection seems unfriendly.
> 
> 
> If we don't discuss 403, closing the connection is the only option the
> server has though.  Doesn't 400 require an immediate close?


Yes.

The reason I'm hesitant to document 403 (I'm now wondering why I 
mentioned it) is because it seems to be a deferral code on this case and 
we've already decided that they don't make sense after the server 
receives the article.


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Nov  5 20:13:26 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 20:13:36 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <418C4F66.1060603@oceana.com>

Mark Crispin wrote:

> On Fri, 5 Nov 2004, Ken Murchison wrote:
> 
>> OK.  Assuming that we're sticking with
>>    MODE READER
>>    STARTTLS
>>    AUTHINFO
>> I will fix the STARTTLS and AUTHINFO docs to state:
>> "On servers that require the use of the MODE READER command, the
>> STARTTLS/AUTHINFO command can only be used after the MODE READER 
>> command."
> 
> 
> I have a problem with that choice.
> 
> The effect is to break tens (hundreds?) of thousands of deployed Pine 
> clients (and other clients based upon the c-client library), and some 
> unknown number of Diablo servers.
> 
> My impression is that most inn servers will *not* be broken if we choose:
>     STARTTLS
>     AUTHINFO
>     MODE READER

Would Pine gracefully handle "401 MODE-READER" in response to STARTTLS 
or AUTHINFO?  If so, then we already have a simple way out of this.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Nov  5 20:19:28 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov  5 20:19:38 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <878y9fsrbr.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>	<E1CQ98A-0003K9-0S@trinity.supernews.net>	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>	<877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com>	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>	<87fz3nu8qr.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>	<873bznu7qw.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
Message-ID: <418C50D0.9030804@oceana.com>

Russ Allbery wrote:

> Mark Crispin <MRC@CAC.Washington.EDU> writes:
> 
> 
>>If it's just the AUTHINFO userid, why can't it be passed as part of the
>>invocation to the MODE READER server via environment variable or argv?
> 
> 
> Privacy layers negotiated by AUTHINFO SASL.  You're right that if it's
> just an AUTHINFO USER case, it's solvable, but it doesn't work with the
> more general case going forward.

Hmm, there *may* be a more elegant way of doing this (I'd have to ponder 
it some more to see if we could transfer the current security layer 
state between processes), but OTH if nntpd negotiated a TLS layer and/or 
SASL security layer before MODE READER, nntpd could stick around and 
proxy the traffic from the client to nnrpd via stdio or a UNIX socket. 
Its brute force, but it should work.

I might need another beer to analyze the performance ramifications of this.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Fri Nov  5 20:28:16 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Fri Nov  5 20:28:18 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <418C4F66.1060603@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<418C4F66.1060603@oceana.com>
Message-ID: <Pine.LNX.4.62.0411052026290.28179@shiva1.cac.washington.edu>

On Fri, 5 Nov 2004, Ken Murchison wrote:
> Would Pine gracefully handle "401 MODE-READER" in response to STARTTLS or 
> AUTHINFO?  If so, then we already have a simple way out of this.

No.  It does the startup sequence in a particular order, based upon 
empirical evidence that some servers would not accept MODE READER unless 
you did AUTHINFO first.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Fri Nov  5 20:35:57 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov  5 20:35:59 2004
Subject: [NNTP] Proposed changes to draft-ietf-nntpext-streaming-02
In-Reply-To: <418C4BA2.4040800@oceana.com> (Ken Murchison's message of "Fri,
	05 Nov 2004 22:57:22 -0500")
References: <41890D7B.4010707@oceana.com>
	<87654kzv0n.fsf@windlord.stanford.edu> <418BB2F4.3040402@oceana.com>
	<87mzxvpsqu.fsf@windlord.stanford.edu> <418C4BA2.4040800@oceana.com>
Message-ID: <87r7n7oaqa.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> The reason I'm hesitant to document 403 (I'm now wondering why I
> mentioned it) is because it seems to be a deferral code on this case and
> we've already decided that they don't make sense after the server
> receives the article.

Yeah.  The other problem with 403 is that I believe it's an innovation in
our draft, like 401.  INN currently never produces either of those
response codes.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From jeff at litech.org  Sat Nov  6 01:31:50 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Sat Nov  6 01:32:11 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <418C50D0.9030804@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>	<E1CQ98A-0003K9-0S@trinity.supernews.net>	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>	<877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com>	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>	<87fz3nu8qr.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>	<873bznu7qw.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
	<418C50D0.9030804@oceana.com>
Message-ID: <B018BAE2-2FD6-11D9-83FE-000393032FF0@litech.org>

On Nov 5, 2004, at 11:19 PM, Ken Murchison wrote:

> Hmm, there *may* be a more elegant way of doing this (I'd have to 
> ponder it some more to see if we could transfer the current security 
> layer state between processes), but OTH if nntpd negotiated a TLS 
> layer and/or SASL security layer before MODE READER, nntpd could stick 
> around and proxy the traffic from the client to nnrpd via stdio or a 
> UNIX socket. Its brute force, but it should work.

Unfortunately, innd cannot be capable of those negotiations without 
being able to parse readers.conf (in order to find out what 
authentication methods are permitted for a given connection, and what 
user databases should be consulted to determine success/failure).  I 
can't even imagine trying to fold all of that code into innd -- a rough 
estimate is that about a third to half of all of nnrpd would be 
involved.  At that point, we may as well ditch MODE READER entirely, I 
think.


-- 
Jeffrey M. Vinocur
jeff@litech.org

From clive at demon.net  Sun Nov  7 01:25:54 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Sun Nov  7 01:26:43 2004
Subject: [NNTP] Test
Message-ID: <20041107092553.GA38102@finch-staff-1.thus.net>

Apologies, but something I wrote yesterday still hasn't appeared so I'm
trying to find out why.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Sun Nov  7 01:42:59 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Sun Nov  7 03:21:43 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87actwzvgx.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<4187E54E.5030805@oceana.com>
	<20041102201611.GB96632@finch-staff-1.thus.net>
	<87actwzvgx.fsf@windlord.stanford.edu>
Message-ID: <20041107094259.GC41423@finch-staff-1.thus.net>

In message <87actwzvgx.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> writes
>>>This seems somewhat questionable to me.  If the server advertises
>>>support for OVER, what shouldn't it support LIST OVERVIEW.FMT?  If the
>>>answer is because some legacy implementations don't support it, my
>>>response is who cares?  OVER is new and we can and should be able to
>>>enforce support for LIST OVERVIEW.FMT.
>
>>Fine with me, but we need rough consensus on the list.
>
>I have no problems with making it mandatory.  Mark has convinced me to
>fear and hate optional commands.  :)

I shall Make It So.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Sun Nov  7 01:43:48 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Sun Nov  7 03:28:06 2004
Subject: [NNTP] Optional LIST commands
In-Reply-To: <418B9222.9090506@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<871xf8zuox.fsf_-_@windlord.stanford.edu>
	<418B9222.9090506@oceana.com>
Message-ID: <20041107094348.GD41423@finch-staff-1.thus.net>

In message <418B9222.9090506@oceana.com>, Ken Murchison <ken@oceana.com>
writes
>Of course, if we don't allow '.' in arguments, we could use '-' instead.

We allow anything (except space) in arguments; we allow alphanumerics,
dot, and dash in command names and extension labels.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Sun Nov  7 01:41:52 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Sun Nov  7 03:31:20 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <418A867A.4020204@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<4187B832.2070006@oceana.com>
	<20041104170051.GN42341@finch-staff-1.thus.net>
	<418A867A.4020204@oceana.com>
Message-ID: <20041107094152.GB41423@finch-staff-1.thus.net>

In message <418A867A.4020204@oceana.com>, Ken Murchison <ken@oceana.com> writes
>>  In A, case 2, the client needs to know that 4321 exists and is
>>upwards
>>compatible; otherwise it will barf when it meets a 4321 server. In C, a
>>2.0 client automatically knows that 2.1 is upwards compatible.
>
>I think you're splitting hairs here.  Why does a 2.0 client know that
>2.1 is upwards compatible?  Just because of the version number?

Yes.

>Whether it seems obvious or not given your choice of syntax, it still
>MUST be explicitly document somewhere that 2.1 retains 2.0
>functionality (AFAIC 2.0 and 2.1 are still meaningless tokens at a
>protocol level).

No. That's the difference between A and C. If we went down path C, the
base specification would explicitly state that x.1 is upwards compatible
with x.0 and so on. The token is *structured*, unlike A and B.

In other words, the process is *reversed*; the author of RFC 4321 picks
a version number of 2.1 *because* it is upwards compatible, while the
author of 5555 picks 3.0 *because* it is not.

>The same would be true in the A case, RFC 4321 MUST explicitly state
>that it retains RFC 3977 functionality.  In either case, the client
>knows this because the author read the specs and programmed accordingly.

Not so.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Sun Nov  7 01:41:52 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Sun Nov  7 03:39:54 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <418A867A.4020204@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<4187B832.2070006@oceana.com>
	<20041104170051.GN42341@finch-staff-1.thus.net>
	<418A867A.4020204@oceana.com>
Message-ID: <20041107094152.GB41423@finch-staff-1.thus.net>

In message <418A867A.4020204@oceana.com>, Ken Murchison <ken@oceana.com> writes
>>  In A, case 2, the client needs to know that 4321 exists and is
>>upwards
>>compatible; otherwise it will barf when it meets a 4321 server. In C, a
>>2.0 client automatically knows that 2.1 is upwards compatible.
>
>I think you're splitting hairs here.  Why does a 2.0 client know that
>2.1 is upwards compatible?  Just because of the version number?

Yes.

>Whether it seems obvious or not given your choice of syntax, it still
>MUST be explicitly document somewhere that 2.1 retains 2.0
>functionality (AFAIC 2.0 and 2.1 are still meaningless tokens at a
>protocol level).

No. That's the difference between A and C. If we went down path C, the
base specification would explicitly state that x.1 is upwards compatible
with x.0 and so on. The token is *structured*, unlike A and B.

In other words, the process is *reversed*; the author of RFC 4321 picks
a version number of 2.1 *because* it is upwards compatible, while the
author of 5555 picks 3.0 *because* it is not.

>The same would be true in the A case, RFC 4321 MUST explicitly state
>that it retains RFC 3977 functionality.  In either case, the client
>knows this because the author read the specs and programmed accordingly.

Not so.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Sun Nov  7 01:42:59 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Sun Nov  7 03:39:59 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87actwzvgx.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<4187E54E.5030805@oceana.com>
	<20041102201611.GB96632@finch-staff-1.thus.net>
	<87actwzvgx.fsf@windlord.stanford.edu>
Message-ID: <20041107094259.GC41423@finch-staff-1.thus.net>

In message <87actwzvgx.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> writes
>>>This seems somewhat questionable to me.  If the server advertises
>>>support for OVER, what shouldn't it support LIST OVERVIEW.FMT?  If the
>>>answer is because some legacy implementations don't support it, my
>>>response is who cares?  OVER is new and we can and should be able to
>>>enforce support for LIST OVERVIEW.FMT.
>
>>Fine with me, but we need rough consensus on the list.
>
>I have no problems with making it mandatory.  Mark has convinced me to
>fear and hate optional commands.  :)

I shall Make It So.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Sun Nov  7 01:44:50 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Sun Nov  7 03:40:00 2004
Subject: [NNTP] Optional LIST commands (was: LIST EXTENSIONS (again))
In-Reply-To: <871xf8zuox.fsf_-_@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<871xf8zuox.fsf_-_@windlord.stanford.edu>
Message-ID: <20041107094450.GE41423@finch-staff-1.thus.net>

In message <871xf8zuox.fsf_-_@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> writes
>So, here's a question.  Why *aren't* they extensions?  If it's just
>because they were in RFC 977, I don't think that's a very good reason;
[Ken says they weren't]

Don't look at me: I thought you lot had sorted all this out before I
came on the scene.

>Here's a proposal:  Why don't we make LIST NEWSGROUPS mandatory (pretty
>much everyone implements it, even if they don't have any data to return,
>and the case of not having any data to return is already supported in the
>description of the command), and make LIST ACTIVE.TIMES, LIST
>DISTRIB.PATS, and LIST DISTRIBUTIONS separate extensions?
>
>(Actually, I'd be quite happy if we dropped LIST DISTRIBUTIONS entirely,

Enthusiastically supported.

Taking this and Ken's message, here's what I'll do if nobody screams:

* Make LIST NEWSGROUPS mandatory.
* Create a new standard extension called LIST.
* All commands in this extension have two-part keywords; the only
  restriction is that they can't be the same as the mandatory LIST
  commands, obviously.
* An implementation can support any number of such keywords but:
  - they are only for returning information;
  - no LIST command can change the server state;
  - they all use the same, specified, set of response codes.
* LIST EXTENSIONS lists all of the supported keywords.
* We document meanings for ACTIVE.TIMES and DISTRIB.PATS.

[If you don't understand all these points, wait for some draft text.]

>They're optional commands, we want to advertise them in LIST EXTENSIONS,
>we have a well-defined way of doing that for actual extensions... I think
>this would be the simplest approach.

Indeed.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Sun Nov  7 01:38:56 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Sun Nov  7 03:41:27 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <418B8FEB.7060709@oceana.com>
References: <20041015091534.GD86062@finch-staff-1.thus.net>
	<416FCE9E.4060908@oceana.com>
	<20041018101311.GI31499@finch-staff-1.thus.net>
	<4173CEE5.90303@oceana.com>
	<20041027075906.GB25499@finch-staff-1.thus.net>
	<417F887B.9010601@oceana.com>
	<20041027114116.GG25499@finch-staff-1.thus.net>
	<417FA1A6.5040601@oceana.com>
	<87zn1w28k4.fsf@windlord.stanford.edu>
	<418B8FEB.7060709@oceana.com>
Message-ID: <20041107093856.GA41423@finch-staff-1.thus.net>

In message <418B8FEB.7060709@oceana.com>, Ken Murchison <ken@oceana.com> writes
>>>>I think we only want one of '-' and '_'. I don't greatly care which,
>>>>though I think the former is slightly preferable.

>>  I've been engaging in a completely irrational war against
>>underscores for
>>years, so I'm quite happy with a dash.  :)  (Really, I don't much care one
>>way or the other, and can't see omitting '_' causing any real problems for
>>anyone.)

Okay, that's settled then and I'll make the appropriate changes.

>Whatever we do, we should make sure that we're consistent with the use
>of the extension label as documented for the 401 response (which
>currently includes "MODE-READER").

Since this was our own, recent, invention I'm going to alter it to
"MODE_READER"; we can consistently use underscores wherever we need to
join two separate words into one.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From rvtol at isolution.nl  Sun Nov  7 04:00:32 2004
From: rvtol at isolution.nl (Ruud H.G. van Tol)
Date: Sun Nov  7 04:00:41 2004
Subject: [NNTP] Re: Command names
References: <20041015091534.GD86062@finch-staff-1.thus.net><416FCE9E.4060908@oceana.com><20041018101311.GI31499@finch-staff-1.thus.net><4173CEE5.90303@oceana.com><20041027075906.GB25499@finch-staff-1.thus.net><417F887B.9010601@oceana.com><20041027114116.GG25499@finch-staff-1.thus.net><417FA1A6.5040601@oceana.com><87zn1w28k4.fsf@windlord.stanford.edu><418B8FEB.7060709@oceana.com>
	<20041107093856.GA41423@finch-staff-1.thus.net>
Message-ID: <022e01c4c4c1$64d465b0$0a01a8c0@isolution.nl>

Toen wij Clive D.W. Feather kietelden, kwam er dit uit:
> Ken Murchison:

>> [dashes-yes, underscores_no]
>> Whatever we do, we should make sure that we're consistent with the
>> use of the extension label as documented for the 401 response (which
>> currently includes "MODE-READER").

> Since this was our own, recent, invention I'm going to alter it to
> "MODE_READER"; we can consistently use underscores wherever we need to
> join two separate words into one.

Why can't that <401-response-extension-label> remain "MODE-READER"?

-- 
Grtz, Ruud

From binaryboy at binaryboy.com  Sun Nov  7 06:52:39 2004
From: binaryboy at binaryboy.com (Howard Swinehart)
Date: Sun Nov  7 06:49:40 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <20041102121603.GF34826@finch-staff-1.thus.net><41879E3F.10905@oceana.com><20041102153716.GN34826@finch-staff-1.thus.net><87wtx0yefw.fsf@windlord.stanford.edu><418BA181.4060504@oceana.com>
	<87mzxvrblf.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <00d301c4c4d9$8a96ea30$0200a8c0@binaryboy2>

From: "Mark Crispin" <MRC@CAC.Washington.EDU>
> The server must advertise both NNTPv2 and NNTPv3.  A server which just 
> advertises NNTPv3 is not OK to an NNTPv2 client.

This returns us to the original problem of identifying broken servers.

NNTPV2 was supposed to distinguish between Netscape Collabra (has LIST 
EXTENSIONS but wrongly advertises OVER) and a truly compliant server. 
Without NNTPV2 and without a version number, a client based on this proposal 
won't see a difference between a future incompatible NNTPVx server and 
Netscape Collabra because neither will return NNTPV2.

With the version number proposal, we can do this:

if version is 2
    it's compatible
if version is larger than 2
    it's incompatible
if LIST EXTENSIONS works but no NNTP version
    it's Netscape Collabra


From binaryboy at binaryboy.com  Sun Nov  7 07:30:18 2004
From: binaryboy at binaryboy.com (Howard Swinehart)
Date: Sun Nov  7 07:27:17 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
References: <87acurh9qz.fsf@windlord.stanford.edu><20041015085218.GA86186@finch-staff-1.thus.net><416FCD30.40906@oceana.com><20041102113630.GE34826@finch-staff-1.thus.net><Pine.LNX.4.62.0411020723530.15535@shiva0.cac.washington.edu><20041102154019.GO34826@finch-staff-1.thus.net>
	<4187AF33.70901@oceana.com>
Message-ID: <013b01c4c4de$d19a7140$0200a8c0@binaryboy2>

From: "Ken Murchison" <ken@oceana.com>
> Yes, I was pointing out that he was the only client author that we've 
> heard from.  This is actually disconcerting that with all of the NNTP 
> clients out there (it seems everyone has their own favorite) that only one 
> has chosen to take part in this list (although somewhat late).
>
> I don't know if this is because they don't know that work is being done to 
> update NNTP, they became frustrated with past work and stopped paying 
> attention (which is where Mark was for a while), or they just don't care.

I'm a client author and I've been reading semi-regularly for several years. 
Usually the discussion is moving in a direction I agree with so I feel no 
need to add anything.  My silence is agreement.


From binaryboy at binaryboy.com  Sun Nov  7 07:30:41 2004
From: binaryboy at binaryboy.com (Howard Swinehart)
Date: Sun Nov  7 07:27:18 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <20041102121603.GF34826@finch-staff-1.thus.net><41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
Message-ID: <013c01c4c4de$d1b96af0$0200a8c0@binaryboy2>

From: "Clive D.W. Feather" <clive@demon.net>
> Approach C is my preference and matches (e.g.) HTTP. I only suggested an
> alternative because people choked on the major.minor idea previously.

I agree with approach C (NNTP major.minor).


From rra at stanford.edu  Sun Nov  7 09:19:59 2004
From: rra at stanford.edu (Russ Allbery)
Date: Sun Nov  7 09:20:01 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <00d301c4c4d9$8a96ea30$0200a8c0@binaryboy2> (Howard Swinehart's
	message of "Sun, 7 Nov 2004 09:52:39 -0500")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<87mzxvrblf.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU>
	<00d301c4c4d9$8a96ea30$0200a8c0@binaryboy2>
Message-ID: <87y8hdk24g.fsf@windlord.stanford.edu>

Howard Swinehart <binaryboy@binaryboy.com> writes:
> From: "Mark Crispin" <MRC@CAC.Washington.EDU>

>> The server must advertise both NNTPv2 and NNTPv3.  A server which just
>> advertises NNTPv3 is not OK to an NNTPv2 client.

> This returns us to the original problem of identifying broken servers.

> NNTPV2 was supposed to distinguish between Netscape Collabra (has LIST
> EXTENSIONS but wrongly advertises OVER) and a truly compliant
> server. Without NNTPV2 and without a version number, a client based on
> this proposal won't see a difference between a future incompatible
> NNTPVx server and Netscape Collabra because neither will return NNTPV2.

I think that's actually the correct behavior.  That future server is
speaking a protocol that the client doesn't understand, which is, if one
thinks about it in the right direction, exactly the same as the case for
Netscape Collabra.  The client can give up, or fall back on RFC 977 and
try using commands at random and hope, which is pretty much the case for
Collabra today.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From binaryboy at binaryboy.com  Sun Nov  7 10:27:41 2004
From: binaryboy at binaryboy.com (Howard Swinehart)
Date: Sun Nov  7 10:24:48 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <20041102121603.GF34826@finch-staff-1.thus.net><41879E3F.10905@oceana.com><20041102153716.GN34826@finch-staff-1.thus.net><87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com><87mzxvrblf.fsf@windlord.stanford.edu><Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU><00d301c4c4d9$8a96ea30$0200a8c0@binaryboy2>
	<87y8hdk24g.fsf@windlord.stanford.edu>
Message-ID: <001801c4c4f7$94bbfa50$0200a8c0@binaryboy2>

From: "Russ Allbery" <rra@stanford.edu>
> Howard Swinehart <binaryboy@binaryboy.com> writes:
>> NNTPV2 was supposed to distinguish between Netscape Collabra (has LIST
>> EXTENSIONS but wrongly advertises OVER) and a truly compliant
>> server. Without NNTPV2 and without a version number, a client based on
>> this proposal won't see a difference between a future incompatible
>> NNTPVx server and Netscape Collabra because neither will return NNTPV2.
>
> I think that's actually the correct behavior.  That future server is
> speaking a protocol that the client doesn't understand, which is, if one
> thinks about it in the right direction, exactly the same as the case for
> Netscape Collabra.  The client can give up, or fall back on RFC 977 and
> try using commands at random and hope, which is pretty much the case for
> Collabra today.

The difference is that a client author can potentially experiment and create
a workaround for non-compliant servers that exist today while the future
protocol is completely unknown.  A client might want to give up immediately
when it sees a backwards incompatible version number.


From rra at stanford.edu  Sun Nov  7 14:43:44 2004
From: rra at stanford.edu (Russ Allbery)
Date: Sun Nov  7 14:43:46 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <001801c4c4f7$94bbfa50$0200a8c0@binaryboy2> (Howard Swinehart's
	message of "Sun, 7 Nov 2004 13:27:41 -0500")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<87mzxvrblf.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU>
	<00d301c4c4d9$8a96ea30$0200a8c0@binaryboy2>
	<87y8hdk24g.fsf@windlord.stanford.edu>
	<001801c4c4f7$94bbfa50$0200a8c0@binaryboy2>
Message-ID: <87bre9gtzz.fsf@windlord.stanford.edu>

Howard Swinehart <binaryboy@binaryboy.com> writes:

> The difference is that a client author can potentially experiment and
> create a workaround for non-compliant servers that exist today while the
> future protocol is completely unknown.  A client might want to give up
> immediately when it sees a backwards incompatible version number.

Well, I'm dubious that anyone would want to produce a version of NNTP that
was that completely incompatible so that the same sort of fallback that
you'd use for Netscape Collabra wouldn't also work.

I'm not completely opposed to the idea, but I'm very suspicious of it
because other protocols haven't needed it.  If I had my druthers, we'd
just copy IMAP and not worry too much about it.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Sun Nov  7 15:12:37 2004
From: ken at oceana.com (Ken Murchison)
Date: Sun Nov  7 15:12:50 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87bre9gtzz.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>	<87mzxvrblf.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU>	<00d301c4c4d9$8a96ea30$0200a8c0@binaryboy2>	<87y8hdk24g.fsf@windlord.stanford.edu>	<001801c4c4f7$94bbfa50$0200a8c0@binaryboy2>
	<87bre9gtzz.fsf@windlord.stanford.edu>
Message-ID: <418EABE5.9030402@oceana.com>

Russ Allbery wrote:

> Howard Swinehart <binaryboy@binaryboy.com> writes:
> 
> 
>>The difference is that a client author can potentially experiment and
>>create a workaround for non-compliant servers that exist today while the
>>future protocol is completely unknown.  A client might want to give up
>>immediately when it sees a backwards incompatible version number.
> 
> 
> Well, I'm dubious that anyone would want to produce a version of NNTP that
> was that completely incompatible so that the same sort of fallback that
> you'd use for Netscape Collabra wouldn't also work.
> 
> I'm not completely opposed to the idea, but I'm very suspicious of it
> because other protocols haven't needed it.  If I had my druthers, we'd
> just copy IMAP and not worry too much about it.


Right.  I'm old, but not old enough to have taken part in the IMAP 
discussions, but my guess is that all of these arguments have been made 
before and have ended up being inconsequential, otherwise we'd see such 
version info in IMAP or POP or SMTP.

I've finally come to realize that NNTP is different from a sheer 
load/bandwidth standpoint, but from a protocol standpoint, its really no 
different from the other messaging protocols (other than the fact that 
transport and retrieval have been intermingled, which is really poor 
design).

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From binaryboy at binaryboy.com  Sun Nov  7 15:54:38 2004
From: binaryboy at binaryboy.com (Howard Swinehart)
Date: Sun Nov  7 15:50:42 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <20041102121603.GF34826@finch-staff-1.thus.net><41879E3F.10905@oceana.com><20041102153716.GN34826@finch-staff-1.thus.net><87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com><87mzxvrblf.fsf@windlord.stanford.edu><Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU><00d301c4c4d9$8a96ea30$0200a8c0@binaryboy2><87y8hdk24g.fsf@windlord.stanford.edu><001801c4c4f7$94bbfa50$0200a8c0@binaryboy2>
	<87bre9gtzz.fsf@windlord.stanford.edu>
Message-ID: <002001c4c525$2a5aebc0$0200a8c0@binaryboy2>

From: "Russ Allbery" <rra@stanford.edu>
> Well, I'm dubious that anyone would want to produce a version of NNTP that
> was that completely incompatible so that the same sort of fallback that
> you'd use for Netscape Collabra wouldn't also work.
>
> I'm not completely opposed to the idea, but I'm very suspicious of it
> because other protocols haven't needed it.  If I had my druthers, we'd
> just copy IMAP and not worry too much about it.

How about if we use the NNTPVx tokens exactly as you described with one
additional note that tokens beginning with the 5 letters "NNTPV" are
reserved for indicating the protocol version.  This way clients can reliably
detect a NNTPV2 or higher protocol by checking for NNTPV*, they can detect
current broken servers by the lack of NNTPV* and they can detect future
incompatible versions by the lack of NNTPV2.  RFC977 servers are detected by
an error on LIST EXTENSIONS as before.


From rra at stanford.edu  Sun Nov  7 20:30:02 2004
From: rra at stanford.edu (Russ Allbery)
Date: Sun Nov  7 20:30:04 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <002001c4c525$2a5aebc0$0200a8c0@binaryboy2> (Howard Swinehart's
	message of "Sun, 7 Nov 2004 18:54:38 -0500")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<87mzxvrblf.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051748360.4920@Tomobiki-Cho.CAC.Washington.EDU>
	<00d301c4c4d9$8a96ea30$0200a8c0@binaryboy2>
	<87y8hdk24g.fsf@windlord.stanford.edu>
	<001801c4c4f7$94bbfa50$0200a8c0@binaryboy2>
	<87bre9gtzz.fsf@windlord.stanford.edu>
	<002001c4c525$2a5aebc0$0200a8c0@binaryboy2>
Message-ID: <87fz3lezed.fsf@windlord.stanford.edu>

Howard Swinehart <binaryboy@binaryboy.com> writes:

> How about if we use the NNTPVx tokens exactly as you described with one
> additional note that tokens beginning with the 5 letters "NNTPV" are
> reserved for indicating the protocol version.  This way clients can
> reliably detect a NNTPV2 or higher protocol by checking for NNTPV*, they
> can detect current broken servers by the lack of NNTPV* and they can
> detect future incompatible versions by the lack of NNTPV2.  RFC977
> servers are detected by an error on LIST EXTENSIONS as before.

I don't have a problem with that; that seems reasonable to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From clive at demon.net  Mon Nov  8 06:25:08 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Nov  8 06:29:58 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <022e01c4c4c1$64d465b0$0a01a8c0@isolution.nl>
References: <20041107093856.GA41423@finch-staff-1.thus.net>
	<022e01c4c4c1$64d465b0$0a01a8c0@isolution.nl>
Message-ID: <20041108142508.GB89554@finch-staff-1.thus.net>

Ruud H.G. van Tol said:
>> Since this was our own, recent, invention I'm going to alter it to
>> "MODE_READER"; we can consistently use underscores wherever we need to
>> join two separate words into one.
> Why can't that <401-response-extension-label> remain "MODE-READER"?

Because we're permitting (in theory) an extension called MODE-READER. Using
an underscore to represent a space costs nothing and prevents a potential
confusion in the future.

I only used hyphen in the first place because we didn't used to permit
hyphens in extension labels.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From chl at clerew.man.ac.uk  Mon Nov  8 04:27:34 2004
From: chl at clerew.man.ac.uk (Charles Lindsey)
Date: Mon Nov  8 09:12:46 2004
Subject: [NNTP] Re: MODE READER
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
	<E1CPmf1-000A2g-1q@trinity.supernews.net>
	<Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
Message-ID: <I6v19y.FB9@clerew.man.ac.uk>

In <87d5ys3ob0.fsf@windlord.stanford.edu> Russ Allbery <rra@stanford.edu> writes:

>Note that most servers have eliminated the need for MODE READER by
>ensuring that one of the following conditions is true:

> * The same server process is used for both transit and reader
>   connections.  I think this design makes it considerably harder to
>   maintain the server, for a wide host of reasons, but admittedly those
>   reasons are internal to server design.

> * There are no connecting hosts which are both allowed to issue transit
>   commands and are allowed to read news.  This is the common case and is
>   the reason why one can completely ignore MODE READER with nearly all
>   INN installations and get away with it.

> * The transit server is running on the separate port reserved for that
>   purpose (433) and the reader-only server is running on 119.

>Of the solutions, I actually prefer the last one, since I've encountered
>rare but significant instances where I really needed to give both transit
>and reader permissions to the same client host.  It's obnoxious in that
>NNTP consumes an extra low-numbered port, which is really highly rude of
>it, but the damage (in terms of the port registration) was already done
>many years ago.

Does our present draft document the use of port 433? And if not should it
do so? If it does, then the last solution seems the cleanest.

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
From clive at demon.net  Mon Nov  8 09:15:04 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Nov  8 09:22:30 2004
Subject: [NNTP] Snapshot
Message-ID: <20041108171504.GD89554@finch-staff-1.thus.net>

I've put a snapshot of the current text up at:
  <http://www.davros.org/nntp-texts/draft25.pre-1.txt>
  <http://www.davros.org/nntp-texts/draft25.pre-1.html>
  <http://www.davros.org/nntp-texts/draft25.pre-1.nr>
so that people can see where we are. This includes:
* new restrictions on command names and extension labels;
* no optional commands any more;
* new LIST extension;
* consequential changes;
* other minor fixes since draft 24.
It does not deal with all the version number and MODE READER stuff we're
still discussing, since that doesn't feel solid enough yet to try to word.

Please could people look at the changed sections and check I haven't missed
any consequential stuff. Thanks.

Changed sections:
* 3.1
* 3.2.1 (503 response, 401 response, 400 response)
* 5.2 (MODE-READER => MODE_READER)
* 5.3
* 7.3.2
* 7.6 (some sections removed, 7.6.3 is new)
* 7.6.2.2
* 7.6.2.3
* 8 (minor wording change, and break out 8.1, thus renumbering 8.2 onwards)
* 8.1
* 8.2 extra entry
* 8.6.2.1 no longer optional
* 8.6.2.2
* 8.6.2.3
* 8.8 new section
* 9, including new 9.6 and other changes
* 12 (add Mark, correct Ken)
* C (215 response code)
* D.4 new section

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Nov  8 09:25:13 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Nov  8 09:42:44 2004
Subject: [NNTP] Version numbers
In-Reply-To: <87wtx0yefw.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
Message-ID: <20041108172513.GC93977@finch-staff-1.thus.net>

[Splitting off a sub-thread.]

Russ Allbery said:
> Okay, I've read and I think digested all of the long threads about the
> NNTPv2 label and related issues.  I'm pleasantly surprised that everyone
> agreed that we should have the protocol version advertised; I thought that
> was going to be controversial!

You weren't going to get an argument from me.

> I think we need to be able to say what version of the base protocol
> specification the server follows (everyone agrees on this).  I would
> prefer to copy IMAP as closely as possible here because IMAP has done this
> and we know that it works in practice,

Can you summarize?

> I don't think we need to know what version of an extension the server
> supports because I don't expect extensions to have versions.

Okay, I can live with that.

> If a command changes in a non-backward-compatible way, I think a new
> command should be introduced instead and the old one left alone and
> deprecated.

I can live with that as well.


> If a command changes but in a backward-compatible way, this is why we have
> additional arguments to the extension advertisement.  Like with OVER
> MSGID, we can define a way to advertise the new capability with more
> specificity than is offered by a version number.

True.

> I see what Clive is getting at by making the extension label "NNTP 2" or
> the like instead of "NNTPv2", but I think it's better to go the route that
> lets us advertise compatibility with multiple NNTP versions rather than
> going the route that lets clients compare numbers.

There's two or three points that are getting conflated here.

Firstly, given that we're hacking this into LIST EXTENSIONS rather than
working through a capability system from scratch, I'd much much rather
that everythign about the core protocol was in one entry. I see Mark has
made comments about parsing and syntactic sugar, but I think he's wrong
here.

So what I'm suggesting is that there is a line with pseudo-extension-
label "_NNTP_" (or "*", or anything that couldn't be a real extension)
that represents "the core protocol". Then the arguments to that label give
the various properties we're documenting. I'd further make it simple by
saying:
- arguments beginning with a digit represent the supported version(s);
- arguments beginning with a letter indicate support for options.

> Again, I'd rather
> follow IMAP here.  I don't see a need for minor protocol revisions
> indicating backward-compatible changes; I think that is subsumed by the
> ability to advertise compatibility with multiple revisions (listing both
> NNTPv2 and NNTPv3 extension labels, for instance).

As I've already said, there are three ways to do this.

(A) Version numbers are magic cookies. Server advertises its own version
and the client has to know which versions it can work with.
(B) Version numbers are magic cookies. Server advertises all the
versions it supports and the client is happy if any of them appear.
(C) Version numbers are structured. Server advertises its own version
and client deduces whether it can work with that.

If version 3 is upwards compatible with version 2, then the server
information line for a v3 server is:

  (A)      "_NNTP_ 3"          Old client needs to learn about 3.
  (B)      "_NNTP_ 2 3"        Old client sees the 3.
  (C)      "_NNTP_ 2.1"        Old client knows it supports 2.N
                               for all N (since it was written for 2.0).

I personally think C is better than B and I think that A is really
horrible in our problem domain (many client implementations, few server
implementations).

> I don't think using an RFC number instead of an arbitrary version number
> is a good idea for the reasons that Ken stated.

Okay; it seemed a good idea at the time.

I'm proposing numbers, rather than "V2", because they're less likely to
be used as extension or capability labels and so we can reserve the
entire namespace right now. Using "V2" means we have more risk of
running into another use of that name-format (e.g. "V21" is or was an
ISP in the UK). It's not a huge deal, but on the other hand versioning
*is* something I've had experience of in the past and this seems within
my editorial purview.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From mrc at CAC.Washington.EDU  Mon Nov  8 10:00:55 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Mon Nov  8 10:00:58 2004
Subject: [NNTP] Re: Version numbers
In-Reply-To: <20041108172513.GC93977@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041108172513.GC93977@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0411080946200.2056@shiva1.cac.washington.edu>

I strongly suggest that before even contemplating a version number 
mechanism such as Clive proposes, that you look into the experience of 
other protocols.  In particular:

. Why is the MIME version number forever fixed at 1.0?

. Why is the MIME version number forever fixed at 4rev1?  [Hint: read the
   next question.]

. Why do the IMAP people shudder whenever they refer to the transition
   from 4 to 4rev1?  Does much IMAP client software actually work with a 4
   server?

. Why do HTTP people shudder when asked about HTTP versioning?

In my experience, a version number facility does nothing except to add 
substantial complexity and open the door to mischief.

What we need is One True definition of NNTP, an indicator of compliance 
with this One True definition, and perhaps a slight crack left open for 
extensions.  We need to *abolish* the myriad non-interoperable variants 
that currently exist, not bless them.  We need to *simplify* the requires 
on clients, not make them worse.

NNTP is a dinky stupid little protocol.  If it was a car, it would be a 
Yugo.  It does not need Ferrari gauges.  We can try to make this Yugo be 
reliable (unlike the car...) and easy to implement.  We're not going to 
accomplish this with complex versioning.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Mon Nov  8 10:05:57 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Nov  8 10:05:02 2004
Subject: [NNTP] Re: Version numbers
In-Reply-To: <Pine.LNX.4.62.0411080946200.2056@shiva1.cac.washington.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>	<87wtx0yefw.fsf@windlord.stanford.edu>	<20041108172513.GC93977@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411080946200.2056@shiva1.cac.washington.edu>
Message-ID: <418FB585.2090700@oceana.com>

Mark Crispin wrote:

> . Why is the MIME version number forever fixed at 4rev1?  [Hint: read the
>   next question.]

Just to clarify, I think Mark meant IMAP instead of MIME.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Mon Nov  8 10:49:36 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Nov  8 10:48:38 2004
Subject: [NNTP] Snapshot
In-Reply-To: <20041108171504.GD89554@finch-staff-1.thus.net>
References: <20041108171504.GD89554@finch-staff-1.thus.net>
Message-ID: <418FBFC0.70209@oceana.com>

Clive D.W. Feather wrote:

> I've put a snapshot of the current text up at:
>   <http://www.davros.org/nntp-texts/draft25.pre-1.txt>
>   <http://www.davros.org/nntp-texts/draft25.pre-1.html>
>   <http://www.davros.org/nntp-texts/draft25.pre-1.nr>
> so that people can see where we are. This includes:
> * new restrictions on command names and extension labels;
> * no optional commands any more;
> * new LIST extension;
> * consequential changes;
> * other minor fixes since draft 24.
> It does not deal with all the version number and MODE READER stuff we're
> still discussing, since that doesn't feel solid enough yet to try to word.
> 
> Please could people look at the changed sections and check I haven't missed
> any consequential stuff. Thanks.

Couple of things I noticed:

8.8.1.2, 2nd paragraph, last sentence: "itand" should be "and it"

C, 215:  you show "LIST" as a valid command.  Unless I missed it, we no 
longer document "LIST" as a shortcut to "LIST ACTIVE *".  Are you using 
this as a way to capture the extensions to LIST?  In that case maybe it 
would make more sense to just have "LIST" and nothing else, since this 
will include "LIST ACTIVE", "LIST HEADERS", etc.

D.[1-4], MODE READER interaction: I think Russ had agreed to changing 
the text to read:

"On servers that require the use of the MODE READER command, the
LISTGROUP command can only be used after the MODE READER command."

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From MRC at CAC.Washington.EDU  Mon Nov  8 14:37:05 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Mon Nov  8 14:39:11 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <E1CQG3Y-0009qN-Kl@trinity.supernews.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
Message-ID: <Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>

On Sat, 6 Nov 2004, Andrew - Supernews wrote:
> It happens to be logically necessary, since (from the server
> perspective) authentication may depend on knowing whether MODE READER
> has been done but not the reverse. For example, the set of available
> authentication methods may be different.

Fine, then; have a different command for client vs. peer authentication.

> It's quite likely that no-one has used it in a situation where it
> matters (INN, transfer access _and_ authentication).

In which case, we should stop worrying about being compatible with this 
and do what is right.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Mon Nov  8 15:11:49 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Mon Nov  8 15:13:55 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <E1CQGQM-000A7B-3e@trinity.supernews.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0s3rbwp.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051740460.4920@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQGQM-000A7B-3e@trinity.supernews.net>
Message-ID: <Pine.WNT.4.62.0411081437140.5396@Tomobiki-Cho.CAC.Washington.EDU>

On Sat, 6 Nov 2004, Andrew - Supernews wrote:
> You don't seem to understand that this is _already broken_.

It works for all of our users, unlike doing MODE READER first.

> Trying to do STARTTLS or AUTHINFO before doing MODE READER (assuming a
> reader client) does not interoperate with existing software in certain
> known (but rare) cases and there is no workaround.

Rare, or non-existant?  We have no reports of such a server existing in 
reality in the wild.

> You still don't seem to be getting the point here. If MODE READER could
> be disposed of that easily, we'd have done it long ago. Nobody likes it;
> it's a really nasty wart on the protocol.

I didn't say that it was easy to get rid of MODE READER; just that it was 
the right thing to do.

Everything that I have heard indicates that this is ultimately a matter of 
implementation elegance in inn rather than an insurmountable barrier.  It 
isn't a "doing that will make my server three orders of magnitude slower" 
issue.

I don't mean to belittle the work that Russ will have to do (in fact, I'll 
buy him a six-pack of his favorite brew as recompense).  I'm just claiming 
that the greater good is to move forward in the NNTPv2 world without MODE 
READER.

Yes, for the time being, clients will have to worry about MODE READER. 
But we can fix things today so that clients 5 years from now won't have 
this burden.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Mon Nov  8 15:34:06 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Nov  8 15:34:08 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411081437140.5396@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Mon, 8 Nov 2004 15:11:49 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0s3rbwp.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051740460.4920@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQGQM-000A7B-3e@trinity.supernews.net>
	<Pine.WNT.4.62.0411081437140.5396@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87lldbncep.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:

> I didn't say that it was easy to get rid of MODE READER; just that it
> was the right thing to do.

What would you think of documenting port 433 for transit connections in
the standard and saying that transit feeds SHOULD use port 433 instead of
port 119?  That to me seems like the most viable way of eliminating MODE
READER.

> Everything that I have heard indicates that this is ultimately a matter
> of implementation elegance in inn rather than an insurmountable barrier.
> It isn't a "doing that will make my server three orders of magnitude
> slower" issue.

Using separate ports is something that would be fairly straightforward,
since that's mostly just a change in installation documentation without a
lot of code change.  Some people are already using port 433, and of course
people wouldn't have to change right away.  (We may want to add some
functionality to innd to allow it to listen on both ports, as a transition
aid.)

Redesigning INN so that it can handle reader and transit connections with
the same daemon on the same port is something that would essentially
require rewriting INN completely.  This isn't just an incidental design
decision -- this was one of the core portions of Rich Salz's original
design, and it would probably be easier to write a completely new server
from scratch than to eliminate INN's split innd/nnrpd structure.

Not that that would necessarily be a horrible idea, given that INN is a
pretty old code base, and I've considered it from time to time myself, but
as Andrew points out, splitting transit and reader functions is still a
very attractive design from a server architecture perspective.  I do think
there are arguments to be made in favor of allowing that design even in
the absence of any consideration of what INN does.

Basically, you're talking about a design change on the order of merging an
MTA and an IMAP server into a single daemon.  (In retrospect, having the
transit and reader components of NNTP be the same protocol was a huge
mistake.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Mon Nov  8 15:48:31 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Mon Nov  8 15:50:37 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87lldbncep.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0s3rbwp.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051740460.4920@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQGQM-000A7B-3e@trinity.supernews.net>
	<Pine.WNT.4.62.0411081437140.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<87lldbncep.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411081534230.5396@Tomobiki-Cho.CAC.Washington.EDU>

On Mon, 8 Nov 2004, Russ Allbery wrote:
> What would you think of documenting port 433 for transit connections in
> the standard and saying that transit feeds SHOULD use port 433 instead of
> port 119?  That to me seems like the most viable way of eliminating MODE
> READER.

I think that this is an *excellent* solution.

> Redesigning INN so that it can handle reader and transit connections with
> the same daemon on the same port is something that would essentially
> require rewriting INN completely.

Well...there *are* shortcuts that allow this to be accomplished, as long 
as you don't care about the cosmetics of the result... :-)

> Basically, you're talking about a design change on the order of merging an
> MTA and an IMAP server into a single daemon.

Believe me, many people have tried to do just that to IMAP.

It can be argued that client NNTP is effectively a merge of POP3 and SMTP 
because of the POST command in NNTP.

> (In retrospect, having the
> transit and reader components of NNTP be the same protocol was a huge
> mistake.)

You'll hear no dispute from me on that point!!

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Mon Nov  8 16:10:16 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Nov  8 16:10:17 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411081534230.5396@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Mon, 8 Nov 2004 15:48:31 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0s3rbwp.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051740460.4920@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQGQM-000A7B-3e@trinity.supernews.net>
	<Pine.WNT.4.62.0411081437140.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<87lldbncep.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411081534230.5396@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <873bzjnaqf.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:
> On Mon, 8 Nov 2004, Russ Allbery wrote:

>> What would you think of documenting port 433 for transit connections in
>> the standard and saying that transit feeds SHOULD use port 433 instead
>> of port 119?  That to me seems like the most viable way of eliminating
>> MODE READER.

> I think that this is an *excellent* solution.

Okay, there was already some consensus in the working group for talking
about 433, so I think this is really our best route forward.  Andrew, what
do you think about taking this approach?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From clive at demon.net  Tue Nov  9 00:43:02 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 00:43:11 2004
Subject: [NNTP] Snapshot
In-Reply-To: <418FBFC0.70209@oceana.com>
References: <20041108171504.GD89554@finch-staff-1.thus.net>
	<418FBFC0.70209@oceana.com>
Message-ID: <20041109084302.GA4937@finch-staff-1.thus.net>

Ken Murchison said:
> Couple of things I noticed:
> 
> 8.8.1.2, 2nd paragraph, last sentence: "itand" should be "and it"

Just "it", actually. But thanks.

> C, 215:  you show "LIST" as a valid command.  Unless I missed it, we no 
> longer document "LIST" as a shortcut to "LIST ACTIVE *".

You missed it. It's phrased as "If no wildmat is specified, the keyword
ACTIVE MAY be omitted without altering the effect of the command.".

> Are you using 
> this as a way to capture the extensions to LIST?

Yes. Following Russ's suggestion to make LIST ACTIVE.TIMES into an
extension, the most logical approach seemed to be to have a generic LIST
extension.

> In that case maybe it 
> would make more sense to just have "LIST" and nothing else, since this 
> will include "LIST ACTIVE", "LIST HEADERS", etc.

The problem is that:
- we want LIST ACTIVE, LIST EXTENSIONS, and LIST NEWSGROUPS to be mandatory;
- LIST EXTENSIONS doesn't use the 215 response code;
- we want LIST HEADERS and LIST OVERVIEW.FMT to be part of their respective
  extensions, not part of a generic LIST extension;
- LIST HEADERS takes an argument other than a wildmat.

If we have a separate LIST extension, you're going to end up with these
sort of warts. I encourage everyone to look at this wording and see whether
they think it better than having optional commands that would require
separate LIST EXTENSIONS entries. I can put it back fairly easily if
necessary.

> D.[1-4], MODE READER interaction: I think Russ had agreed to changing 
> the text to read:
> 
> "On servers that require the use of the MODE READER command, the
> LISTGROUP command can only be used after the MODE READER command."

Still on my list, waiting for us to resolve the MODE READER issues (since
they could affect all this wording).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 01:20:03 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 01:20:24 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CPfSG-0002L3-5f@trinity.supernews.net>
	<20041104151304.GK42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040928020.17595@shiva1.cac.washington.edu>
Message-ID: <20041109092003.GD4937@finch-staff-1.thus.net>

Mark Crispin said:
>>> There are two fundamental objections to that. First is that you're
>>> assigning semantics to fields which in the deployed specification are
>>> explicitly designated as containing arbitrary non-semantic text.
>> Right: even if it's unlikely in practice, that is not a foundation to build
>> a standard on.
> Why?  MIME did it.  IMAP did it.

I don't know about IMAP, but your MIME example isn't relevant - the MIME
delimiter field was *not* replacing arbitrary non-semantic text, since
delimited objects were a new feature. Rather, you made it a requirement
that the delimiter not appear in the delimited text, which *can* be done
(even if you have to scan the complete object before choosing the
delimiter).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 01:37:25 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 01:37:35 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87d5ys3ob0.fsf@windlord.stanford.edu>
References: <Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
Message-ID: <20041109093725.GA10440@finch-staff-1.thus.net>

Russ Allbery said:
> Note that most servers have eliminated the need for MODE READER by
> ensuring that one of the following conditions is true:
[...]

Having worked through the MODE READER discussion, here's what I think is
the situation.

There are three classes of commands: "transit", "reader", and "general".
Of the core commands apart from MODE READER:
* IHAVE is transit
* HEAD, STAT, LIST ACTIVE, LIST EXTENSIONS are general
  (that's what the present text implies; I think at least QUIT needs
   to be added to that list)
* everything else is reader.

There are *four* possible types of connection. The connection type depends
on the server, the connecting IP, the connection port, and possibly the
phase of the moon :-)

(1) Full-functional. MODE READER is a no-op. The client can use any command
at any time (I'm ignoring authentication etc. for the moment).

(2) Reader-only. MODE READER is a no-op. The client can *not* use any
transit command (it gets 502), but can use all other commands at any time.

(3) Transit-only. MODE READER is a no-op. The client can *not* use any
reader command (it gets 502), but can use all other commands at any time.

(4) Switching. Initially reader commands cannot be used; they get a 401
response. Once MODE READER has been issued, transit commands cannot be
used; they get a 502 response. MODE READER destroys all server state apart
from the switch and therefore LIST EXTENSIONS output can change in this
one case.

Is this correct, in people's opinion?

If so, then why don't I revamp the description to express it like that?
MODE READER can then be rewritten in these terms, which I expect will be
far less confusing. LIST EXTENSIONS can indicate which of the four cases
applies (I would make (1) the default, with the others being READER_ONLY,
TRANSIT_ONLY, and MODE_READER). We'll need to decide which commands are
"transit" and which are "reader", but that won't hold up the rewrite.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 01:40:42 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 01:40:48 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <I6v19y.FB9@clerew.man.ac.uk>
References: <E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<I6v19y.FB9@clerew.man.ac.uk>
Message-ID: <20041109094042.GE4937@finch-staff-1.thus.net>

Charles Lindsey said:
> Does our present draft document the use of port 433?

It does now.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 01:45:09 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 01:45:12 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041109093725.GA10440@finch-staff-1.thus.net>
References: <E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
Message-ID: <20041109094508.GB10440@finch-staff-1.thus.net>

I wrote:

> (2) Reader-only. MODE READER is a no-op. The client can *not* use any
> transit command (it gets 502), but can use all other commands at any time.
> 
> (3) Transit-only. MODE READER is a no-op. The client can *not* use any
> reader command (it gets 502), but can use all other commands at any time.

These two should be 503 ("not supported") rather than 502 ("wrong
authority").

> (4) Switching. Initially reader commands cannot be used; they get a 401
> response. Once MODE READER has been issued, transit commands cannot be
> used; they get a 502 response.

This one *is* 502, since reconnecting makes transit commands available.

> LIST EXTENSIONS can indicate which of the four cases
> applies (I would make (1) the default, with the others being READER_ONLY,
> TRANSIT_ONLY, and MODE_READER).

Ken writes:
> The only case which isn't addressed is a reader-only server, which
> really only effects IHAVE and I think returning a 503 solves this.

Actually, I agree with Mark here. If we're going to have core capabilities
described in LIST EXTENSIONS, let's not leave *anything* as "suck it and
see".

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 02:10:34 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 02:21:13 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <418A7FF5.5020607@oceana.com>
References: <20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
	<20041102223624.GC96632@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>
	<20041104161603.GL42341@finch-staff-1.thus.net>
	<418A7FF5.5020607@oceana.com>
Message-ID: <20041109101034.GF4937@finch-staff-1.thus.net>

Ken Murchison said:
>> It doesn't matter; you can't rely on it. That's building on sand, not
>> drawing a line in it :-)
> How/why wouldn't it be reliable?

Apart from anything else, because a malicious implementation could cause
all kinds of hassle while remaining technically conforming to 977.

Let's see if we can find a cleaner answer.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 02:48:33 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 02:48:44 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <Pine.LNX.4.62.0411040935100.17595@shiva1.cac.washington.edu>
References: <20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
	<20041102223624.GC96632@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>
	<20041104161603.GL42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040935100.17595@shiva1.cac.washington.edu>
Message-ID: <20041109104833.GC10440@finch-staff-1.thus.net>

Mark Crispin said:
> Sometimes you have to make compromises in order to accomplish a desirable 
> result.  The elimination of several RTTs is a highly desirable result.

I agree. The question is whether we can do so without breaking anything
already there. And I think I can come close.

> A way that this could be gotten around may be to restrict the 
> auto-announced extensions to a certain set which are meaningful for 
> session startup; that is, the extensions for TLS, authentication, and 
> (sigh) MODE READER.

Right now, yes. But will this change? Who knows.

>> What you're talking about is a specific use of what I would call
>> "asynchronous messages" - messages not in immediate response to a command.
> No.  It's piggy-backing additional status information on an existing 
> synchronous response.  Both IMAP and SMTP does this.  SMTP has no 
> "asynchronous messages".

I think this is a terminology thing. What we're looking at is status
changes that are caused by, rather than specified by, commands. I see
notification of these as independent of the main responses; I agree that
technically they're not asynchronous, but a capability for the latter can
be used for the former as well.

>> Our existing response code model doesn't have anywhere to insert
>> asynchronous messages from the server. It can't go in the free text area
>> for the reasons given above, so it needs to go somewhere else.
> What is so special about NNTP that it can not do exactly what IMAP and 
> SMTP did?

What exactly was done, and what was the installed base?

And if a cleaner solution exists, why not use it? [Please answer this
generically, before arguing whether my proposals are cleaner.]

====

Okay, accepting for the moment your view that all we need is piggybacking,
and agreeing that the aim is to reduce the number of round trips, let's see
if we can find a workable compromise.

First, I'd like to reinforce a point which people - including Russ - seem
to have missed (perhaps I didn't put it well). This is *VERY* late in the
day to be making significant changes to the wire protocol, particular
when these changes are forced on all clients whether they like it or not,
and when there seem to be ramifications (e.g. piggybacking on the SASL
completion response) that still aren't clear. Technically these changes
are probably out of scope, and do we really want to be including them
without any test implementations (both client and server)?

Fortunately, it isn't necessary to do this in the core protocol unless.
There's a solution which:
- decouples this from the core standardisation path;
- only invokes the feature on client demand, rather than always;
- doesn't require restricting output to a few "important" extensions
- meets my concerns about uncleanliness;
- costs only one RTT at most compared with your approach, while still
  saving round trips compared with the existing protocol.

The answer is to define this facility as an extension, in a separate
document (though it could be rolled back into the core at a later date).
That does the decoupling. The specific proposal meets the other three
objectives.

====

The proposed extension is called LEAN ("LIST EXTENSIONS automatic
notification"). It defines no new commands.

If LIST EXTENSIONS is invoked with the argument AUTO and the server
supports LEAN, auto-notify mode is activated; this is described below.
[We can either allow NOAUTO to turn off auto mode, or we can not have any
way to turn it off.]

[Um, I've just realized that we need to allow "LIST EXTENSIONS AUTO" in
the core protocol to avoid the need to see if LEAN is supported before
using it.]

In auto mode, any command can generate a 101 response code. This indicates
that the LIST EXTENSIONS output has changed. The new output follows the 101
code, followed by the original response line. LIST EXTENSIONS shows that
auto mode is in effect by using the 101 response itself, followed by a
203 response (since the normal 202 means the list would follow).

    [S] 200 NNTP server ready
    [C] LIST EXTENSIONS AUTO
    [S] 101 Auto mode selected
    [S] _NNTP_ 2
    [S] LEAN
    [S] AUTHINFO USER SASL
    [S] .
    [S] 203
    [C] AUTHINFO USER fred
    [S] 101 New extension list
    [S] _NNTP_ 2
    [S] LEAN
    [S] STREAMING
    [S] .
    [S] 281 Authentication accepted

A POSSIBLE optimisation is to provide a "delta" mode where the server sends
changes to the list rather than a new list. This could be done by flagging
the response, for example with a FULL/DELTA argument to the 101 response
and then + and - prefixes:

    [S] 200 NNTP server ready
    [C] LIST EXTENSIONS AUTO
    [S] 101 FULL Auto mode selected
    [S] _NNTP_ 2
    [S] LEAN
    [S] AUTHINFO USER SASL
    [S] .
    [S] 203
    [C] AUTHINFO USER fred
    [S] 101 DELTA Change extension list
    [S] - AUTHINFO USER SASL
    [S] + STREAMING
    [S] .
    [S] 281 Authentication accepted

But this is an add-on; it's not a core part of my proposal.

====

If Russ is confident that a significant change to the core protocol can be
put through at this stage, my proposal can be rolled into the core
protocol simply by removing the fact that it's an extension!

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From chl at clerew.man.ac.uk  Tue Nov  9 02:42:26 2004
From: chl at clerew.man.ac.uk (Charles Lindsey)
Date: Tue Nov  9 03:24:19 2004
Subject: [NNTP] Re: Version numbers
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041108172513.GC93977@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411080946200.2056@shiva1.cac.washington.edu>
Message-ID: <I6wr2q.Ltp@clerew.man.ac.uk>

In <Pine.LNX.4.62.0411080946200.2056@shiva1.cac.washington.edu> Mark Crispin <mrc@CAC.Washington.EDU> writes:

>I strongly suggest that before even contemplating a version number 
>mechanism such as Clive proposes, that you look into the experience of 
>other protocols.  In particular:

>. Why is the MIME version number forever fixed at 1.0?

Because they made no syntactic provision for a header of the form

MIME-Version: 1.0,2.0

which would indicate that clients of both flavours should be able to
handle the message.

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
From chl at clerew.man.ac.uk  Tue Nov  9 02:40:05 2004
From: chl at clerew.man.ac.uk (Charles Lindsey)
Date: Tue Nov  9 03:24:22 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <I6wqyt.Ls0@clerew.man.ac.uk>

In <Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU> Mark Crispin <MRC@CAC.Washington.EDU> writes:

>Fine, then; have a different command for client vs. peer authentication.

>> It's quite likely that no-one has used it in a situation where it
>> matters (INN, transfer access _and_ authentication).

When I first started to use NNTP (some years back, now), I used Stan
Barber's model implementation which followed RFC 997 closely and knew
nothing of "MODE READER".

My first attempts to read news from a server failed because I had not
given MODE READER. It was some early version of INN, and came up in innd
mode even though the IP address I was coming from had no permission to use
IHAVE.

The server I currently upload to comes up in innd mode (because it
recognizes my IP and knows it has permission to use IHAVE). It I wanted to
read from it, I would have to give MODE READER first (I don't, because I
actually read news from yet another server).

So yes, there have been, and still are, servers where MODE READER is
required. I grant you that neither of the cases I mentioned require
AUTHINFO, because they rely(ied) on recognizing my IP. But I see no reason
why they should not choose to use AUTHINFO (I think the capability is
there in INN if they choose to use it).

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
From clive at demon.net  Tue Nov  9 03:31:45 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 03:31:53 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87mzxvrblf.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<87mzxvrblf.fsf@windlord.stanford.edu>
Message-ID: <20041109113145.GG4937@finch-staff-1.thus.net>

Russ Allbery said:
> The problem with not advertising extensions that the client is allowed to
> use after authentication is that the client then has no idea whether the
> extension is available but needs authentication or if it's just not there
> at all.

Um, I hate to sound sour, but that was one of my points when I proposed
the STATUS command. Yet everyone said this feature was unnecessary.

In particular, I asked Mark:
| So you don't want a "this could be available", only "this is available
| right now"?
and he confirmed that this was his view.

So colour me confused.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 03:34:03 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 03:34:08 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <002001c4c525$2a5aebc0$0200a8c0@binaryboy2>
References: <87bre9gtzz.fsf@windlord.stanford.edu>
	<002001c4c525$2a5aebc0$0200a8c0@binaryboy2>
Message-ID: <20041109113403.GH4937@finch-staff-1.thus.net>

Howard Swinehart said:
>> I'm not completely opposed to the idea, but I'm very suspicious of it
>> because other protocols haven't needed it.

Yet.

My experience in other areas (X, C, POSIX) is that eventually the need
comes back and bites you.

> How about if we use the NNTPVx tokens exactly as you described with one
> additional note that tokens beginning with the 5 letters "NNTPV" are
> reserved for indicating the protocol version.  This way clients can reliably
> detect a NNTPV2 or higher protocol by checking for NNTPV*, they can detect
> current broken servers by the lack of NNTPV* and they can detect future
> incompatible versions by the lack of NNTPV2.

Except that I'm writing it differently, this is what I'm proposing (my
"approach B") and what Russ seemed to agree with in a previous message.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 03:39:26 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 03:39:36 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
Message-ID: <20041109113926.GI4937@finch-staff-1.thus.net>

Mark Crispin said:
> Done right, clients should be able to care only about the first digit of 
> the response code.

Excuse me? Do you really mean this as a generic comment?

If so, what is the point of having these detailed codes? I can understand
the approach of "use the first digit if you don't recognise the code", but
we've explicitly forbidden unknown responses to existing commands.

Anyway, what should you do with a 377 response? Or a 123? If you get 299,
is there following dot-stuffed text or not? Etc.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 03:42:34 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 03:42:47 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <20041109114233.GJ4937@finch-staff-1.thus.net>

Mark Crispin said:
>> It happens to be logically necessary, since (from the server
>> perspective) authentication may depend on knowing whether MODE READER
>> has been done but not the reverse. For example, the set of available
>> authentication methods may be different.
> Fine, then; have a different command for client vs. peer authentication.

I still don't see how this helps, because the server throws away all state
on receipt of a (needed) MODE READER. This includes the authentication ID
(and encryption keys).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 03:54:11 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 03:54:19 2004
Subject: [NNTP] Re: Version numbers
In-Reply-To: <Pine.LNX.4.62.0411080946200.2056@shiva1.cac.washington.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041108172513.GC93977@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411080946200.2056@shiva1.cac.washington.edu>
Message-ID: <20041109115411.GK4937@finch-staff-1.thus.net>

Mark Crispin said:
> . Why do HTTP people shudder when asked about HTTP versioning?
> 
> In my experience, a version number facility does nothing except to add 
> substantial complexity and open the door to mischief.

That's not been my experience with (e.g.) C.

> What we need is One True definition of NNTP, an indicator of compliance 
> with this One True definition, and perhaps a slight crack left open for 
> extensions.

So HTTP should have stuck with the One True definition of HTTP/1.0? Never
mind that nobody thought about virtual servers until too late.

I'm stunned by the hubris that says "we've got it completely and absolutely
right and will never need to change things".

And I'm not asking for complex versioning. Just a version number scheme
that allows for change when it turns out we need it.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Nov  9 03:57:39 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 03:57:51 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87wtx0yefw.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
Message-ID: <20041109115739.GD10440@finch-staff-1.thus.net>

Okay, this is going to be a rather portmanteau answer to the long LIST
EXTENSIONS thread sitting in my inbox.

Russ says:
> I do think that we want to adopt something out of the discussion that
> Andrew and Mark had about avoiding round trips.

I've posted separately on this.

> At the least, we need
> to advertise whether MODE READER is required.

And this.

> After Mark's messages, I've been convinced that we should mandate the
> order of the state change commands.  The correct order as near as I can
> tell would be:
> 
>     MODE READER
>     STARTTLS
>     AUTHINFO

Right.

> One can also gain a round trip with a different idea, namely having
> successful successful AUTHINFO SASL (which is a new commands, so we can do
> whatever we want with it) include LIST EXTENSIONS output in its response.

This is a specific example of my LEAN suggestion.

>> Approach B: the server lists all the RFCs to which it conforms. The client
>> needs only know a single RFC (unless it has multiple code paths).

> This is equivalent to having NNTPv2, NNTPv3, etc. extension labels that
> can all be advertised together if the revisions are compatible somehow.  I
> think this is the best approach to take.

Right. Except that it would be "_NNTP_ 2 3".

[3977]
>> Russ? Can you have a go at this?
> I'll ask our AD.

Thanks.

>>>> (3) A conforming server MUST NOT advertise any extension label, other
>>>> than one beginning with X, not in the IANA registry.
>> Note, I think that's stronger than what we had before.
> Yes, but I think it's the right thing to do.

Done.

>> Um, I'm not going to swear there's no other significant options that are
>> worth noting here. Can anyone think of any?
> Do we want to get into advertising whether commands are permitted for a
> particular client?  (POST and NEWNEWS are the ones most frequently not
> permitted.)

We've been through this before. NEWNEWS was mandatory in 977 and we agreed
that there was no reason to change it.

We indicate POST through the initial greeting (and MODE READER). However,
authentication could change this, so I'd be in favour of a POST argument to
the _NNTP_ extension label.


Ken:
> The only question that I have is whether these                   
> capabilities are advertised as arguments to NNTPv2 or as standalone
> extension labels?

They're arguments. The model I have is a single "core capabilities" line in
the LIST EXTENSIONS output.

> The only issue would be        
> that if a SASL security layer is negotiated, any extensions returned in
> the response would probably be ignored by the client anyways, since the
> response is sent in the clear.  Only subsequent commands (e.g. LIST
> EXTENSION) are protected by the SASL security layer.

Um, just out of interest, doesn't this mean that the argument of a 283
response is insecure as well?

Can I make a proposal here? It might sound odd, but bear with me.

*IF* an SASL security layer is negotiated, the server replies with two
responses:
* a 180 response meaning "security layer negotiated"
* the 281 or 283 response as normal
with the security layer coming into effect at the end of the 180, *not* the
28x.

So, using {} to indicate a secure connection:

    [C] AUTHINFO SASL WHATEVER
    [S] 383 base64+stuff
    [C] base64+stuff/finishing+the+negotiation+of+a+security+layer
    [S] 180 security layer starting after this line
    {S} 283 base64/additional+data

You can then send the capabilities in a secure way, either Russ's way:

    [C] AUTHINFO SASL WHATEVER
    [S] 383 base64+stuff
    [C] base64+stuff/finishing+the+negotiation+of+a+security+layer
    [S] 180 security layer starting after this line
    {S} 283 base64/additional+data LIST EXTENSIONS data follows
    {S} _NNTP_ 2
    {S} STREAMING
    {S} .

or in accordance with my LEAN proposal:

    [C] LIST EXTENSIONS AUTO
    [S] 101 auto mode activated
    [S] _NNTP_ 2
    [S] AUTHINFO SASL:WHATEVER
    [S] .
    [S] 203 dummy response
    [C] AUTHINFO SASL WHATEVER
    [S] 383 base64+stuff
    [C] base64+stuff/finishing+the+negotiation+of+a+security+layer
    [S] 180 security layer starting after this line
    {S} 101 Updated LIST EXTENSIONS data follows
    {S} _NNTP_ 2
    {S} STREAMING
    {S} .
    {S} 283 base64/additional+data

Incidentally, I know that TLS puts security into effect before NNTP
restarts and that we've said that the *client* gets to go next, but I
wonder if we should put in a 180 response here to provide a hook for server
capabilities, however done:

    [C] STARTTLS
    [S] 382 negotiating
    [TLS layer is negotiated]
    {S} 180 TLS successful

or with LEAN:

    [C] LIST EXTENSIONS AUTO
    [S] 101 auto mode activated
    [S] _NNTP_ 2
    [S] STARTTLS
    [S] .
    [S] 203 dummy response
    [C] STARTTLS
    [S] 382 negotiating
    [TLS layer is negotiated]
    {S} 101 Updated LIST EXTENSIONS data follows
    {S} _NNTP_ 2
    {S} AUTHINFO USER SASL:PLAIN
    {S} .
    {S} 180 TLS successful

I note that Mark writes:
> If we had been clever with TLS, we would have designed STARTTLS so that
> there was an intermediate response (not under TLS) and a final response
> (under TLS)
so I guess he agrees.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Tue Nov  9 06:27:08 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 06:26:15 2004
Subject: [NNTP] Snapshot
In-Reply-To: <20041109084302.GA4937@finch-staff-1.thus.net>
References: <20041108171504.GD89554@finch-staff-1.thus.net>
	<418FBFC0.70209@oceana.com>
	<20041109084302.GA4937@finch-staff-1.thus.net>
Message-ID: <4190D3BC.9060205@oceana.com>

Clive D.W. Feather wrote:
> Ken Murchison said:
> 
>>Couple of things I noticed:
 >>
>>C, 215:  you show "LIST" as a valid command.  Unless I missed it, we no 
>>longer document "LIST" as a shortcut to "LIST ACTIVE *".
> 
> 
> You missed it. It's phrased as "If no wildmat is specified, the keyword
> ACTIVE MAY be omitted without altering the effect of the command.".

OK.  I didn't see it in the ABNF.  But I'm guesing we don't want to 
promote this.


> Yes. Following Russ's suggestion to make LIST ACTIVE.TIMES into an
> extension, the most logical approach seemed to be to have a generic LIST
> extension.

Right, I agree with this.  Not arguing that point.


>>In that case maybe it 
>>would make more sense to just have "LIST" and nothing else, since this 
>>will include "LIST ACTIVE", "LIST HEADERS", etc.
> 
> 
> The problem is that:
> - we want LIST ACTIVE, LIST EXTENSIONS, and LIST NEWSGROUPS to be mandatory;
> - LIST EXTENSIONS doesn't use the 215 response code;

Yeah, I forgot that LIST EXTENSIONS uses a different response which does 
make things a little murky.


> - we want LIST HEADERS and LIST OVERVIEW.FMT to be part of their respective
>   extensions, not part of a generic LIST extension;

Yes, but LIST is both an extensions *and* a command, so I think grouping 
the mandatory LIST variants with the LIST extensions (as just "LIST" 
commands) is not out of bounds.  Its not a big deal and I'll defer to 
the consensus.


> - LIST HEADERS takes an argument other than a wildmat.

But its still a "LIST" command.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Tue Nov  9 06:44:19 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 06:44:25 2004
Subject: [NNTP] Snapshot
In-Reply-To: <4190D3BC.9060205@oceana.com>
References: <20041108171504.GD89554@finch-staff-1.thus.net>
	<418FBFC0.70209@oceana.com>
	<20041109084302.GA4937@finch-staff-1.thus.net>
	<4190D3BC.9060205@oceana.com>
Message-ID: <20041109144419.GQ4937@finch-staff-1.thus.net>

Ken Murchison said:
>> You missed it. It's phrased as "If no wildmat is specified, the keyword
>> ACTIVE MAY be omitted without altering the effect of the command.".
> OK.  I didn't see it in the ABNF.

  list-active-command = "LIST" [WS "ACTIVE" [WS wildmat]]

Note the outer brackets.

>>> In that case maybe it 
>>> would make more sense to just have "LIST" and nothing else, since this 
>>> will include "LIST ACTIVE", "LIST HEADERS", etc.
>> The problem is that:
>> - we want LIST ACTIVE, LIST EXTENSIONS, and LIST NEWSGROUPS to be 
>> mandatory;

>>- we want LIST HEADERS and LIST OVERVIEW.FMT to be part of their respective
>>  extensions, not part of a generic LIST extension;
> Yes, but LIST is both an extensions *and* a command, so I think grouping 
> the mandatory LIST variants with the LIST extensions (as just "LIST" 
> commands) is not out of bounds.

Except then we get a mandatory extension! I think.

I'm not totally happy with what we've got (though it's better than what we
had), so if you've any suggestions as how to arrange it better, I'd be
happy to think them through.

>> - LIST HEADERS takes an argument other than a wildmat.
> But its still a "LIST" command.

True, and that's relatively minor.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Tue Nov  9 06:47:24 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 06:46:28 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041109115739.GD10440@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
Message-ID: <4190D87C.7050101@oceana.com>

Clive D.W. Feather wrote:

>>The only issue would be        
>>that if a SASL security layer is negotiated, any extensions returned in
>>the response would probably be ignored by the client anyways, since the
>>response is sent in the clear.  Only subsequent commands (e.g. LIST
>>EXTENSION) are protected by the SASL security layer.
> 
> 
> Um, just out of interest, doesn't this mean that the argument of a 283
> response is insecure as well?

Yes.  Its designed this way because the client may not yet know what 
security layer(s) the server has selected.  Just like TLS, the security 
layer can't take effect until negotiation has completed.

Typically nothing in the server's final challenge needs to be protected 
(at least nothing in the mechs that I'm familiar with).


> Can I make a proposal here? It might sound odd, but bear with me.
> 
> *IF* an SASL security layer is negotiated, the server replies with two
> responses:
> * a 180 response meaning "security layer negotiated"
> * the 281 or 283 response as normal
> with the security layer coming into effect at the end of the 180, *not* the
> 28x.

We'd be straying from the beaten path (IMAP, POP, SMTP) with this 
proposal which is something that I'd personally like to avoid.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Tue Nov  9 06:51:02 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 06:50:03 2004
Subject: [NNTP] Snapshot
In-Reply-To: <20041109144419.GQ4937@finch-staff-1.thus.net>
References: <20041108171504.GD89554@finch-staff-1.thus.net>
	<418FBFC0.70209@oceana.com>
	<20041109084302.GA4937@finch-staff-1.thus.net>
	<4190D3BC.9060205@oceana.com>
	<20041109144419.GQ4937@finch-staff-1.thus.net>
Message-ID: <4190D956.8030902@oceana.com>

Clive D.W. Feather wrote:

> Ken Murchison said:
> 
>>>You missed it. It's phrased as "If no wildmat is specified, the keyword
>>>ACTIVE MAY be omitted without altering the effect of the command.".
>>
>>OK.  I didn't see it in the ABNF.
> 
> 
>   list-active-command = "LIST" [WS "ACTIVE" [WS wildmat]]
> 
> Note the outer brackets.

Argh!  I'm batting a thousand.  Clearly I need to either drink more or 
less.  ;)  Sorry about the noise.


> I'm not totally happy with what we've got (though it's better than what we
> had), so if you've any suggestions as how to arrange it better, I'd be
> happy to think them through.

Still pondering.  If I come up with anything more useful than my 
previous blathering, I'll pass it along.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Tue Nov  9 06:51:18 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 06:51:28 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <4190D87C.7050101@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<4190D87C.7050101@oceana.com>
Message-ID: <20041109145118.GS4937@finch-staff-1.thus.net>

Ken Murchison said:
>> Um, just out of interest, doesn't this mean that the argument of a 283
>> response is insecure as well?
> Yes.  Its designed this way because the client may not yet know what 
> security layer(s) the server has selected.  Just like TLS, the security 
> layer can't take effect until negotiation has completed.

But that's nothing to do with the content of the 283, is it? It's simply
that the client needs to be told that negotiation is complete. So if we did
split it as I suggest, the 180 would give that message.

>> Can I make a proposal here? It might sound odd, but bear with me.
[...]
> We'd be straying from the beaten path (IMAP, POP, SMTP) with this 
> proposal which is something that I'd personally like to avoid.

Though Mark says that this is the way he wished he'd done it in IMAP.
Are we never allowed to learn from our predecessors' mistakes?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Tue Nov  9 07:11:27 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 07:10:30 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041109145118.GS4937@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<4190D87C.7050101@oceana.com>
	<20041109145118.GS4937@finch-staff-1.thus.net>
Message-ID: <4190DE1F.7060807@oceana.com>

Clive D.W. Feather wrote:

> Ken Murchison said:
> 
>>>Um, just out of interest, doesn't this mean that the argument of a 283
>>>response is insecure as well?
>>
>>Yes.  Its designed this way because the client may not yet know what 
>>security layer(s) the server has selected.  Just like TLS, the security 
>>layer can't take effect until negotiation has completed.
> 
> 
> But that's nothing to do with the content of the 283, is it?

It may.  The last server "challenge" is more than a "negotiation 
complete" message.  Its typically used for the server to authenticate 
itself to the client, but *could* be used to say "here's the cipher/MAC 
that I've agreed to use for the rest of the session".

>>We'd be straying from the beaten path (IMAP, POP, SMTP) with this 
>>proposal which is something that I'd personally like to avoid.
> 
> 
> Though Mark says that this is the way he wished he'd done it in IMAP.
> Are we never allowed to learn from our predecessors' mistakes?

Actually, now that I think about it none of IMAP, POP or SMTP support 
"success data" in the response.  Only newer SASL-enabled protocols 
(LDAP, BEEP?) support this in their SASL profiles.  Nonetheless, the 
SASL spec states:

"The security layer takes effect immediately following the last response 
of the authentication exchange for data sent by the client and the 
completion indication for data sent by the server."

I guess the term "completion indication" could be somewhat misleading, 
but I *think* this is pretty clear that the "success data" response 
should NOT be encrypted in any way.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From andrew at supernews.net  Tue Nov  9 07:16:19 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Tue Nov  9 07:16:36 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87lldbncep.fsf@windlord.stanford.edu> (Russ Allbery's message
	of "Mon, 08 Nov 2004 15:34:06 -0800")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87fz3nu8qr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051621570.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<873bznu7qw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051713030.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9fsrbr.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051734510.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0s3rbwp.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051740460.4920@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQGQM-000A7B-3e@trinity.supernews.net>
	<Pine.WNT.4.62.0411081437140.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<87lldbncep.fsf@windlord.stanford.edu>
Message-ID: <E1CRXjW-000FLO-HK@trinity.supernews.net>

>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

 Russ> What would you think of documenting port 433 for transit
 Russ> connections in the standard and saying that transit feeds
 Russ> SHOULD use port 433 instead of port 119?  That to me seems like
 Russ> the most viable way of eliminating MODE READER.

The problem with this is that it requires changing the behaviour of a
lot of feeder sites. This solution has been around for many years, and
people have been suggesting it should be the standard for many years,
but it's just not getting any traction (and putting it in the spec
won't change that).

We have one (1) peer out of hundreds that's using port 433. Many sites
don't bother to support alternate ports in their own configuration or
administrative scripts, making it harder to get peers if you restrict
yourself to ports other than 119.

 Russ> Redesigning INN so that it can handle reader and transit
 Russ> connections with the same daemon on the same port is something
 Russ> that would essentially require rewriting INN completely.  This
 Russ> isn't just an incidental design decision -- this was one of the
 Russ> core portions of Rich Salz's original design, and it would
 Russ> probably be easier to write a completely new server from
 Russ> scratch than to eliminate INN's split innd/nnrpd structure.

It's also worth noting that other servers' solutions to this either
aren't applicable to INN or aren't even solutions at all. Diablo, for
example, requires that the transit and reader functionality is in
completely separate processes - running both on a single machine
involves considerable contortions to happen at all and doing both on
the same port, INN-style, is simply not possible. Typhoon solves the
problem by using threads. For DNews I don't know the internal details,
but neither do I know anyone getting decent results from running it
on a large feed.

-- 
Andrew, Supernews
http://www.supernews.com

From mrc at CAC.Washington.EDU  Tue Nov  9 08:32:06 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 08:32:11 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <20041109101034.GF4937@finch-staff-1.thus.net>
References: <20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
	<20041102223624.GC96632@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>
	<20041104161603.GL42341@finch-staff-1.thus.net>
	<418A7FF5.5020607@oceana.com>
	<20041109101034.GF4937@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0411090825530.15653@shiva1.cac.washington.edu>

On Tue, 9 Nov 2004, Clive D.W. Feather wrote:
> Apart from anything else, because a malicious implementation could cause
> all kinds of hassle while remaining technically conforming to 977.

Pshaw.  Strawman argument.

Nothing, and I do mean nothing, will stop a malicious implementation no 
matter what we do.

There is plenty of precedent to the practice of placing protocol in what 
was previously free-text.  SMTP does it (extended response codes, "ESMTP" 
in the greeting).  POP3 does it (APOP authentication data in the 
greeting).  IMAP does it (status response codes, including capabilities in 
the greeting).

NNTP is not unique and different, nor does it have special vulnerabilities 
that require special practices different from every other protocol to 
overcome malicious implementations.

> Let's see if we can find a cleaner answer.

Somehow, I find it difficult to hear the phrase "clean" associated with a 
protocol that gave us MODE READER, incomplete LIST EXTENSIONS, etc.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From mrc at CAC.Washington.EDU  Tue Nov  9 08:53:40 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 08:53:46 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <20041109104833.GC10440@finch-staff-1.thus.net>
References: <20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
	<20041102223624.GC96632@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>
	<20041104161603.GL42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040935100.17595@shiva1.cac.washington.edu>
	<20041109104833.GC10440@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0411090832360.15653@shiva1.cac.washington.edu>

On Tue, 9 Nov 2004, Clive D.W. Feather wrote:
>>> Our existing response code model doesn't have anywhere to insert
>>> asynchronous messages from the server. It can't go in the free text area
>>> for the reasons given above, so it needs to go somewhere else.
>> What is so special about NNTP that it can not do exactly what IMAP and
>> SMTP did?
> What exactly was done, and what was the installed base?

What is the installed base of SMTP, POP3, and IMAP?

SMTP added extended response codes.  SMTP also requires that an ESMTP 
capable server include "ESMTP" somewhere in the greeting.

POP3 added the APOP authentication token in the greeting.

IMAP added status response codes, among which are capabilities in the 
greetings.

All of these protocols either have incredibly stupid designers who can not 
see the problems that are the NNTP designers see -- or just maybe the 
problems are not substantial enough to be of concern.

> And if a cleaner solution exists, why not use it? [Please answer this
> generically, before arguing whether my proposals are cleaner.]

I'm afraid that you may not be seeing the higher-level picture.

The single aspect of NNTP and news header formats that sucks the worst is 
where they go off and do something different from email, all in the name 
of doing what someone in the news community thought was "cleaner".  This 
is an ongoing problem; the news community has a dismal history of 
insisting upon reinventing wheels that are already long-invented and 
well-understood.

The work involved to examine and consider reinvented wheels, and to create 
new tools for these wheels (as opposed to reusing existing tools) should 
not be underestimated.

It isn't as if there is no other work to do in NNTP, and thus there is the 
luxury of thinking about how to reinvent a better wheel.  It isn't as if 
the IESG, not to mention the entire community of client implementors, are 
twiddling their thumbs with nothing to do other than think about the 
latest wheel reinvention.

> This is *VERY* late in the
> day to be making significant changes to the wire protocol, particular
> when these changes are forced on all clients whether they like it or not,
> and when there seem to be ramifications (e.g. piggybacking on the SASL
> completion response) that still aren't clear.

Now you are making me quite angry.

There is a reason why productive people haven't paid much attention to 
what is going on in the NNTPEXT and USEFOR working groups.  These groups 
have been so dysfunctional in the past that most of us stopped tracking 
them.  I wouldn't be here if Ken hadn't dragged me in with assurances that 
there was new leadership to stop it.

"Force changes on all clients"?!?  What the hell are you talking about? 
Every existing client is fully compatible with this change.  That's the 
advantage of using a free text field.

"SASL ramifications still aren't clear"?!?  Do you really think that NNTP 
is so unique that this is a problem that hasn't already been addressed?

> Technically these changes
> are probably out of scope, and do we really want to be including them
> without any test implementations (both client and server)?

A client and server implementation could probably be produced in a few 
hours.

> - costs only one RTT at most compared with your approach, while still
>  saving round trips compared with the existing protocol.

It's still a wasted RTT.

Your proposed AUTO mechanism is quite complicated and as such is extremely 
vulnerable to implementation problems.  I doubt that I would ever 
implement it.

Among other things, it adds the equivalent of IMAP unsolicited data to 
NNTP.  This is something that is extremely difficult to get right.  IMAP 
absolutely needs it.  NNTP does not.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From mrc at CAC.Washington.EDU  Tue Nov  9 09:00:14 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 09:00:18 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041109113926.GI4937@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<20041109113926.GI4937@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0411090858220.15653@shiva1.cac.washington.edu>

On Tue, 9 Nov 2004, Clive D.W. Feather wrote:
> Mark Crispin said:
>> Done right, clients should be able to care only about the first digit of
>> the response code.
> Excuse me? Do you really mean this as a generic comment?

Yes.

> If so, what is the point of having these detailed codes?

Documentation only.

Checking for explicit codes has a long history of being problematic in 
SMTP and FTP.  NNTP has a dismal history as well (need I remind you of 380 
vs 480)?

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Tue Nov  9 09:46:01 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 09:45:05 2004
Subject: [NNTP] Capabilities in responses (Was: MODE READER)
In-Reply-To: <Pine.LNX.4.62.0411090832360.15653@shiva1.cac.washington.edu>
References: <20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>
	<20041102154424.GP34826@finch-staff-1.thus.net>
	<4187F2D2.8010500@oceana.com>
	<20041102223624.GC96632@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411021529420.5188@Tomobiki-Cho.CAC.Washington.EDU>
	<20041104161603.GL42341@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411040935100.17595@shiva1.cac.washington.edu>
	<20041109104833.GC10440@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411090832360.15653@shiva1.cac.washington.edu>
Message-ID: <41910259.2060706@oceana.com>

Mark Crispin wrote:

> On Tue, 9 Nov 2004, Clive D.W. Feather wrote:
> 
>>>> Our existing response code model doesn't have anywhere to insert
>>>> asynchronous messages from the server. It can't go in the free text 
>>>> area
>>>> for the reasons given above, so it needs to go somewhere else.
>>>
>>> What is so special about NNTP that it can not do exactly what IMAP and
>>> SMTP did?
>>
>> What exactly was done, and what was the installed base?
> 
> 
> What is the installed base of SMTP, POP3, and IMAP?
> 
> SMTP added extended response codes.  SMTP also requires that an ESMTP 
> capable server include "ESMTP" somewhere in the greeting.
> 
> POP3 added the APOP authentication token in the greeting.
> 
> IMAP added status response codes, among which are capabilities in the 
> greetings.

I don't have any hard numbers, but my guess is that if you just look at 
open source products (Sendmail, Qpopper and UW IMAP respectively), we're 
talking about thousands (if not 10K or 100K) of servers that were 
deployed with these changes without the client world coming to an abrupt 
end.

The reason being that the above changes as well as those being proposed 
for NNTP and *completely* backwards compatible with an RFC 977 client. 
Its a completely "take it or leave it" facility, not a "take it or else 
you're screwed" facility.


>> This is *VERY* late in the
>> day to be making significant changes to the wire protocol, particular
>> when these changes are forced on all clients whether they like it or not,
>> and when there seem to be ramifications (e.g. piggybacking on the SASL
>> completion response) that still aren't clear.

We're not *forcing* anything on the client.  We're simply putting some 
structured text in the free-text area that a client is free to use or 
ignore as they see fit.  An "enlightened" client such as Pine would use 
the capability info in these responses to reduce roundtrips.  An 
"unenlightened" client (such as legacy clients or those written by 
authors that don't care to read specs) wouldn't be impacted as all.  My 
guess is that most currnt clients ignore the free-text that comes with 
"success" responses anyways.

Please point out the unclear SASL ramifications, so we can address them. 
  If we're talking about the 283 response, I don't see any problems.  If 
we're talking about SASL security layers, this is nothing new and isn't 
a show stopper.


>> Technically these changes
>> are probably out of scope, and do we really want to be including them
>> without any test implementations (both client and server)?
> 
> 
> A client and server implementation could probably be produced in a few 
> hours.

I'd volunteer to put this in the Cyrus code and Mark could test against 
it with Pine, as we've done in the past.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Tue Nov  9 10:12:24 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 10:12:26 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.LNX.4.62.0411090858220.15653@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Tue, 9 Nov 2004 09:00:14 -0800 (PST)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<20041109113926.GI4937@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411090858220.15653@shiva1.cac.washington.edu>
Message-ID: <87actq7uyf.fsf@windlord.stanford.edu>

Mark Crispin <mrc@CAC.Washington.EDU> writes:

> Checking for explicit codes has a long history of being problematic in
> SMTP and FTP.  NNTP has a dismal history as well (need I remind you of
> 380 vs 480)?

Well, I don't know about the other folks on this list, but I have to admit
that I'm not feeling particularly guilty, nor think the NNTP community as
a whole should be blamed, for status codes that were never documented
anywhere, that no one else had ever heard of, and that have not been
enountered by anyone else that I've talked to other than you.

I don't know what gave you 380, but it was broken by any documentation the
NNTP community has ever produced.  Either it was broken as written, or
it's some highly obscure or experimental server from before AUTHINFO, or
something else strange was going on there.  I certainly wouldn't blame you
if you just gave up entirely on any server that returned a 380 status
code.  People write hideously broken software; I don't think the IMAP
community is responsible for, say, some of the things that Courier does.

That being said, it has been documented in NNTP for quite some time that
clients should respond to unknown codes based on the first digit, so
clearly this is indeed a design goal and status codes should be chosen to
enable that behavior.  I think we're doing fairly well so far with this.
Note that such things as reactive authentication or reactive TLS
negotiation aren't going to work with that paradigm, but I think we're
moving away from that towards LIST EXTENSIONS advertisements, so that
isn't really a problem.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Nov  9 10:13:48 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 10:13:50 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041109113145.GG4937@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Tue, 9 Nov 2004 11:31:45 +0000")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<87mzxvrblf.fsf@windlord.stanford.edu>
	<20041109113145.GG4937@finch-staff-1.thus.net>
Message-ID: <87654e7uw3.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:
> Russ Allbery said:

>> The problem with not advertising extensions that the client is allowed
>> to use after authentication is that the client then has no idea whether
>> the extension is available but needs authentication or if it's just not
>> there at all.

> Um, I hate to sound sour, but that was one of my points when I proposed
> the STATUS command. Yet everyone said this feature was unnecessary.

I was reiterating your point to make sure that people continued to think
about it.  I'm mostly convinced that it's unnecessary to distinguish
between an extension that's not available at all and one that will become
available after authentication or TLS negotiation, and Mark certainly
seems to think that it's unnecessary, but I don't want us to forget that
we're making that decision and I want to give people plenty of opportunity
to object if that sounds wrong.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Tue Nov  9 10:33:34 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 10:35:42 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041109114233.GJ4937@finch-staff-1.thus.net>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
Message-ID: <Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Clive D.W. Feather wrote:
> Mark Crispin said:
>>> It happens to be logically necessary, since (from the server
>>> perspective) authentication may depend on knowing whether MODE READER
>>> has been done but not the reverse. For example, the set of available
>>> authentication methods may be different.
>> Fine, then; have a different command for client vs. peer authentication.
> I still don't see how this helps, because the server throws away all state
> on receipt of a (needed) MODE READER. This includes the authentication ID
> (and encryption keys).

If there is a different command for client vs. peer authentication, then 
there is no need for MODE READER.

Actually, if you take the position that RFC 977 is anything more than 
worthless, then MODE READER is not needed because it is not in RFC 977.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Tue Nov  9 10:50:09 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 10:52:15 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87actq7uyf.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<20041109113926.GI4937@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411090858220.15653@shiva1.cac.washington.edu>
	<87actq7uyf.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091035350.5488@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> I don't know what gave you 380, but it was broken by any documentation the
> NNTP community has ever produced.  Either it was broken as written, or
> it's some highly obscure or experimental server from before AUTHINFO, or
> something else strange was going on there.

Support for 380 and 480 appeared in my code between April 14, 1994 and 
August 1, 1995; and apparently 380 came first.

I respectfully point out that RFC 2980 was not issued until October 2000. 
Therefore, it can not be claimed that 380 was "broken" prior to that time.

I agree that 480 makes much more sense than 380; I have no intention of 
defending 380.  On the other hand, the fact that 381 exists tends to 
suggest that, at least at some point in history, 380 existed.

Actually, 580 makes more sense than 480.  Ditto 481 and 482.  Someone 
evidentally misunderstands the meaning of 4xx response codes.  I've kept 
silent on this problem because NNTP is so broken in other respects that 
are more important to fix.  The world will continue to survive even if 
NNTP continues to misuse of 4xx.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Tue Nov  9 11:17:14 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 11:17:16 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091035350.5488@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 10:50:09 -0800 (Pacific Standard
	Time)")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu> <418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<20041109113926.GI4937@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411090858220.15653@shiva1.cac.washington.edu>
	<87actq7uyf.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091035350.5488@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87pt2mu91h.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:

> Support for 380 and 480 appeared in my code between April 14, 1994 and
> August 1, 1995; and apparently 380 came first.

I did some more hunting.  That hypothesis makes sense, given that the
reference NNTP implementation does have 380 in its nntp.h, but the
1.5.12.1 release doesn't use it anywhere, using only 480.  INN 1.0 used
only 480 in 1991, so presumably the change, if the guess is correct, was
made sometime before that.  If there was a change, it's not mentioned in
the changelog of the reference NNTP implementation, so it's hard to date.

That puts the date of a change somewhere between 1986, when RFC 977 was
published (which was right about the time that NNTP software was first
being deployed) and 1990, since INN has never had a mention of it at all.

My guess would be that you added the code for interoperability with a
fairly old C News site.  That would explain why I've never heard of it; at
the time it was still in use, I was using VMS and had never heard of the
Internet.  I don't expect there are many NNTP implementors who are still
writing code who remember the history.  Stan or Henry might remember.

> I respectfully point out that RFC 2980 was not issued until October
> 2000. Therefore, it can not be claimed that 380 was "broken" prior to
> that time.

Actually, RFC 2980 can't even declare things broken; it's not a standard.
RFC 2980 is just documentation.

In some sense, anything that anyone does with NNTP outside of the bounds
of RFC 977 can't be declared "wrong"; in practice, I'm pretty comfortable
calling things wrong if they don't behave like the reference NNTP
implementation and INN, until we get a new standard released.  That's the
best that we've had for quite a while now (which is, of course, why this
working group).

> Actually, 580 makes more sense than 480.  Ditto 481 and 482.  Someone
> evidentally misunderstands the meaning of 4xx response codes.  I've kept
> silent on this problem because NNTP is so broken in other respects that
> are more important to fix.  The world will continue to survive even if
> NNTP continues to misuse of 4xx.

4xx has never, from the very beginning of the NNTP protocol, meant the
same thing that it meant in other protocols.  So that one you can blame on
the original RFC 977 authors, but all subsequent status codes are just
staying consistent with RFC 977.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Nov  9 11:30:29 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 11:30:31 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 10:33:34 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <878y9au8fe.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:
> On Tue, 9 Nov 2004, Clive D.W. Feather wrote:

>> I still don't see how this helps, because the server throws away all
>> state on receipt of a (needed) MODE READER. This includes the
>> authentication ID (and encryption keys).

> If there is a different command for client vs. peer authentication, then
> there is no need for MODE READER.

I don't understand why this would be the case.  The need or lack thereof
of MODE READER has nothing to do with authentication.  You can make the
client authentication command do an implicit MODE READER, but that does
nothing for the (numerous) sites that don't use any authentication at all.

> Actually, if you take the position that RFC 977 is anything more than
> worthless, then MODE READER is not needed because it is not in RFC 977.

I would take the position that RFC 977 is largely worthless, not because
of that, but because of quite a few other omissions and inconsistencies
with what news servers actually do.  Most of them are, like MODE READER,
ones that only bite you in rare circumstances, although there are
certainly a fair number of core commands missing entirely.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Tue Nov  9 13:35:34 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 13:37:41 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <878y9au8fe.fsf@windlord.stanford.edu>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
>> If there is a different command for client vs. peer authentication, then
>> there is no need for MODE READER.
> I don't understand why this would be the case.  The need or lack thereof
> of MODE READER has nothing to do with authentication.  You can make the
> client authentication command do an implicit MODE READER, but that does
> nothing for the (numerous) sites that don't use any authentication at all.

If the site does not use authentication, then the mode switch can be made 
on the first IHAVE command (to set peer mode) or the first command other 
than HEAD, STAT, LIST ACTIVE, or LIST EXTENSIONS (to set client mode).

Or we can simply define a no-credentials authentication method (ala SASL 
anonymous) that sets peer mode and declare client mode to otherwise be the 
default.

>> Actually, if you take the position that RFC 977 is anything more than
>> worthless, then MODE READER is not needed because it is not in RFC 977.
> I would take the position that RFC 977 is largely worthless, not because
> of that, but because of quite a few other omissions and inconsistencies
> with what news servers actually do.  Most of them are, like MODE READER,
> ones that only bite you in rare circumstances, although there are
> certainly a fair number of core commands missing entirely.

I agree; which proves the point that "it's not compatible with RFC 977" is 
a silly argument.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Tue Nov  9 13:45:13 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 13:47:21 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87pt2mu91h.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<20041109113926.GI4937@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411090858220.15653@shiva1.cac.washington.edu>
	<87actq7uyf.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091035350.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<87pt2mu91h.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091336060.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> My guess would be that you added the code for interoperability with a
> fairly old C News site.  That would explain why I've never heard of it; at
> the time it was still in use, I was using VMS and had never heard of the
> Internet.

The term "C News" sure sounds familiar.

For what it is worth, I have been on the Internet (or its ARPAnet 
predecessor) for 30 years.

>> Actually, 580 makes more sense than 480.  Ditto 481 and 482.  Someone
>> evidentally misunderstands the meaning of 4xx response codes.  I've kept
>> silent on this problem because NNTP is so broken in other respects that
>> are more important to fix.  The world will continue to survive even if
>> NNTP continues to misuse of 4xx.
> 4xx has never, from the very beginning of the NNTP protocol, meant the
> same thing that it meant in other protocols.  So that one you can blame on
> the original RFC 977 authors, but all subsequent status codes are just
> staying consistent with RFC 977.

As I said, NNTP is broken in many respects.  It is a particularly bad form 
of breakage to copy, but misuse, a protocol architecture from other 
protocols (e.g. SMTP, FTP).  NNTP's misuse of 4xx seems to have been 
unintentional rather than open defiance of the architecture.

Nevertheless, I don't think that it's worth trying to fix this.  There are 
other matters which are more important to fix.  It's much higher priority 
from my perspective to get MODE READER flushed.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Tue Nov  9 14:01:40 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 14:01:43 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 13:35:34 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <873bzismuz.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:

> If the site does not use authentication, then the mode switch can be
> made on the first IHAVE command (to set peer mode) or the first command
> other than HEAD, STAT, LIST ACTIVE, or LIST EXTENSIONS (to set client
> mode).

That's not a bad idea and wouldn't break existing software that I'm aware
of.  I think it's even uglier than MODE READER from a protocol standpoint,
since it means that LIST EXTENSIONS may change as the result of issuing
quite a few different commands, but if you really think that's cleaner, we
can at least discuss it.

> Or we can simply define a no-credentials authentication method (ala SASL
> anonymous) that sets peer mode and declare client mode to otherwise be
> the default.

This doesn't help since it's not backward compatible with existing
clients.  Whatever we come up with has to be backward compatible with
existing clients (see the working group charter).

I'll expand on that thought in a little bit as soon as I get out of some
meetings.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From andrew at supernews.net  Tue Nov  9 14:33:22 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Tue Nov  9 14:33:38 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 13:35:34 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <E1CReYS-000L1q-DR@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <MRC@CAC.Washington.EDU> writes:

 Mark> If the site does not use authentication, then the mode switch
 Mark> can be made on the first IHAVE command (to set peer mode) or
 Mark> the first command other than HEAD, STAT, LIST ACTIVE, or LIST
 Mark> EXTENSIONS (to set client mode).

No, it can't. One word: pipelining.

-- 
Andrew, Supernews
http://www.supernews.com

From MRC at CAC.Washington.EDU  Tue Nov  9 14:40:29 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 14:42:35 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <873bzismuz.fsf@windlord.stanford.edu>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> That's not a bad idea and wouldn't break existing software that I'm aware
> of.  I think it's even uglier than MODE READER from a protocol standpoint,
> since it means that LIST EXTENSIONS may change as the result of issuing
> quite a few different commands, but if you really think that's cleaner, we
> can at least discuss it.

Well, I personally don't think that there should be a mode at all; either 
the protocol should be split into two different port services, or the 
modality should be abolished.

I'm just trying to come up with alternative strawman proposals for what 
could work for inn while relieving clients of the burden.

A third variant (as an inn implementation solution) is to have the 
heuristic to set the mode, but if a command in the other mode is given 
then you just run the other daemon in a subfork.  Since this should never 
happen in real life as long as the heuristic isn't broken, it's alright 
that this be inefficient.

>> Or we can simply define a no-credentials authentication method (ala SASL
>> anonymous) that sets peer mode and declare client mode to otherwise be
>> the default.
> This doesn't help since it's not backward compatible with existing
> clients.

Why?  We're not changing clients, we're changing NNTP peers.  I think that 
we can claim this to be in-charter.

In this strawman, MODE READER becomes a noop.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Tue Nov  9 14:41:20 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 14:43:25 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <E1CReYS-000L1q-DR@trinity.supernews.net>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CReYS-000L1q-DR@trinity.supernews.net>
Message-ID: <Pine.WNT.4.62.0411091440470.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Andrew - Supernews wrote:
> Mark> If the site does not use authentication, then the mode switch
> Mark> can be made on the first IHAVE command (to set peer mode) or
> Mark> the first command other than HEAD, STAT, LIST ACTIVE, or LIST
> Mark> EXTENSIONS (to set client mode).
> No, it can't. One word: pipelining.

Pipelining isn't relevant.  The mode switch is an internal concept in the 
server, and doesn't affect the client/server protocol at all.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From andrew at supernews.net  Tue Nov  9 14:45:11 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Tue Nov  9 14:45:26 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 14:40:29 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <E1CRejt-000LDN-Bn@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <MRC@CAC.Washington.EDU> writes:

 >>> Or we can simply define a no-credentials authentication method
 >>> (ala SASL anonymous) that sets peer mode and declare client mode
 >>> to otherwise be the default.

 >> This doesn't help since it's not backward compatible with existing
 >> clients.

 Mark> Why?  We're not changing clients, we're changing NNTP peers.  I
 Mark> think that we can claim this to be in-charter.

No. Peers are clients too (and if anything they are harder to change than
reader clients).

-- 
Andrew, Supernews
http://www.supernews.com

From MRC at CAC.Washington.EDU  Tue Nov  9 14:47:06 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 14:49:11 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <E1CRejt-000LDN-Bn@trinity.supernews.net>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CRejt-000LDN-Bn@trinity.supernews.net>
Message-ID: <Pine.WNT.4.62.0411091444570.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Andrew - Supernews wrote:
> No. Peers are clients too (and if anything they are harder to change than
> reader clients).

It only matters when there is peer authentication.  Just how many such 
peers are there.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From andrew at supernews.net  Tue Nov  9 14:55:43 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Tue Nov  9 14:56:00 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091440470.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 14:41:20 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CReYS-000L1q-DR@trinity.supernews.net>
	<Pine.WNT.4.62.0411091440470.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <E1CReu6-000LLS-2Y@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <MRC@CAC.Washington.EDU> writes:

 Mark> If the site does not use authentication, then the mode switch
 Mark> can be made on the first IHAVE command (to set peer mode) or
 Mark> the first command other than HEAD, STAT, LIST ACTIVE, or LIST
 Mark> EXTENSIONS (to set client mode).

 >> No, it can't. One word: pipelining.

 Mark> Pipelining isn't relevant.  The mode switch is an internal
 Mark> concept in the server, and doesn't affect the client/server
 Mark> protocol at all.

Of course it's relevent. Notice that MODE READER is explicitly defined
as not being pipelinable?

If you want the switch to happen in response to a pipelinable command,
then you have to start worrying about preserving the pipeline over the
handoff (which in the transit->reader direction is a fork+exec of a new
program; there is no way back).

-- 
Andrew, Supernews
http://www.supernews.com

From MRC at CAC.Washington.EDU  Tue Nov  9 14:57:54 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 14:59:59 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <E1CReu6-000LLS-2Y@trinity.supernews.net>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CReYS-000L1q-DR@trinity.supernews.net>
	<Pine.WNT.4.62.0411091440470.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CReu6-000LLS-2Y@trinity.supernews.net>
Message-ID: <Pine.WNT.4.62.0411091456010.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Andrew - Supernews wrote:
> If you want the switch to happen in response to a pipelinable command,
> then you have to start worrying about preserving the pipeline over the
> handoff (which in the transit->reader direction is a fork+exec of a new
> program; there is no way back).

That is a server implementation issue.  It is not something that should be 
inflicted on the client.

NNTP sure stands out as being a protocol of, by, and for servers and 
server developers.  Perhaps the NNTP community would be happier if there 
weren't any clients.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Tue Nov  9 16:30:28 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 16:30:29 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 14:40:29 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87k6sur1ej.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:
> On Tue, 9 Nov 2004, Russ Allbery wrote:

>> This doesn't help since it's not backward compatible with existing
>> clients.

> Why?  We're not changing clients, we're changing NNTP peers.  I think
> that we can claim this to be in-charter.

That's not my reading of the charter.  Note particularly this part:

    The first concern of this working group shall be for the
    interoperability of the various NNTP implementations, and therefore
    for clear and explicit specification of the protocol. It is very
    important that we document the existing situation before taking up any
    new work.

I really don't think we should be doing anything that breaks existing
NNTP clients if we can possibly avoid it, which includes NNTP peers.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Tue Nov  9 16:43:29 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 16:45:34 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87k6sur1ej.fsf@windlord.stanford.edu>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87k6sur1ej.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091640540.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
>    The first concern of this working group shall be for the
>    interoperability of the various NNTP implementations, and therefore
>    for clear and explicit specification of the protocol. It is very
>    important that we document the existing situation before taking up any
>    new work.
> I really don't think we should be doing anything that breaks existing
> NNTP clients if we can possibly avoid it, which includes NNTP peers.

I don't see how that is inconsistant with creating a "compatibility with 
pre-NNTPv2 servers" document and then moving ahead.

As far as interoperability, I respectfully suggest that the current 
situation, in which MODE READER can respond with "can't do this until you 
AUTHINFO first", and AUTHINFO can respond with "can't do this until you 
MODE READER first" is not condusive to interoperability.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Tue Nov  9 16:47:38 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 16:47:41 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091640540.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 16:43:29 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87k6sur1ej.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091640540.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87d5ympm1h.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:

> As far as interoperability, I respectfully suggest that the current
> situation, in which MODE READER can respond with "can't do this until
> you AUTHINFO first", and AUTHINFO can respond with "can't do this until
> you MODE READER first" is not condusive to interoperability.

We've already reached a list consensus that 480 responses to MODE READER
will be explicitly banned by the standard.  You may not have gotten a copy
of that, though (I think you're getting about 75% of the list mail right
now but not all of it).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Nov  9 17:08:12 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 17:08:14 2004
Subject: [NNTP] Optional LIST commands
In-Reply-To: <20041107094450.GE41423@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Sun, 7 Nov 2004 09:44:50 +0000")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<871xf8zuox.fsf_-_@windlord.stanford.edu>
	<20041107094450.GE41423@finch-staff-1.thus.net>
Message-ID: <878y9apl37.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> Taking this and Ken's message, here's what I'll do if nobody screams:

> * Make LIST NEWSGROUPS mandatory.
> * Create a new standard extension called LIST.
> * All commands in this extension have two-part keywords; the only
>   restriction is that they can't be the same as the mandatory LIST
>   commands, obviously.
> * An implementation can support any number of such keywords but:
>   - they are only for returning information;
>   - no LIST command can change the server state;
>   - they all use the same, specified, set of response codes.
> * LIST EXTENSIONS lists all of the supported keywords.
> * We document meanings for ACTIVE.TIMES and DISTRIB.PATS.

I'm inclined to say that this sounds like the right thing to do.  It's a
little weird, but then the LIST command in general is rather weird.  The
only thing that worries me is that I wonder if we need an IANA registry or
something for different LIST types, and if so that looks like a very odd
thing to ask them to maintain.

The alternative, I suppose, is to define each additional list command as a
separate extension and advertise it as such (LIST-ACTIVE.TIMES,
LIST-DISTRIB.PATS, etc.).  That's a little more consistent, but feels even
uglier and too verbose to me.

I'm not really convinced one way or the other, though.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Tue Nov  9 17:20:21 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 17:20:32 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
References: <87wtx0yefw.fsf@windlord.stanford.edu>	<418BA181.4060504@oceana.com>	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>	<E1CQ98A-0003K9-0S@trinity.supernews.net>	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>	<877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com>	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>	<20041109114233.GJ4937@finch-staff-1.thus.net>	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>	<878y9au8fe.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <41916CD5.2060805@oceana.com>

Mark Crispin wrote:
> On Tue, 9 Nov 2004, Russ Allbery wrote:
> 
>> That's not a bad idea and wouldn't break existing software that I'm aware
>> of.  I think it's even uglier than MODE READER from a protocol 
>> standpoint,
>> since it means that LIST EXTENSIONS may change as the result of issuing
>> quite a few different commands, but if you really think that's 
>> cleaner, we
>> can at least discuss it.
> 
> 
> Well, I personally don't think that there should be a mode at all; 
> either the protocol should be split into two different port services, or 
> the modality should be abolished.
> 
> I'm just trying to come up with alternative strawman proposals for what 
> could work for inn while relieving clients of the burden.

Correct me if I'm wrong in my logic.

The problem that we're trying to solve at the moment is that at least 
one reader client (Pine and c-client derivatives) does STARTTLS/AUTHINFO 
before MODE READER.  This works in all cases except those in which MODE 
READER is significant (certain INN configs for one).

IMO, the cat is already out of the bag on this one.  We have deployed 
client code which will not work with a presumably small set of deployed 
servers.  We can only hope to fix this going forward.  We have two 
choices: either fix the client or fix the server.

If we fix the server, we have to remove the significance MODE READER so 
it can either be abolished or be used in any order with 
AUTHINFO/STARTTLS.  This will work, but given that INN was designed 
around the use of MODE READER, changing this willmost likely result in a 
non-trivial development effort.

If we simply change the client to use MODE READER before 
STARTTLS/AUTHINFO (which was its intended, although undocumented, 
intent), we solve the problem with a trivial fix and AFAIK don't 
introduce any new compatibilties with deployed servers.

I'm sure I'm going to get some heat from Mark on this, but I thought I'd 
throw it out there.  Please set me straight on why this solution is not 
as simple as it appears.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Tue Nov  9 17:22:11 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 17:22:12 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041109115739.GD10440@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Tue, 9 Nov 2004 11:57:39 +0000")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
Message-ID: <87vfceo5vg.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> We've been through this before. NEWNEWS was mandatory in 977 and we
> agreed that there was no reason to change it.

Good point.  Maybe there's no reason to allow servers to disable it any
more (or at least to disable it frequently enough that it's worth special
note in LIST EXTENSIONS).

> We indicate POST through the initial greeting (and MODE
> READER). However, authentication could change this, so I'd be in favour
> of a POST argument to the _NNTP_ extension label.

The initial greeting has been a complete mess for years.  An extension
would be much more reliable and much more consistent.

> They're arguments. The model I have is a single "core capabilities" line
> in the LIST EXTENSIONS output.

This I'm not sure I understand the reason for.

Looking at this from the perspective of a client, I just want to know
what's available to me to use.  I don't really care about the distinction
between the core protocol and extensions; for all that I care, POST could
be considered an extension.  I just want to know whether I can use it or
not.

It's really easy to take a list of extensions and parse it.  It's a bit
more annoying when you have to special-case the _NNTP_ extension and parse
its arguments and use that to decide what commands are available, when for
OVER it's just a regular extension.  It seems like it would be a lot more
straightforward to just say that there's a POST capability that we
advertise if POST is accepted, there's an IHAVE capability that we
advertise if IHAVE is accepted, and there's a READER capability that we
advertise if reader commands are allowed.

In my mind, extension arguments are there to express some sort of
additional information about the extension other than just whether or not
it's available.  For AUTHINFO, this is what authentication mechanisms are
supported.  For OVER, this is whether OVER on a message ID is supported.
Whether POST, IHAVE, or reader commands are available doesn't feel to me
like the same sort of thing at all; in fact, that seems parallel to OVER
or HDR or the other extensions that are part of the list like any other.

The whole distinction of what's an extension and what isn't is
fundamentally arbitrary anyway -- the only real distinction is that
extensions are things that are optional to implement.  In that sense,
IHAVE is actually an extension, since you can write a standalone NNTP
server that doesn't take any external feeds without ever writing an IHAVE
implementation.  We wouldn't generally call that a fully-functional NNTP
server, but from a client perspective it looks just like any other one (it
just doesn't advertise the IHAVE capability).

> Can I make a proposal here? It might sound odd, but bear with me.

> *IF* an SASL security layer is negotiated, the server replies with two
> responses:
> * a 180 response meaning "security layer negotiated"
> * the 281 or 283 response as normal
> with the security layer coming into effect at the end of the 180, *not* the
> 28x.

I'm really leery of sending two responses in response to a command.  Other
NNTP commands don't do that; we'd be adding a new style of response (since
you're not sending the terminating .CRLF of a multiline response either).

After reading all this discussion, I'm becoming inclined to just give
further attempts to reduce the RTTs for an initial client connection a
pass for the time being, except possibly for putting something into the
200 response.  I know that in an ideal world STARTTLS or SASL should have
had some way of communicating this sort of information after completion,
but none of the other protocols do this (except IMAP, which has a
capability for out of order responses that we don't have).

We've been brainstorming, which is good, but we also need to limit our
sights a little so that we can get something published, because right now
the situation with NNTP is hideous and we need to at least get some sort
of standard out there for people to use now.  Most of these decisions
aren't final, and we can always revisit this and come up with some neat
solution later on provided we don't trap ourselves in a corner.

It sounds like providing extensions information as part of 281 or 283
doesn't work from a protocol standpoint because that response is not
protected, which means that there really isn't anything that we can say in
the existing documents (without changing NNTP in fundamental ways like
returning multiple responses) that helps or hurts for solving this problem
down the road.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From jeff at litech.org  Tue Nov  9 17:56:39 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Tue Nov  9 17:56:39 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041109115739.GD10440@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
Message-ID: <C3315A4A-32BB-11D9-BE7A-000393032FF0@litech.org>

On Nov 9, 2004, at 6:57 AM, Clive D.W. Feather wrote:

> Russ says:
>>
>> This is equivalent to having NNTPv2, NNTPv3, etc. extension labels 
>> that
>> can all be advertised together if the revisions are compatible 
>> somehow.  I
>> think this is the best approach to take.
>
> Right. Except that it would be "_NNTP_ 2 3".

Is everyone in agreement that we need the special underscores here?  It 
strikes me as a strange and unnecessary distinction, or perhaps I just 
haven't thought about it hard enough.

On a related note, I don't think we need to cram everything under 
discussion this week into a single line of LIST EXTENSIONS; if we want 
to indicate specification revision and command sets available, can't we 
just make them two separate lines?

(Oh, and would VERSION be a better name?)


-- 
Jeffrey M. Vinocur
jeff@litech.org

From MRC at CAC.Washington.EDU  Tue Nov  9 18:04:06 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 18:06:11 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87d5ympm1h.fsf@windlord.stanford.edu>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87k6sur1ej.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091640540.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87d5ympm1h.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091646040.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> We've already reached a list consensus that 480 responses to MODE READER
> will be explicitly banned by the standard.  You may not have gotten a copy
> of that, though

That's great, but it declares at least one existing deployed 
implementation (Diablo?) to be broken, right?

> (I think you're getting about 75% of the list mail right
> now but not all of it).

Probably.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Tue Nov  9 18:08:23 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 18:08:25 2004
Subject: [NNTP] NNTP working group status
Message-ID: <87ekj2o3qg.fsf@windlord.stanford.edu>

We've been doing a lot of brainstorming here for a while, and I've been
letting it run because I think we've been getting a lot of productive work
done, but I'm overdue for sending out some sort of status message saying
where we're at in terms of the overall goals of the working group.

I'm also overdue on a status update to Scott on where we are, so this
message will double as that.

First of all, where we are formally:

 * The base protocol document (version -23, I believe) passed IETF last
   call and has now passed IESG approval.  If we believed it was the right
   thing to do, it's actually at the stage where we would send it to the
   RFC editor for publication.  I don't think that's the right thing to
   do (see below), but I wanted everyone to know what the actual status of
   it is.

 * We have three other documents in progress.  The AUTHINFO and STARTTLS
   documents are, I believe, done changing, except for the outcome of the
   current discussions (more on that in a moment).  Except for the whole
   LIST EXTENSIONS issue that we're debating now, they would be ready for
   working group and then IETF Last Call.

 * I believe that the STREAMING document is essentially done, although
   since it hasn't baked as much as the other two, it's more likely to
   turn up some additional comments in a working group last call.

 * I think it is to our advantage to publish all four of these documents
   around the same time, since together they comprise pretty much all of
   the significant and useful extensions that are currently in use by
   deployed NNTP clients and servers.

 * We are significantly overdue on all of our outstanding milestones,
   many of which have already been moved multiple times.

Now, here's why we're not currently just pushing forward with publishing
the work we've already done, which was fully my intention as of a month
ago:

Due to a wide host of reasons, including massively extended working group
life, the tendency for NNTP to work in a vacuum anyway, and lack of broad
working group participation, we've been working in a bit of a vacuum for a
while.  I was pretty much resigned to this, and resigned to publishing
something that not everyone would like, on the grounds that it was better
to have *some* published standard than basically nothing (which is what we
have right now).  In the course of reviewing a detail of the AUTHINFO
draft, however, Mark Crispin made several excellent comments about the
NNTP draft that seemed worth considering.

The issues that we reopened discussion on in the mailing list were:

 * There are some completely broken implementations of LIST EXTENSIONS and
   some implementations that don't list extensions that they actually
   provide.  From a client perspective, it would be nice to have a clear
   indication of whether LIST EXTENSIONS can be trusted.  IMAP solved a
   similar problem by introducing a capability that stated the protocol
   version number, and it was proposed that NNTP do the same (adding an
   NNTPv2 extension, or something similar).

 * The NNTP specification still allowed for optional commands, where one
   wouldn't know if a command was available without trying to execute it.
   This is not the model that other Internet protocols with extension
   mechanisms use, so it was proposed that we go back and add clearly
   advertised extensions for all of the optional commands, indicating
   whether they were available.

 * There was no indication whether a client had to issue MODE READER at
   the beginning of a session, and it's normally not needed.  It was
   proposed that we add some extension indicating whether MODE READER is
   required, since normally it won't be.

In the process of that discussion, we've also talked about other things (a
more expressive alternative to LIST EXTENSIONS, whether we can eliminate
MODE READER entirely, whether we can provide a short list of extensions as
part of the opening banner in order to reduce round trips for clients).

Now, I view the role of a working group chair to be somewhat similar to
the role of a release manager, in that I have to try to balance the
competing priorities of making the standard as good as we can and getting
something out the door.  While we have a lot of energy and activity right
now, I mistrust (based on past experience) our ability to maintain that
energy level for very long, and therefore think we need to get documents
out the door before we lose energy again.  We have to strike a balance
between getting the documents just right and getting them published so
that people can actually start benefiting from them.

I do think that if we can get an extension mechanism that would make Mark
happy, that is a significant improvement to the document and is worth
delaying it for another three months (which is probably going to be the
minimum delay if we go back, change it in a fundamental way, and put it
forward again for Last Call, which I assume would be the procedure).
Mark's points about nailing down exactly what the server will let one do
in the LIST EXTENSIONS response are very well-taken, as is the point about
adding some sort of protocol token to avoid known-bad implementations.

Accordingly, I think it's right to ask Scott if he also feels like we
should reopen discussion on LIST EXTENSIONS (more formally than we have so
far) and make modifications to the standard in order to meet the above
three goals.  This would likely also result in some changes to the LIST
command to try to resolve the issues with the current draft where some of
the commands are optional and there's no advertised way of knowing whether
they will work.  It will also probably mean dropping LIST DISTRIBUTIONS
from the standard entirely and leaving it as a separate extension that we
don't document in this initial set of documents, and making LIST
NEWSGROUPS mandatory.

However, I think that if we're going to go back and revisit things we've
already decided, even for very good reasons, we need to sharply limit the
scope of that discussion so that we can complete it and move forward.
This means that we're not going to fix everything that could be fixed, and
it means that the next version of the standard is likely to require more
work, but it does mean that we'll get the standard out the door faster so
that people can start using it.

Accordingly, I would strongly prefer to reopen discussion *only* on LIST
EXTENSIONS and what should be contained in it and on the LIST command and
what LIST subcommands we choose to document (so that we can fix up the
issues related to optional commands there).  This means leaving MODE
READER alone for now, which includes the following admonition:

   Servers are encouraged to not require this command even though clients
   SHOULD send it when appropriate.  It is present to support some news
   architectures that switch between modes based on whether a given
   connection is a peer-to-peer connection with another server or a news
   reading client.

but not removing the command from the standard entirely.  I do think we
can document 433 as an alternate port for NNTP servers that can be used
only by peers, which is one way in which some servers have avoided MODE
READER, but I don't really want to have an extended discussion about that
either.

Now, in the interests of full disclosure, please note that I maintain a
free news server (INN) which is essentially the only software package that
requires MODE READER at present.  I didn't add it, don't particularly like
it, and configure my own servers to not require it, but there is certainly
the possibility of bias in my own feelings on the subject.  I'm
uncomfortable making a working group chair decision on this because of
that, and I want to make sure Scott knows about that and also say that I'm
quite happy for some third party to make the decision about whether to
reopen discussion of or remove MODE READER from the NNTP standard, and
I'll happily abide by the decision of that person.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Nov  9 18:09:33 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 18:09:34 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091646040.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 18:04:06 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87k6sur1ej.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091640540.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87d5ympm1h.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091646040.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87actqo3oi.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:
> On Tue, 9 Nov 2004, Russ Allbery wrote:

>> We've already reached a list consensus that 480 responses to MODE
>> READER will be explicitly banned by the standard.  You may not have
>> gotten a copy of that, though

> That's great, but it declares at least one existing deployed
> implementation (Diablo?) to be broken, right?

Yes.  I can take this forward with the Diablo maintainers and get their
reactions on it.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Tue Nov  9 18:15:59 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 18:18:04 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <41916CD5.2060805@oceana.com>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
Message-ID: <Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Ken Murchison wrote:
> If we simply change the client to use MODE READER before STARTTLS/AUTHINFO 
> (which was its intended, although undocumented, intent), we solve the problem 
> with a trivial fix and AFAIK don't introduce any new compatibilties with 
> deployed servers.

Actually it does introduce a problem.  We have at least one server 
(Diablo?) in which this will not work.

I used to do MODE READER first, and had to change my code due to user 
complaints that it didn't work.

More precisely, here is what my code does:

I do STARTTLS first.  [Sorry if you think that this is wrong.  The TLS 
architecture says that this is mandatory.]

Then, if the user configures authentication (by specifying /user=xxx in 
the NNTP specification), I do AUTHINFO.

Then, I do MODE READER, and if it responds 480 I do AUTHINFO.

I did not do this out of a desire to be gothic.  I did this because it was 
the only thing that worked with all the servers that real users 
encountered.  There are, indeed, users who could not use NNTP with Pine 
until they added the /user=xxx to force authentication before MODE READER.

It sounds to me as if you telling me that I should do MODE READER first, 
and tell my users who set /user=xxx to force AUTHINFO first "sorry, the 
IETF NNTPEXT working group says this is broken, tell your server admin to 
fix his server."

This ain't gonna happen.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Tue Nov  9 18:21:25 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 18:21:27 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 18:15:59 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <873bzio34q.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:

> I did not do this out of a desire to be gothic.  I did this because it
> was the only thing that worked with all the servers that real users
> encountered.  There are, indeed, users who could not use NNTP with Pine
> until they added the /user=xxx to force authentication before MODE
> READER.

> It sounds to me as if you telling me that I should do MODE READER first,
> and tell my users who set /user=xxx to force AUTHINFO first "sorry, the
> IETF NNTPEXT working group says this is broken, tell your server admin
> to fix his server."

> This ain't gonna happen.

I think that, for your software, what makes the most sense is to just
document that Pine doesn't work with any server that requires MODE READER
unless that server implements the new LIST EXTENSIONS protocol that we're
hammering out now (at which point you can use that to decide whether you
have to do MODE READER).

The point, however, that several of us have been trying to make is that
you could currently simply remove MODE READER from Pine entirely and it
would be functionally equivalent to what you're doing right now for any
server that requires either TLS or AUTHINFO.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From andrew at supernews.net  Tue Nov  9 18:23:19 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Tue Nov  9 18:23:38 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091646040.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 18:04:06 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87k6sur1ej.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091640540.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87d5ympm1h.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091646040.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <E1CRi93-000NsQ-Aw@trinity.supernews.net>

>>>>> "Mark" == Mark Crispin <MRC@CAC.Washington.EDU> writes:

 >> We've already reached a list consensus that 480 responses to MODE
 >> READER will be explicitly banned by the standard.  You may not
 >> have gotten a copy of that, though

 Mark> That's great, but it declares at least one existing deployed
 Mark> implementation (Diablo?) to be broken, right?

Yes.

The workaround for clients (recognising the 480 response to MODE
READER and applying the generic meaning of "authenticate and do that
again") should at least be mentioned as a backward compatibility note,
though, since all the other clients I've looked at so far seem to be
doing that.

-- 
Andrew, Supernews
http://www.supernews.com

From MRC at CAC.Washington.EDU  Tue Nov  9 18:23:11 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 18:25:17 2004
Subject: [NNTP] Re: NNTP working group status
In-Reply-To: <87ekj2o3qg.fsf@windlord.stanford.edu>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091818510.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> Now, in the interests of full disclosure, please note that I maintain a
> free news server (INN) which is essentially the only software package that
> requires MODE READER at present.  I didn't add it, don't particularly like
> it, and configure my own servers to not require it, but there is certainly
> the possibility of bias in my own feelings on the subject.  I'm
> uncomfortable making a working group chair decision on this because of
> that, and I want to make sure Scott knows about that and also say that I'm
> quite happy for some third party to make the decision about whether to
> reopen discussion of or remove MODE READER from the NNTP standard, and
> I'll happily abide by the decision of that person.

I admit that this is twisting the knife (I really do owe you that 
sixpack), but there *is* a way that you can make the decision for the 
entire working group without anyone criticizing your actions.

That would be if you were to declare that the NNTPv2 version of INN will 
never require MODE READER no matter how it is configured.  This would 
remove the need for MODE READER, and move it into the "compatibility with 
pre-NNTPv2 servers" document.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Tue Nov  9 18:27:13 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 18:29:18 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <873bzio34q.fsf@windlord.stanford.edu>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzio34q.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091823320.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> I think that, for your software, what makes the most sense is to just
> document that Pine doesn't work with any server that requires MODE READER
> unless that server implements the new LIST EXTENSIONS protocol that we're
> hammering out now (at which point you can use that to decide whether you
> have to do MODE READER).

Except that Pine does work for such servers, now, in *real* installations 
instead of all the theoretical installations we are talking about.

> The point, however, that several of us have been trying to make is that
> you could currently simply remove MODE READER from Pine entirely and it
> would be functionally equivalent to what you're doing right now for any
> server that requires either TLS or AUTHINFO.

No, because there are servers which require MODE READER, and servers which 
require AUTHINFO before MODE READER, and Pine as it exists today works 
with these servers.

I think that, as a client implementor, I'm a bit more aware of what 
clients encounter in the field.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Tue Nov  9 18:32:32 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 18:32:42 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <C3315A4A-32BB-11D9-BE7A-000393032FF0@litech.org>
References: <20041102121603.GF34826@finch-staff-1.thus.net>	<41879E3F.10905@oceana.com>	<20041102153716.GN34826@finch-staff-1.thus.net>	<87wtx0yefw.fsf@windlord.stanford.edu>	<20041109115739.GD10440@finch-staff-1.thus.net>
	<C3315A4A-32BB-11D9-BE7A-000393032FF0@litech.org>
Message-ID: <41917DC0.7000807@oceana.com>

Jeffrey M. Vinocur wrote:
> On Nov 9, 2004, at 6:57 AM, Clive D.W. Feather wrote:
> 
>> Russ says:
>>
>>>
>>> This is equivalent to having NNTPv2, NNTPv3, etc. extension labels that
>>> can all be advertised together if the revisions are compatible 
>>> somehow.  I
>>> think this is the best approach to take.
>>
>>
>> Right. Except that it would be "_NNTP_ 2 3".
> 
> 
> Is everyone in agreement that we need the special underscores here?  It 
> strikes me as a strange and unnecessary distinction, or perhaps I just 
> haven't thought about it hard enough.

I'm not particularly fond of the '_'.  I'm also not fond of listing the 
version number(s) as argument(s) to the token.  I prefer what Russ used 
above: individual tokens for each revision.  I don't really care what 
the tokens are; call them "RUSS", "JEFF", "KEN" as far as I'm concerned. 
  They are just arbitrary tokens whose meaning is specified in the 
relevant documents (just like "STREAMING").

That being said, the driving force should be what is easier for clients 
to parse/use.  Its doesn't *really* matter how [un]attractive the 
mechanism looks because the protcol really isn't for human consumption 
anyways (other than us hackers).


> On a related note, I don't think we need to cram everything under 
> discussion this week into a single line of LIST EXTENSIONS; if we want 
> to indicate specification revision and command sets available, can't we 
> just make them two separate lines?

Agreed.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From MRC at CAC.Washington.EDU  Tue Nov  9 18:30:40 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 18:32:46 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <E1CRi93-000NsQ-Aw@trinity.supernews.net>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87k6sur1ej.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091640540.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87d5ympm1h.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091646040.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CRi93-000NsQ-Aw@trinity.supernews.net>
Message-ID: <Pine.WNT.4.62.0411091827500.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Wed, 10 Nov 2004, Andrew - Supernews wrote:
> Mark> That's great, but it declares at least one existing deployed
> Mark> implementation (Diablo?) to be broken, right?
> Yes.

Well, then, we are all agreed that MODE READER is broken.

Therefore, it is pointless to argue that the charter prohibits action. 
The charter does not prohibit fixing things that are broken.

Otherwise, I can argue that requiring MODE READER before AUTHINFO breaks a 
widely deployed client (Pine), and therefore the WG is prohibited from 
doing that by the charter.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Tue Nov  9 18:37:25 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 18:37:26 2004
Subject: [NNTP] Re: NNTP working group status
In-Reply-To: <Pine.WNT.4.62.0411091818510.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 18:23:11 -0800 (Pacific Standard
	Time)")
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091818510.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87y8hamntm.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:

> I admit that this is twisting the knife (I really do owe you that
> sixpack), but there *is* a way that you can make the decision for the
> entire working group without anyone criticizing your actions.

> That would be if you were to declare that the NNTPv2 version of INN will
> never require MODE READER no matter how it is configured.  This would
> remove the need for MODE READER, and move it into the "compatibility
> with pre-NNTPv2 servers" document.

Well, I personally agree with the messages that Andrew has sent on the
topic -- this isn't just a question of a particular implementation choice,
but rather is fairly fundamental to the way that NNTP works.  Diablo
doesn't require MODE READER just because Diablo doesn't even allow the
feeder and reader components to run on the same *system* without a lot of
careful work.

That being said, and regardless of the merits of that argument, the amount
of time that I think it would require to implement something exceeds the
amount of time I have available to spend on INN in the forseeable future.
I wish that weren't the case, but right now INN is a hobby rather than a
job and I just don't have the resources to devote to trying to figure out
a good solution.

Certainly if someone came up with some killer patches that just made it
all work properly, that would be great and I'd happily accept them, but
I think it's unlikely for the reasons that Andrew stated.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Nov  9 18:40:38 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 18:40:40 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091823320.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 18:27:13 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzio34q.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091823320.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87u0rymno9.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:
> On Tue, 9 Nov 2004, Russ Allbery wrote:

>> I think that, for your software, what makes the most sense is to just
>> document that Pine doesn't work with any server that requires MODE
>> READER unless that server implements the new LIST EXTENSIONS protocol
>> that we're hammering out now (at which point you can use that to decide
>> whether you have to do MODE READER).

> Except that Pine does work for such servers, now, in *real*
> installations instead of all the theoretical installations we are
> talking about.

Pine in its current implemention as you described it does not work with
any INN installation that requires both AUTHINFO and MODE READER.

> No, because there are servers which require MODE READER, and servers
> which require AUTHINFO before MODE READER, and Pine as it exists today
> works with these servers.

No server which requires AUTHINFO before MODE READER actually requires
MODE READER at all; you don't need to send MODE READER to such a server.
(I can make this statement because I believe, with a fairly high degree of
certainty, that only INN actually requires MODE READER, and INN does not
require AUTHINFO before it.  I also know that Diablo, the only server
known to require AUTHINFO before MODE READER, doesn't require MODE READER
at all.)

> I think that, as a client implementor, I'm a bit more aware of what
> clients encounter in the field.

I do know how INN works, though.  :)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Tue Nov  9 18:46:37 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 18:46:49 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <4191810D.602@oceana.com>

Mark Crispin wrote:
> On Tue, 9 Nov 2004, Ken Murchison wrote:
> 
>> If we simply change the client to use MODE READER before 
>> STARTTLS/AUTHINFO (which was its intended, although undocumented, 
>> intent), we solve the problem with a trivial fix and AFAIK don't 
>> introduce any new compatibilties with deployed servers.
> 
> 
> Actually it does introduce a problem.  We have at least one server 
> (Diablo?) in which this will not work.
> 
> I used to do MODE READER first, and had to change my code due to user 
> complaints that it didn't work.

Argh!!!  I didn't realize that we have two contradicting servers, one 
which requires MODE READER before AUTHINFO (INN) and one that requires 
AUTHINFO before MODE READER (Diablo).

Unless this can be worked out with some combination of existing failure 
responses (which I'm sure Mark has tried), we may just have to declare 
some implementation as broken and move on.  Otherwise maybe we are stuck 
trying to remove INN's dependency on MODE READER.

Does anyone know if the Diablo design has the same dependency on MODE 
READER as INN?  Andrew may have covered this, but I don't recall what he 
said.

Hmm, thinking on my feet...

What about this heuristic for INN?  AFAIK, most sites have a list of 
peers that they are willing to accept an NNTP feed from.  When innd 
accepts a connection, it checks the remote hostname/ip against its table 
and if it finds a match, it stays in transit mode.  If it doesn't find a 
match, it automatically switches to reader mode (nnrpd).  I would 
imagine that a feeding host wouldn't also have reading clients 
originating from it.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Tue Nov  9 18:51:33 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 18:51:35 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <4191810D.602@oceana.com> (Ken Murchison's message of "Tue, 09
	Nov 2004 21:46:37 -0500")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<4191810D.602@oceana.com>
Message-ID: <87is8emn62.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Does anyone know if the Diablo design has the same dependency on MODE
> READER as INN?  Andrew may have covered this, but I don't recall what he
> said.

Andrew said that Diablo does not require MODE READER.  Nothing about
Diablo's architecture should require it, since they don't support the
configuration that INN supports at all.

> What about this heuristic for INN?  AFAIK, most sites have a list of
> peers that they are willing to accept an NNTP feed from.  When innd
> accepts a connection, it checks the remote hostname/ip against its table
> and if it finds a match, it stays in transit mode.  If it doesn't find a
> match, it automatically switches to reader mode (nnrpd).  I would
> imagine that a feeding host wouldn't also have reading clients
> originating from it.

INN already does this.  This is the reason why so few people encounter
this problem; you have to have both transit and reader access from the
same host.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Nov  9 19:00:02 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 19:00:06 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041109093725.GA10440@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Tue, 9 Nov 2004 09:37:25 +0000")
References: <Pine.LNX.4.62.0411041103190.24364@shiva1.cac.washington.edu>
	<E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
Message-ID: <87ekj2mmrx.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> There are three classes of commands: "transit", "reader", and "general".
> Of the core commands apart from MODE READER:
> * IHAVE is transit
> * HEAD, STAT, LIST ACTIVE, LIST EXTENSIONS are general
>   (that's what the present text implies; I think at least QUIT needs
>    to be added to that list)

QUIT is indeed also a general command.  (In practice, STAT probably is
too, but we didn't put it into that category for some reason that I don't
recall off-hand and which isn't important enough to revisit.)

> * everything else is reader.

Right.

> There are *four* possible types of connection. The connection type
> depends on the server, the connecting IP, the connection port, and
> possibly the phase of the moon :-)

> (1) Full-functional. MODE READER is a no-op. The client can use any
> command at any time (I'm ignoring authentication etc. for the moment).

> (2) Reader-only. MODE READER is a no-op. The client can *not* use any
> transit command (it gets 502), but can use all other commands at any
> time.

> (3) Transit-only. MODE READER is a no-op. The client can *not* use any
> reader command (it gets 502), but can use all other commands at any time.

> (4) Switching. Initially reader commands cannot be used; they get a 401
> response. Once MODE READER has been issued, transit commands cannot be
> used; they get a 502 response. MODE READER destroys all server state
> apart from the switch and therefore LIST EXTENSIONS output can change in
> this one case.

> Is this correct, in people's opinion?

This is correct according to what's specified in our standard.  It's worth
noting that, as 401 is an innovation of this document, the last point
isn't what happens right now in practice; instead, 502 is returned.

> If so, then why don't I revamp the description to express it like that?
> MODE READER can then be rewritten in these terms, which I expect will be
> far less confusing. LIST EXTENSIONS can indicate which of the four cases
> applies (I would make (1) the default, with the others being
> READER_ONLY, TRANSIT_ONLY, and MODE_READER). We'll need to decide which
> commands are "transit" and which are "reader", but that won't hold up
> the rewrite.

I'm not entirely sure that this will really be an improvement, but it may
be.  In any case, let's hold off until we decide what extensions we're
using to advertise the availability of IHAVE, POST, and reader commands,
since that will have a lot of influence on the wording of the MODE READER
description.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Nov  9 19:04:58 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 19:05:00 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041109094508.GB10440@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Tue, 9 Nov 2004 09:45:09 +0000")
References: <E1CPn7n-000AWk-D6@trinity.supernews.net>
	<Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
Message-ID: <87actqmmjp.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:
> I wrote:

>> (2) Reader-only. MODE READER is a no-op. The client can *not* use any
>> transit command (it gets 502), but can use all other commands at any time.
>> 
>> (3) Transit-only. MODE READER is a no-op. The client can *not* use any
>> reader command (it gets 502), but can use all other commands at any time.

> These two should be 503 ("not supported") rather than 502 ("wrong
> authority").

502 is existing practice.  503 has the following description:

   If the server recognizes the command but does not provide an optional
   feature (for example because it does not store the required
   information), or only handles a subset of legitimate cases (see the HDR
   command (Section 8.6.1) for an example), the response code 503 MUST be
   returned.  Note that where a command is optional (e.g.  LIST
   ACTIVE.TIMES) and is not provided by a server, this MAY be treated as
   an unimplemented command (response code 500 or 501 as appropriate) or
   as a working command where the information is not available (response
   code 503).

This doesn't sound like the right code to use to me, since we're not
talking about optional commands and we're not talking about a client
request for command functionality that isn't supported.  Actually, a 500
or 501 response makes more sense to me than 503, but that means we're
returning unimplemented status codes for mandatory commands.

Of course, once we have LIST EXTENSIONS labels for them, the commands
aren't clearly mandatory, and I'm not sure if this whole mandatory
vs. optional command distinction is really one to hang on to.  The
distinction is really between commands associated with some advertised
extension (which includes all the reader commands) and commands that
everyone has to implement, period, no matter what capabilities they
advertise (like QUIT and LIST EXTENSIONS).

>> (4) Switching. Initially reader commands cannot be used; they get a 401
>> response. Once MODE READER has been issued, transit commands cannot be
>> used; they get a 502 response.

> This one *is* 502, since reconnecting makes transit commands available.

Right.

> Ken writes:
>> The only case which isn't addressed is a reader-only server, which
>> really only effects IHAVE and I think returning a 503 solves this.

> Actually, I agree with Mark here. If we're going to have core
> capabilities described in LIST EXTENSIONS, let's not leave *anything* as
> "suck it and see".

I think we should go ahead and add an IHAVE capability, yes.  Among other
things, some servers offer IHAVE to readers.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Nov  9 19:09:34 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 19:09:36 2004
Subject: [NNTP] Snapshot
In-Reply-To: <418FBFC0.70209@oceana.com> (Ken Murchison's message of "Mon,
	08 Nov 2004 13:49:36 -0500")
References: <20041108171504.GD89554@finch-staff-1.thus.net>
	<418FBFC0.70209@oceana.com>
Message-ID: <87654emmc1.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> C, 215:  you show "LIST" as a valid command.  Unless I missed it, we no
> longer document "LIST" as a shortcut to "LIST ACTIVE *".  Are you using
> this as a way to capture the extensions to LIST?  In that case maybe it
> would make more sense to just have "LIST" and nothing else, since this
> will include "LIST ACTIVE", "LIST HEADERS", etc.

LIST was the original command.  In an ill-advised move in retrospect
(hindsight is 20-20 and all), when additional types of information were
added, they were bolded on to LIST and LIST started behaving differently
based on its second argument.  This was possible since the original LIST
command didn't take any arguments and just returned the whole newsgroup
list.  See RFC 977, which documents the original LIST command.

Since all servers support LIST with no arguments and since RFC 977 defines
it, we need to continue to allow for it, as odd as it is now that we have
other types of LIST commands.

The original LIST description in RFC 977 is a fascinating read,
particularly the discussion of newsgroup flags, and a pretty clear example
of why RFC 977 is hopelessly obsolete for writing real NNTP clients.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From MRC at CAC.Washington.EDU  Tue Nov  9 19:08:57 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 19:11:03 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87is8emn62.fsf@windlord.stanford.edu>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<4191810D.602@oceana.com> <87is8emn62.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091906520.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> INN already does this.  This is the reason why so few people encounter
> this problem; you have to have both transit and reader access from the
> same host.

This is why I think we should just abolish MODE READER and be done with 
it.  Retaining MODE READER defends a very small set of circumstances at 
the cost of inflicting amazing complexity on clients forever.

I also find it remarkable that people glibly talk about changing Pine, a 
widely-deployed client, in order to avoid changing what is probably a 
handful of peers.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Tue Nov  9 19:15:39 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 19:17:45 2004
Subject: [NNTP] Re: NNTP working group status
In-Reply-To: <87y8hamntm.fsf@windlord.stanford.edu>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091818510.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87y8hamntm.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091909320.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> Well, I personally agree with the messages that Andrew has sent on the
> topic -- this isn't just a question of a particular implementation choice,
> but rather is fairly fundamental to the way that NNTP works.

The only "fundamental to NNTP" is RFC 977.  Everything else is folklore.

If I wanted to be a real jerk, I could say that MODE READER violates RFC 
977 because it adds a client requirement that is not in RFC 977; and 
therefore the inclusion of MODE READER to the new NNTP base document 
violates the charter.

I'm a jerk, but not that much of a jerk.

On the other hand, the conclusion seems right.

> That being said, and regardless of the merits of that argument, the amount
> of time that I think it would require to implement something exceeds the
> amount of time I have available to spend on INN in the forseeable future.
> I wish that weren't the case, but right now INN is a hobby rather than a
> job and I just don't have the resources to devote to trying to figure out
> a good solution.

If "death to MODE READER in NNTPv2" is agreed, perhaps Ken and I might be 
talkable into offering some cycles to beat INN into submission for NNTPv2. 
I don't know if we can promise that the result will be pretty.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Tue Nov  9 19:24:19 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 19:26:23 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87u0rymno9.fsf@windlord.stanford.edu>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzio34q.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091823320.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0rymno9.fsf@windlord.stanford.edu>
Message-ID: <Pine.WNT.4.62.0411091916040.4140@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> Pine in its current implemention as you described it does not work with
> any INN installation that requires both AUTHINFO and MODE READER.

Please explain how.

If the user does not specify a /user=xxx specifier, it will not do 
AUTHINFO, and eventually it will hit a command that sends a 480 and Pine 
will AUTHINFO at that time.

The fact still remains that MODE READER itself is a broken, and that it is 
not permissible to require MODE READER before STARTTLS since TLS does a 
complete reversion to initial connection state.

That's right; STARTTLS has to undo MODE READER and restore the mode as 
unspecified.  If NNTP TLS does not say this, then it's in violation of 
TLS.

There's no escape.  MODE READER is broken.  The only way to keep that 
function is to split the service on separate ports; or, just give up on 
the function.  Either way, MODE READER can not be salvaged.

You can't say that MODE READER is required but not really required; that 
MODE READER is required before AUTHINFO but actually required after 
AUTHINFO if not really required.  But that's what you're trying to say if 
you attempt to retain the status quo.

TLS is just the straw that breaks the MODE READER camel's back.

If we talk about recommendations in a "compatibility with pre-NNTPv2 
servers" document, I'm all for talking about MODE READER in all its 
ugliness.  But let's free the NNTPv2 world from this abomination.  Let's 
save future clients from having to deal with it.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Tue Nov  9 19:45:26 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 19:45:28 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091916040.4140@Tomobiki-Cho.CAC.Washington.EDU>
	(Mark
	Crispin's message of "Tue, 9 Nov 2004 19:24:19 -0800 (Pacific Standard
	Time)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzio34q.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091823320.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0rymno9.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091916040.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <87zn1qicyx.fsf@windlord.stanford.edu>

Mark Crispin <MRC@CAC.Washington.EDU> writes:
> On Tue, 9 Nov 2004, Russ Allbery wrote:

>> Pine in its current implemention as you described it does not work with
>> any INN installation that requires both AUTHINFO and MODE READER.

> Please explain how.

> If the user does not specify a /user=xxx specifier, it will not do
> AUTHINFO, and eventually it will hit a command that sends a 480 and Pine
> will AUTHINFO at that time.

Ah, I didn't realize that you did also do reactive authentication.  (A
misconception of mine from a previous discussion.)  Yes, if you also do
reactive authentication, this implementation works in that mode.  If,
however, the user does specify /user=xxx to force authentication, that
authentication would fail in this situation since it would be done against
the transit server component.

If your client does have everything enabled and sends, as you described
earlier:

    STARTTLS
    AUTHINFO
    MODE READER

in that order to an INN server in a situation that actually requires MODE
READER, STARTTLS would fail, AUTHINFO would fail, and then MODE READER
would actually give you a reader connection.  I expect that this would
throw some sort of error to the user in Pine (and, in fact, I expect that
this configuration of Pine wouldn't proceed after STARTTLS failed).

That MODE READER that you're sending in the order above doesn't work
properly and *never* worked properly with INN unless neither of the
commands before it were actually sent.  (Or, to be more pedantically
correct, the two commands sent before it would not have worked properly,
but it amounts to the same thing.)

This is a great illustration of why we needed a real NNTP standard years
ago, since the implementation that you (quite reasonably) arrived at via
experimentation was, in fact, always broken and never would have worked
properly in the situation you were attempting to allow for.  (That
situation is just quite rare.)  It is indeed the fault of the NNTP
community and the INN developers for not documenting MODE READER clearly
enough so that both you and Diablo made different, apparently reasonable
mistakes in implementation (although Diablo's mistake is frankly less
reasonable than yours).

> The fact still remains that MODE READER itself is a broken, and that it
> is not permissible to require MODE READER before STARTTLS since TLS does
> a complete reversion to initial connection state.

Could you point me at where this is documented?  I'm aware that it
requires discarding all information about server capabilities and all
authentication credentials, but this is a stronger statement that I don't
recall seeing in the documents that I've read.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ned.freed at mrochek.com  Tue Nov  9 19:40:03 2004
From: ned.freed at mrochek.com (ned.freed@mrochek.com)
Date: Tue Nov  9 20:02:41 2004
Subject: [NNTP] NNTP working group status
In-Reply-To: "Your message dated Tue, 09 Nov 2004 18:08:23 -0800"
	<87ekj2o3qg.fsf@windlord.stanford.edu>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
Message-ID: <01LH1JMM19LM00005R@mauve.mrochek.com>

> First of all, where we are formally:

>  * The base protocol document (version -23, I believe) passed IETF last
>    call and has now passed IESG approval.  If we believed it was the right
>    thing to do, it's actually at the stage where we would send it to the
>    RFC editor for publication.  I don't think that's the right thing to
>    do (see below), but I wanted everyone to know what the actual status of
>    it is.

As you say, we've waited this long, if waiting a bit longer will result
in substantial improvement, I'm for it.

>  * We have three other documents in progress.  The AUTHINFO and STARTTLS
>    documents are, I believe, done changing, except for the outcome of the
>    current discussions (more on that in a moment).  Except for the whole
>    LIST EXTENSIONS issue that we're debating now, they would be ready for
>    working group and then IETF Last Call.

I agree with this assessment, although I have yet to review the STARTTLS
draft to see if it meets all of the newer things the security folks want
out of TLS in more recent protocols.

>  * I believe that the STREAMING document is essentially done, although
>    since it hasn't baked as much as the other two, it's more likely to
>    turn up some additional comments in a working group last call.

Sure.

>  * I think it is to our advantage to publish all four of these documents
>    around the same time, since together they comprise pretty much all of
>    the significant and useful extensions that are currently in use by
>    deployed NNTP clients and servers.

As a purely practical point, if all of them get to the RFC Editor within a
reasonably close period of time the RFC Editor is likely to lump them together
in terms of the RFC numbers they get. They're smart this way... Although if we
got a move on we might even be able to get RFC 3977 as the number for the
revised NNTP specification ;-)

>  * We are significantly overdue on all of our outstanding milestones,
>    many of which have already been moved multiple times.

Yes, well, I suppose its not PC to say, but we're far from the only group with
this problem!

> ...

> Now, I view the role of a working group chair to be somewhat similar to
> the role of a release manager, in that I have to try to balance the
> competing priorities of making the standard as good as we can and getting
> something out the door.  While we have a lot of energy and activity right
> now, I mistrust (based on past experience) our ability to maintain that
> energy level for very long, and therefore think we need to get documents
> out the door before we lose energy again.  We have to strike a balance
> between getting the documents just right and getting them published so
> that people can actually start benefiting from them.

I'm nominally the process weenie here, but FWIW I agree.

> I do think that if we can get an extension mechanism that would make Mark
> happy, that is a significant improvement to the document and is worth
> delaying it for another three months (which is probably going to be the
> minimum delay if we go back, change it in a fundamental way, and put it
> forward again for Last Call, which I assume would be the procedure).

That's correct, although it will probably end up being mostly a formality.

> Mark's points about nailing down exactly what the server will let one do
> in the LIST EXTENSIONS response are very well-taken, as is the point about
> adding some sort of protocol token to avoid known-bad implementations.

> Accordingly, I think it's right to ask Scott if he also feels like we
> should reopen discussion on LIST EXTENSIONS (more formally than we have so
> far) and make modifications to the standard in order to meet the above
> three goals.  This would likely also result in some changes to the LIST
> command to try to resolve the issues with the current draft where some of
> the commands are optional and there's no advertised way of knowing whether
> they will work.  It will also probably mean dropping LIST DISTRIBUTIONS
> from the standard entirely and leaving it as a separate extension that we
> don't document in this initial set of documents, and making LIST
> NEWSGROUPS mandatory.

FWIW, I have no problem with pursuing this course. I note, however, that
I have precious little skin in this particular game, and others that
do may feel differently. (And if so should chime in now...)

> However, I think that if we're going to go back and revisit things we've
> already decided, even for very good reasons, we need to sharply limit the
> scope of that discussion so that we can complete it and move forward.
> This means that we're not going to fix everything that could be fixed, and
> it means that the next version of the standard is likely to require more
> work, but it does mean that we'll get the standard out the door faster so
> that people can start using it.

Absolutely right.

> Accordingly, I would strongly prefer to reopen discussion *only* on LIST
> EXTENSIONS and what should be contained in it and on the LIST command and
> what LIST subcommands we choose to document (so that we can fix up the
> issues related to optional commands there).  This means leaving MODE
> READER alone for now, which includes the following admonition:

>    Servers are encouraged to not require this command even though clients
>    SHOULD send it when appropriate.  It is present to support some news
>    architectures that switch between modes based on whether a given
>    connection is a peer-to-peer connection with another server or a news
>    reading client.

> but not removing the command from the standard entirely.  I do think we
> can document 433 as an alternate port for NNTP servers that can be used
> only by peers, which is one way in which some servers have avoided MODE
> READER, but I don't really want to have an extended discussion about that
> either.

> Now, in the interests of full disclosure, please note that I maintain a
> free news server (INN) which is essentially the only software package that
> requires MODE READER at present.  I didn't add it, don't particularly like
> it, and configure my own servers to not require it, but there is certainly
> the possibility of bias in my own feelings on the subject.  I'm
> uncomfortable making a working group chair decision on this because of
> that, and I want to make sure Scott knows about that and also say that I'm
> quite happy for some third party to make the decision about whether to
> reopen discussion of or remove MODE READER from the NNTP standard, and
> I'll happily abide by the decision of that person.

All things being equal I'd prefer to only reopen MODE READER if there
was obviously potential benefit from doing so. I see the potential
benefit for LIST EXTENSIONS, but not for MODE READER.

				Ned
From ken at oceana.com  Tue Nov  9 20:48:55 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 20:49:07 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.WNT.4.62.0411091906520.4140@Tomobiki-Cho.CAC.Washington.EDU>
References: <87wtx0yefw.fsf@windlord.stanford.edu>	<E1CQ98A-0003K9-0S@trinity.supernews.net>	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>	<877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com>	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>	<20041109114233.GJ4937@finch-staff-1.thus.net>	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>	<878y9au8fe.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>	<873bzismuz.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>	<41916CD5.2060805@oceana.com>	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>	<4191810D.602@oceana.com>
	<87is8emn62.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091906520.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <41919DB7.3070509@oceana.com>

Mark Crispin wrote:
> On Tue, 9 Nov 2004, Russ Allbery wrote:
> 
>> INN already does this.  This is the reason why so few people encounter
>> this problem; you have to have both transit and reader access from the
>> same host.
> 
> 
> This is why I think we should just abolish MODE READER and be done with 
> it.  Retaining MODE READER defends a very small set of circumstances at 
> the cost of inflicting amazing complexity on clients forever.
> 
> I also find it remarkable that people glibly talk about changing Pine, a 
> widely-deployed client, in order to avoid changing what is probably a 
> handful of peers.

If you're referring to me, I wasn't intentionally being glib at all.  I 
was simply trying to find the least painful solution which would yield 
the greatest amount of functionality amongst current and future deployed 
software.

Given the fact that Diablo does something completely different from INN 
and the number of INN deployments which *require* MODE READER would seem 
to be a lot smaller than I first imagined, I'm now in favor of 
eliminating MODE READER entirely (or at least making it a NOOP which has 
no dependency on other commands).

For those edge cases where a server needs to support both transit and 
reader functions from the same client we can provide port 433 as the 
alternative.

Is this where we are, or have I completely missed the boat (again)?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From andrew at supernews.net  Tue Nov  9 20:50:32 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Tue Nov  9 20:50:54 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <4191810D.602@oceana.com> (Ken Murchison's message of "Tue, 09
	Nov 2004 21:46:37 -0500")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<4191810D.602@oceana.com>
Message-ID: <E1CRkRX-000Pfb-5v@trinity.supernews.net>

>>>>> "Ken" == Ken Murchison <ken@oceana.com> writes:

 Ken> Argh!!!  I didn't realize that we have two contradicting
 Ken> servers, one which requires MODE READER before AUTHINFO (INN)
 Ken> and one that requires AUTHINFO before MODE READER (Diablo).

Diablo does not require MODE READER at all. But it will give a 480
response to it if authentication is required and the client hasn't
authenticated yet.

 Ken> Unless this can be worked out with some combination of existing
 Ken> failure responses (which I'm sure Mark has tried),

This algorithm works for slrn, knews, gnus at minimum, against all known
servers:

0) connect to server and get initial banner
1) send MODE READER
   - if response is 480, then:
      - execute authentication procedure
      - send MODE READER again
   (the handling of 480 there can be generic code used for all commands)
2) if the configuration specifies that we should authenticate preemptively,
   and we've not authenticated yet, then execute the authentication
   procedure now
3) proceed with reader commands

What this would end up being replaced with, after adding in all the
new stuff from the draft, is something along these lines:

0) connect to server and get initial banner
1) send LIST EXTENSIONS
2) if the extensions output indicated that MODE READER is required,
   _or_ this is an old (non NNTPv2 or whatever we call it) server,
   then:
       send MODE READER
         - if response is 480 (should only happen on an old server),
           then:
            - execute authentication procedure
            - send MODE READER again
         mark old LIST EXTENSIONS data invalid
3) execute authentication procedure unless we already did it
4) proceed with reader commands

The authentication procedure would be something like:

0) do LIST EXTENSIONS if we don't have valid data yet
1) if TLS is desired, or if the available auth schemes don't
   include a desired one, then do STARTTLS and get the
   LIST EXTENSIONS data again
2) if no suitable auth scheme available, fail
3) do AUTHINFO with the desired scheme

This should mean that when a new client is talking to a new server,
assuming the client wants both tls and auth, the sequence is:

 LIST EXTENSIONS
 STARTTLS
 LIST EXTENSIONS
 AUTHINFO
 LIST EXTENSIONS (if needed)
 ...normal commands...

 Ken> Does anyone know if the Diablo design has the same dependency on
 Ken> MODE READER as INN?  Andrew may have covered this, but I don't
 Ken> recall what he said.

You could always read my messages again.

 Ken> Hmm, thinking on my feet...

 Ken> What about this heuristic for INN?  AFAIK, most sites have a
 Ken> list of peers that they are willing to accept an NNTP feed from.
 Ken> When innd accepts a connection, it checks the remote hostname/ip
 Ken> against its table and if it finds a match, it stays in transit
 Ken> mode.  If it doesn't find a match, it automatically switches to
 Ken> reader mode (nnrpd).

This is exactly what INN always did.

 Ken> I would imagine that a feeding host wouldn't also have reading
 Ken> clients originating from it.

Well, that's the problem; your imagination isn't covering the
real-world cases. The most common case, for example, is when you run a
client directly on the server itself (either because you're the admin,
or it's a single-user box, or the client is some automated script or a
web interface or similar); by default INN gives transfer access to
localhost. (On something like a multiuser shell box you'd disable
that.)

Then you might give reader access to a peer for diagnostic or
monitoring purposes. You might give reader access to a "peer" who is
actually a suck-feeding client because you want them feeding you posts
back properly rather than using rpost. Then there are some
caching/proxy setups where you want both reader and transfer access
from the cache to the real server. Then there are probably more
scenarios I've not thought of (Russ might have some).

You'll notice in all of the above that the chances of something like
Pine running into the issue are quite low (really only the single-user
host case). OTOH, clients like perl's Net::NNTP are more likely to need
correct MODE READER handling.

-- 
Andrew, Supernews
http://www.supernews.com

From ken at oceana.com  Tue Nov  9 20:53:59 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 20:54:13 2004
Subject: [NNTP] Re: NNTP working group status
In-Reply-To: <Pine.WNT.4.62.0411091909320.4140@Tomobiki-Cho.CAC.Washington.EDU>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411091818510.4140@Tomobiki-Cho.CAC.Washington.EDU>	<87y8hamntm.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091909320.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <41919EE7.10308@oceana.com>

Mark Crispin wrote:

> If "death to MODE READER in NNTPv2" is agreed, perhaps Ken and I might 
> be talkable into offering some cycles to beat INN into submission for 
> NNTPv2. I don't know if we can promise that the result will be pretty.

Since I spent a few days hacking AUTHINFO SASL support into INN, why not 
spend a few more killing MODE READER?  If that's what we decide and we 
have a viable plan for INN, count me in.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Tue Nov  9 20:58:00 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov  9 20:58:14 2004
Subject: [NNTP] NNTP working group status
In-Reply-To: <01LH1JMM19LM00005R@mauve.mrochek.com>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
	<01LH1JMM19LM00005R@mauve.mrochek.com>
Message-ID: <41919FD8.70702@oceana.com>

ned.freed@mrochek.com wrote:

> I agree with this assessment, although I have yet to review the STARTTLS
> draft to see if it meets all of the newer things the security folks want
> out of TLS in more recent protocols.

Ned, do you have a reference to these "newer things" so I can get a jump 
on them?


> As a purely practical point, if all of them get to the RFC Editor within a
> reasonably close period of time the RFC Editor is likely to lump them together
> in terms of the RFC numbers they get. They're smart this way... Although if we
> got a move on we might even be able to get RFC 3977 as the number for the
> revised NNTP specification ;-)

This has already been suggested and I believe Russ was looking into it.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Tue Nov  9 21:02:23 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Nov  9 21:02:25 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <E1CRkRX-000Pfb-5v@trinity.supernews.net> (andrew@supernews.net's
	message of "Wed, 10 Nov 2004 04:50:32 +0000")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<E1CQ98A-0003K9-0S@trinity.supernews.net>
	<Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<4191810D.602@oceana.com> <E1CRkRX-000Pfb-5v@trinity.supernews.net>
Message-ID: <874qjyi9eo.fsf@windlord.stanford.edu>

"Andrew - Supernews" <andrew@supernews.net> writes:

> Then you might give reader access to a peer for diagnostic or monitoring
> purposes. You might give reader access to a "peer" who is actually a
> suck-feeding client because you want them feeding you posts back
> properly rather than using rpost. Then there are some caching/proxy
> setups where you want both reader and transfer access from the cache to
> the real server. Then there are probably more scenarios I've not thought
> of (Russ might have some).

News administrators often open up transfer access to their own
workstations for testing purposes.  I have several hosts with both
transfer and reader access because some jobs that run on those hosts want
to inject Usenet messages without adding the standard trace headers for
various reasons.  Some providers offer both IHAVE and reader access to
clients, and one way to do this is to use the MODE READER support in INN.

Andrew's case of the single host is the most common, but there are a bunch
of other edge cases.  Usually they only involve fairly sophisticated
users.

> You'll notice in all of the above that the chances of something like
> Pine running into the issue are quite low (really only the single-user
> host case). OTOH, clients like perl's Net::NNTP are more likely to need
> correct MODE READER handling.

And indeed there have been various bugs in that area and work put into it
at various times.  It always sends MODE READER at the beginning of the
connection unless explicitly configured not to, but it ignores any failure
of the command (which is how it works around Diablo's issue).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ned.freed at mrochek.com  Tue Nov  9 21:28:39 2004
From: ned.freed at mrochek.com (ned.freed@mrochek.com)
Date: Tue Nov  9 21:36:38 2004
Subject: [NNTP] NNTP working group status
In-Reply-To: "Your message dated Tue, 09 Nov 2004 23:58:00 -0500"
	<41919FD8.70702@oceana.com>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
	<01LH1JMM19LM00005R@mauve.mrochek.com> <41919FD8.70702@oceana.com>
Message-ID: <01LH1N59WDXU00005R@mauve.mrochek.com>

> ned.freed@mrochek.com wrote:

> > I agree with this assessment, although I have yet to review the STARTTLS
> > draft to see if it meets all of the newer things the security folks want
> > out of TLS in more recent protocols.

> Ned, do you have a reference to these "newer things" so I can get a jump
> on them?

They came up in the MSGTRK group and ended up in RFC 3887. Basically what was
called for was a parameter on STARTTLS specifying the domain name of the server
the client believes it is talking to. In the words of RFC 3887:

   The parameter MUST be a fully qualified domain name (FQDN).  A client
   MUST specify the hostname it believes it is speaking with so that the
   server may respond with the proper TLS certificate.  This is useful
   for virtual servers that provide message tracking for multiple
   domains (i.e., virtual hosting).

This is really more of a matter for draft-ietf-nntpext-tls-nntp-03.txt,
but as there are some STARTTLS examples in draft-ietf-nntpext-tls-nntp-03.txt
there is some impact there as well.

> > As a purely practical point, if all of them get to the RFC Editor within a
> > reasonably close period of time the RFC Editor is likely to lump them together
> > in terms of the RFC numbers they get. They're smart this way... Although if we
> > got a move on we might even be able to get RFC 3977 as the number for the
> > revised NNTP specification ;-)

> This has already been suggested and I believe Russ was looking into it.

Cool, I must have missed it.

				Ned
From clive at demon.net  Tue Nov  9 21:33:47 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Nov  9 21:49:19 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <C3315A4A-32BB-11D9-BE7A-000393032FF0@litech.org>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<C3315A4A-32BB-11D9-BE7A-000393032FF0@litech.org>
Message-ID: <20041110053347.GA34462@finch-staff-1.thus.net>

Jeffrey M. Vinocur said:
>> Right. Except that it would be "_NNTP_ 2 3".
> Is everyone in agreement that we need the special underscores here?  It 
> strikes me as a strange and unnecessary distinction, or perhaps I just 
> haven't thought about it hard enough.

The reason for the underscores is precisely because it *isn't* an
extension. We agreed a namespace for extension labels (alphanumeric plus
dot and dash), and that namespace ought to be used only for that purpose.
However we do it, lines in the LIST EXTENSIONS output that are not related
to real live extensions ought not to use that namespace.

[Put another way, it's better to say 'an extension label is a keyword' than
'an extension label is a keyword other than "NNTPV" followed by one or more
digits'.]

It costs nothing in the text, it costs nothing for in software (which won't
care), and it eliminates a possible future problem (C and POSIX have had
*endless* aggro because of namespace troubles).

> On a related note, I don't think we need to cram everything under 
> discussion this week into a single line of LIST EXTENSIONS; if we want 
> to indicate specification revision and command sets available, can't we 
> just make them two separate lines?

I want to think on this some more.

> (Oh, and would VERSION be a better name?)

If it's a separate line, then "_VERSION" is fine by me.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From mrc at CAC.Washington.EDU  Tue Nov  9 22:43:20 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Tue Nov  9 22:43:24 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87zn1qicyx.fsf@windlord.stanford.edu>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzio34q.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091823320.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0rymno9.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091916040.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87zn1qicyx.fsf@windlord.stanford.edu>
Message-ID: <Pine.LNX.4.62.0411092223400.18064@shiva1.cac.washington.edu>

On Tue, 9 Nov 2004, Russ Allbery wrote:
> Ah, I didn't realize that you did also do reactive authentication.

Indeed I do, both in NNTP and SMTP.  AFAIK, I coined the term.

> Yes, if you also do
> reactive authentication, this implementation works in that mode.  If,
> however, the user does specify /user=xxx to force authentication, that
> authentication would fail in this situation since it would be done against
> the transit server component.

Yup, and when it happens I blame the server.

> If your client does have everything enabled and sends, as you described
> earlier:
>    STARTTLS
>    AUTHINFO
>    MODE READER
> in that order to an INN server in a situation that actually requires MODE
> READER, STARTTLS would fail, AUTHINFO would fail, and then MODE READER
> would actually give you a reader connection.  I expect that this would
> throw some sort of error to the user in Pine (and, in fact, I expect that
> this configuration of Pine wouldn't proceed after STARTTLS failed).

Right.  Servers should not advertise STARTTLS if they don't accept it.

> This is a great illustration of why we needed a real NNTP standard years
> ago, since the implementation that you (quite reasonably) arrived at via
> experimentation was, in fact, always broken and never would have worked
> properly in the situation you were attempting to allow for.

My client implementation is not broken.  It is forced to send AUTHINFO 
first by the Diablo server, and (in real life) inn servers don't force 
MODE READER first.

Nor is my client broken because inn can be configured to break my client. 
inn is not the arbitrar on what is broken.

Nor is inn broken.

Nor is Diablo broken.

The NNTP protocol is what is broken.  This is the part that many people 
seem not to understand.  Protocols that create non-interoperability are 
broken.  That is why we need to fix NNTP.

> It is indeed the fault of the NNTP
> community and the INN developers for not documenting MODE READER clearly
> enough so that both you and Diablo made different, apparently reasonable
> mistakes in implementation (although Diablo's mistake is frankly less
> reasonable than yours).

It was not a mistake, for the simple reason that MODE READER was not 
documented!

It is a painful lesson to learn that, by failing to document a facility, 
the original deployer forfeits the ability to call differing 
implementations broken.  Trust me; I learned *that* particular lesson the 
hard way.  Let's you and I down that sixpack and we'll commiserate with 
our respective war stories.  We can play that fun game of "who has the 
worse tale of woe"... :-)

>> The fact still remains that MODE READER itself is a broken, and that it
>> is not permissible to require MODE READER before STARTTLS since TLS does
>> a complete reversion to initial connection state.
> Could you point me at where this is documented?  I'm aware that it
> requires discarding all information about server capabilities and all
> authentication credentials, but this is a stronger statement that I don't
> recall seeing in the documents that I've read.

That's what I was told when similar issues came up in IMAP and SMTP. 
Everything had to be reset.

If you think about it, it only makes sense.  Otherwise, you don't really 
know that MODE READER actually happened, as opposed to having been seized 
by an MITM.  Although I don't think there is much (beyond harassment) that 
could happen by attacking this, a bad guy could certainly cause a great 
deal of confusion!

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From clive at demon.net  Wed Nov 10 00:24:12 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 10 00:24:24 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87ekj2mmrx.fsf@windlord.stanford.edu>
References: <Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<87ekj2mmrx.fsf@windlord.stanford.edu>
Message-ID: <20041110082412.GQ49664@finch-staff-1.thus.net>

Russ Allbery said:
>> There are three classes of commands: "transit", "reader", and "general".
>> Of the core commands apart from MODE READER:
>> * IHAVE is transit
>> * HEAD, STAT, LIST ACTIVE, LIST EXTENSIONS are general
>>   (that's what the present text implies; I think at least QUIT needs
>>    to be added to that list)
> QUIT is indeed also a general command.  (In practice, STAT probably is
> too, but we didn't put it into that category for some reason that I don't
> recall off-hand and which isn't important enough to revisit.)

Um, STAT *is* in that list. Did you mean something else?

>> * everything else is reader.
> Right.

>> There are *four* possible types of connection.
[...]
>> (4) Switching. Initially reader commands cannot be used; they get a 401
>> response. Once MODE READER has been issued, transit commands cannot be
>> used; they get a 502 response. MODE READER destroys all server state
>> apart from the switch and therefore LIST EXTENSIONS output can change in
>> this one case.
> 
>> Is this correct, in people's opinion?

But is it what we think happens in real life?

> This is correct according to what's specified in our standard.  It's worth
> noting that, as 401 is an innovation of this document, the last point
> isn't what happens right now in practice; instead, 502 is returned.

Yes, and we comment that as a historical point.

>> If so, then why don't I revamp the description to express it like that?
>> MODE READER can then be rewritten in these terms, which I expect will be
>> far less confusing. LIST EXTENSIONS can indicate which of the four cases
>> applies (I would make (1) the default, with the others being
>> READER_ONLY, TRANSIT_ONLY, and MODE_READER). We'll need to decide which
>> commands are "transit" and which are "reader", but that won't hold up
>> the rewrite.
> I'm not entirely sure that this will really be an improvement, but it may
> be.  In any case, let's hold off until we decide what extensions we're
> using to advertise the availability of IHAVE, POST, and reader commands,
> since that will have a lot of influence on the wording of the MODE READER
> description.

Um, no it won't.

My intention is to rewrite various parts of the document to talk about
"reader" and "transit" connections. Some commands will be tagged as reader
commands, which need not be supported on transit connections, and transit
commands, which need not be supported on reader connections. Then we talk
about using different ports, heuristics, both-transit-and-reader servers,
and, finally, MODE READER (if we don't kill it). I already have a fair
amount sketched out in my head.

How we advertise this becomes the least of our concerns. Really.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Wed Nov 10 00:32:40 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 10 00:32:45 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87actqmmjp.fsf@windlord.stanford.edu>
References: <418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
Message-ID: <20041110083240.GR49664@finch-staff-1.thus.net>

Russ Allbery said:
>>> (2) Reader-only. MODE READER is a no-op. The client can *not* use any
>>> transit command (it gets 502), but can use all other commands at any time.
>>> (3) Transit-only. MODE READER is a no-op. The client can *not* use any
>>> reader command (it gets 502), but can use all other commands at any time.
>> These two should be 503 ("not supported") rather than 502 ("wrong
>> authority").
> 
> 502 is existing practice.  503 has the following description:
> 
>    If the server recognizes the command but does not provide an optional
>    feature (for example because it does not store the required
>    information), or only handles a subset of legitimate cases (see the HDR
>    command (Section 8.6.1) for an example), the response code 503 MUST be
>    returned.

> This doesn't sound like the right code to use to me, since we're not
> talking about optional commands and we're not talking about a client
> request for command functionality that isn't supported.

I don't follow. On a reader-only server, IHAVE is a documented command that
will be rejected by the server because it only handles a subset of
legitimate cases - it doesn't handle the transit case. Or transit is an
optional feature that isn't provided.

> Actually, a 500
> or 501 response makes more sense to me than 503, but that means we're
> returning unimplemented status codes for mandatory commands.

Argh. 500/501 should mean "you've said something nonsensical".

502 doesn't make sense, because it implies that reconnecting can give you
the appropriate authority.

>    Note that where a command is optional (e.g.  LIST
>    ACTIVE.TIMES) and is not provided by a server, this MAY be treated as
>    an unimplemented command (response code 500 or 501 as appropriate) or
>    as a working command where the information is not available (response
>    code 503).

Note that this text has now been deleted, because we don't have any
optional commands any more, just extensions that aren't available.

> Of course, once we have LIST EXTENSIONS labels for them, the commands
> aren't clearly mandatory, and I'm not sure if this whole mandatory
> vs. optional command distinction is really one to hang on to.

Indeed. On the other hand, I don't like thinking of "reader-mode" or
"transit-mode" as an extension, because after all you need to have one or
the other.

> The
> distinction is really between commands associated with some advertised
> extension (which includes all the reader commands) and commands that
> everyone has to implement, period, no matter what capabilities they
> advertise (like QUIT and LIST EXTENSIONS).

I really really really don't like thinking of the reader commands as an
extension. Apart from anything else, it will make a real mess of the
document and confuse the readers.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Wed Nov 10 00:36:46 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 10 00:36:58 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87actq7uyf.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<418BA181.4060504@oceana.com>
	<Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu>
	<20041109113926.GI4937@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411090858220.15653@shiva1.cac.washington.edu>
	<87actq7uyf.fsf@windlord.stanford.edu>
Message-ID: <20041110083646.GT49664@finch-staff-1.thus.net>

Russ Allbery said:
> That being said, it has been documented in NNTP for quite some time that
> clients should respond to unknown codes based on the first digit,

On the other hand, it also says that a server MUST return only the codes
permitted in this specification or in an extension *that has been activated*
(that's why 401, 480, and 483 had to be in the core specification).

Yes, the wording you mention is still there, but I wonder if we should be
removing it, or at least changing it to make it clear it's only a hint on
how to deal with broken servers.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Wed Nov 10 00:41:21 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 10 00:41:30 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <4190DE1F.7060807@oceana.com>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<4190D87C.7050101@oceana.com>
	<20041109145118.GS4937@finch-staff-1.thus.net>
	<4190DE1F.7060807@oceana.com>
Message-ID: <20041110084121.GU49664@finch-staff-1.thus.net>

Ken Murchison said:
>>>>Um, just out of interest, doesn't this mean that the argument of a 283
>>>>response is insecure as well?
>>>Yes.  Its designed this way because the client may not yet know what 
>>>security layer(s) the server has selected.  Just like TLS, the security 
>>>layer can't take effect until negotiation has completed.
>>But that's nothing to do with the content of the 283, is it?
> It may.  The last server "challenge" is more than a "negotiation 
> complete" message.  Its typically used for the server to authenticate 
> itself to the client, but *could* be used to say "here's the cipher/MAC 
> that I've agreed to use for the rest of the session".

Okay.

> Actually, now that I think about it none of IMAP, POP or SMTP support 
> "success data" in the response.  Only newer SASL-enabled protocols 
> (LDAP, BEEP?) support this in their SASL profiles.  Nonetheless, the 
> SASL spec states:
> 
> "The security layer takes effect immediately following the last response 
> of the authentication exchange for data sent by the client and the 
> completion indication for data sent by the server."
> 
> I guess the term "completion indication" could be somewhat misleading, 
> but I *think* this is pretty clear that the "success data" response 
> should NOT be encrypted in any way.

I disagree. I read "data", in that quote, as being the low-level exchanges
of the protocol. It says that the client turns on the layer immediately
after sending the last response, and the server immediately after sending
the "completion indication", whatever that is.

Now in NNTP as currently written, the completion indication happens to be
the 281/283 response, so the extra data happens to be within it. But
there's no reason why a protocol can't have the server send data after the
completion response, precisely so that it *is* protected.

I can see that you sometimes need that data to complete setting up the
security layer, which is why I proposed the two-stage response.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Wed Nov 10 00:56:23 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 10 00:56:30 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87vfceo5vg.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<87vfceo5vg.fsf@windlord.stanford.edu>
Message-ID: <20041110085623.GV49664@finch-staff-1.thus.net>

Russ Allbery said:
>> They're arguments. The model I have is a single "core capabilities" line
>> in the LIST EXTENSIONS output.
> This I'm not sure I understand the reason for.
>
> Looking at this from the perspective of a client, I just want to know
> what's available to me to use.  I don't really care about the distinction
> between the core protocol and extensions; for all that I care, POST could
> be considered an extension.  I just want to know whether I can use it or
> not.

Agreed.

> It's really easy to take a list of extensions and parse it.  It's a bit
> more annoying when you have to special-case the _NNTP_ extension and parse
> its arguments and use that to decide what commands are available, when for
> OVER it's just a regular extension.

Is it? If I want to use LIST HEADERS, I have to look for HDR in the list,
whereas if I want to use LIST ACTIVE.TIMES, I have to look for LIST with
ACTIVE.TIMES as an argument.

> It seems like it would be a lot more
> straightforward to just say that there's a POST capability that we
> advertise if POST is accepted, there's an IHAVE capability that we
> advertise if IHAVE is accepted, and there's a READER capability that we
> advertise if reader commands are allowed.

One concern I have is that structuring the document (or, in particular,
"READER") as a set of extensions will make it incomprehensible to the
average reader. I believe there is a fundamental distinction between
capabilities and extensions. POST isn't an extension that some servers
offer; it's a core facility that is sometimes locked away from the
dangerous users.

To be selfish for a moment, I'm the Editor and this document is going out
with my name on every page. I am not willing to see it be a mess.

> The whole distinction of what's an extension and what isn't is
> fundamentally arbitrary anyway -- the only real distinction is that
> extensions are things that are optional to implement.  In that sense,
> IHAVE is actually an extension, since you can write a standalone NNTP
> server that doesn't take any external feeds without ever writing an IHAVE
> implementation.

Except that if you're writing a transit server, you *have* to provide IHAVE
to make things work at all.

However, I'll offer you a compromise.

I'll accept that we have capabilities and extensions, and each gets its own
line in the LIST EXTENSIONS output (which really really needs renaming, but
never mind). So there will be separate lines for IHAVE and for reading
capability, for example. [I think that POST looks better as a property of
READER, just like HDR MSGID, since it's a subset of reading; you can't have
POST on its own.]

In return, you accept my concerns about namespace issues and all these
core capabilities have names outside the extension-label namespace. So that
means leading underscores, asterisk, !, or anything else that people think
gives the message "core capability as opposed to extension".

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Wed Nov 10 01:16:27 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 10 01:30:11 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87vfceo5vg.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<87vfceo5vg.fsf@windlord.stanford.edu>
Message-ID: <20041110091627.GX49664@finch-staff-1.thus.net>

Russ Allbery said:
>> Can I make a proposal here? It might sound odd, but bear with me.
> 
>> *IF* an SASL security layer is negotiated, the server replies with two
>> responses:
>> * a 180 response meaning "security layer negotiated"
>> * the 281 or 283 response as normal
>> with the security layer coming into effect at the end of the 180, *not* the
>> 28x.

[Following comments from Ken, I think, I modified this to do them the other
way round: 281/283 as the last step of SASL negotiation, and 180 after the
security layer is in place.]

> I'm really leery of sending two responses in response to a command.  Other
> NNTP commands don't do that; we'd be adding a new style of response

I can see that it looks like two responses, but actually it isn't.

What I'm suggesting - as modified - is that after a change to the
underlying transport encoding, the server sends a new initial greeting.
I'm suggesting 180 as the code, but it could even be 200/201. This would
happen in two circumstances in our present situation:
- successful TLS negotiation
- successful SASL security layer negotiation
though I could envisage other places where it could happen (e.g. a COMPRESS
extension that starts compression on the transport layer).

The primary purpose of this is to provide a response on to which hang any
extension capability information (however done), but it also improves
consistency by starting each protected session in the same way as the
initial unprotected one.

> (since
> you're not sending the terminating .CRLF of a multiline response either).

It's not a multiline response, which is something different.

> After reading all this discussion, I'm becoming inclined to just give
> further attempts to reduce the RTTs for an initial client connection a
> pass for the time being,

That's what I suggested, though I note that Mark is violently against it.

> except possibly for putting something into the
> 200 response.

Sigh. See rant below.

> I know that in an ideal world STARTTLS or SASL should have
> had some way of communicating this sort of information after completion,
> but none of the other protocols do this (except IMAP, which has a
> capability for out of order responses that we don't have).

See above. And see also Mark's comments to the effect that this is how he
would have done it in hindsight.

> We've been brainstorming, which is good, but we also need to limit our
> sights a little so that we can get something published, because right now
> the situation with NNTP is hideous and we need to at least get some sort
> of standard out there for people to use now.

Agreed.

> Most of these decisions
> aren't final, and we can always revisit this and come up with some neat
> solution later on provided we don't trap ourselves in a corner.

However, having STARTTLS and SASL leave the protocol in client-next state
is, I think, going to be one of those corner traps.

> It sounds like providing extensions information as part of 281 or 283
> doesn't work from a protocol standpoint because that response is not
> protected, which means that there really isn't anything that we can say in
> the existing documents (without changing NNTP in fundamental ways like
> returning multiple responses) that helps or hurts for solving this problem
> down the road.

Well, I'd argue the "fundamental".

====

Rant follows.

I wish you people would make your bloody minds up as to how you want to do
things.

When I argue for putting core capabilities in one line in the extensions
output, I get told that we need to make things easy and consistent for
clients to parse, so we need to put each capability on a separate line.

Yet at the same time you're proposing putting capability information in two
totally separate places (LIST EXTENSIONS output and the free-text part of
response codes) in two totally different formats that will need to be parsed
in two totally different ways and will carry two different levels of
completeness. When I suggest a way to make the two arrangments consistent
with each other, I get told it's too complex. You've got a strange idea of
what is and isn't simple.

[End rant. I now have to go off and try to get the Department of Trade and
Industry to do something more about spam. I may be some time.]

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From fantec at proxad.net  Wed Nov 10 02:49:23 2004
From: fantec at proxad.net (Francois Petillon)
Date: Wed Nov 10 02:49:26 2004
Subject: [NNTP] Re: NNTP working group status
In-Reply-To: <87y8hamntm.fsf@windlord.stanford.edu>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411091818510.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87y8hamntm.fsf@windlord.stanford.edu>
Message-ID: <4191F233.6020009@proxad.net>

Russ Allbery wrote:
> Well, I personally agree with the messages that Andrew has sent on the
> topic -- this isn't just a question of a particular implementation choice,
> but rather is fairly fundamental to the way that NNTP works.  Diablo
> doesn't require MODE READER just because Diablo doesn't even allow the
> feeder and reader components to run on the same *system* without a lot of
> careful work.

I do not know if Diablo may be a good example here. Reader side receive 
a feed from specified IPs. From these IPs, you can not access to mode 
reader and you are only allowed to feed the server : there is no way to 
switch from one mode to the other (and in fact, I have never see any 
complaints about it).

   Fran?ois
From rvtol at isolution.nl  Wed Nov 10 04:17:27 2004
From: rvtol at isolution.nl (Ruud H.G. van Tol)
Date: Wed Nov 10 04:17:53 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <87wtx0yefw.fsf@windlord.stanford.edu><418BA181.4060504@oceana.com><Pine.LNX.4.62.0411050757220.23854@shiva1.cac.washington.edu><E1CQ98A-0003K9-0S@trinity.supernews.net><Pine.WNT.4.62.0411051503390.4712@Tomobiki-Cho.CAC.Washington.EDU><877jozvqhn.fsf@windlord.stanford.edu>
	<418C10FB.4060306@oceana.com><Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU><E1CQG3Y-0009qN-Kl@trinity.supernews.net><Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU><20041109114233.GJ4937@finch-staff-1.thus.net><Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU><878y9au8fe.fsf@windlord.stanford.edu><Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU><873bzismuz.fsf@windlord.stanford.edu><Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU><41916CD5.2060805@oceana.com><Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU><4191810D.602@oceana.com>
	<E1CRkRX-000Pfb-5v@trinity.supernews.net>
Message-ID: <007501c4c71f$4bc51fa0$0a01a8c0@isolution.nl>

Toen wij Andrew - Supernews kietelden, kwam er dit uit:

>  Ken> I would imagine that a feeding host wouldn't also have reading
>  Ken> clients originating from it.
> 
> [...] Then there are probably more
> scenarios I've not thought of (Russ might have some).


Maybe: an ssh-tunnel to that host.

-- 
Grtz, Ruud
From andrew at supernews.net  Wed Nov 10 04:29:28 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Wed Nov 10 04:29:44 2004
Subject: [NNTP] Re: NNTP working group status
In-Reply-To: <4191F233.6020009@proxad.net> (Francois Petillon's message of
	"Wed, 10 Nov 2004 11:49:23 +0100")
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091818510.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87y8hamntm.fsf@windlord.stanford.edu> <4191F233.6020009@proxad.net>
Message-ID: <E1CRrba-0004X5-I2@trinity.supernews.net>

>>>>> "Francois" == Francois Petillon <fantec@proxad.net> writes:

 Francois> I do not know if Diablo may be a good example here. Reader
 Francois> side receive a feed from specified IPs. From these IPs, you
 Francois> can not access to mode reader and you are only allowed to
 Francois> feed the server : there is no way to switch from one mode
 Francois> to the other (and in fact, I have never see any complaints
 Francois> about it).

You're not reading the code closely enough, I think.

While it's even less typical in a Diablo environment for a single IP to
have both reader and (header-only) feeder access, it is possible. The
only effect of MODE READER is to disable the feeder commands (and thus
is never actually necessary).

I can't think of any case other than running both the spool and the
reader on the same host where this would ever be an issue, though.

-- 
Andrew, Supernews
http://www.supernews.com

From sah at 428cobrajet.net  Wed Nov 10 04:35:53 2004
From: sah at 428cobrajet.net (Scott Hollenbeck)
Date: Wed Nov 10 04:35:47 2004
Subject: [NNTP] RE: NNTP working group status
In-Reply-To: <87ekj2o3qg.fsf@windlord.stanford.edu>
Message-ID: <7468147AEE316B41B3B55152959CE2181291EF@dul1wnexm05.vcorp.ad.vrsn.com>

>  * The base protocol document (version -23, I believe) passed 
> IETF last
>    call and has now passed IESG approval.  If we believed it 
> was the right
>    thing to do, it's actually at the stage where we would 
> send it to the
>    RFC editor for publication.  I don't think that's the 
> right thing to
>    do (see below), but I wanted everyone to know what the 
> actual status of
>    it is.

It hasn't yet been approved by the IESG.  It's going to be held until
progress is made on the tls and authinfo documents.

[snip]

> Accordingly, I think it's right to ask Scott if he also feels like we
> should reopen discussion on LIST EXTENSIONS (more formally 
> than we have so
> far) and make modifications to the standard in order to meet the above
> three goals.  This would likely also result in some changes 
> to the LIST
> command to try to resolve the issues with the current draft 
> where some of
> the commands are optional and there's no advertised way of 
> knowing whether
> they will work.  It will also probably mean dropping LIST 
> DISTRIBUTIONS
> from the standard entirely and leaving it as a separate 
> extension that we
> don't document in this initial set of documents, and making LIST
> NEWSGROUPS mandatory.

Well, if I'm going to hold the document I don't mind if it's revised again.
I agree, though, with the need to limit the scope.  It will probably be
necessary to run the document through the IESG again if substantive changes
are made.

-Scott-

From fantec at proxad.net  Wed Nov 10 06:21:07 2004
From: fantec at proxad.net (Francois Petillon)
Date: Wed Nov 10 06:21:09 2004
Subject: [NNTP] Re: NNTP working group status
In-Reply-To: <E1CRrba-0004X5-I2@trinity.supernews.net>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>	<Pine.WNT.4.62.0411091818510.4140@Tomobiki-Cho.CAC.Washington.EDU>	<87y8hamntm.fsf@windlord.stanford.edu>
	<4191F233.6020009@proxad.net>
	<E1CRrba-0004X5-I2@trinity.supernews.net>
Message-ID: <419223D3.4070908@proxad.net>

Andrew - Supernews wrote:
> You're not reading the code closely enough, I think.

Grmpf, you are right :-)
(in fact, I have not read this part of the code _yet_ ;-)

> While it's even less typical in a Diablo environment for a single IP to
> have both reader and (header-only) feeder access, it is possible. The
> only effect of MODE READER is to disable the feeder commands (and thus
> is never actually necessary).

When you are allowed to feed & read, you need to issue a MODE READER to 
access reader commands (thus, just like Inn). Feed-only connections are 
managed by a dedicated process (unlike reader-allowed connections). At 
first sight, the differences between both modes are related to a flag 
and allowing a feeder/reader to use reader commands should not be 
difficult (_at_first_sight_).

   Fran?ois
From andrew at supernews.net  Wed Nov 10 06:40:48 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Wed Nov 10 06:41:04 2004
Subject: [NNTP] Re: NNTP working group status
In-Reply-To: <419223D3.4070908@proxad.net> (Francois Petillon's message of
	"Wed, 10 Nov 2004 15:21:07 +0100")
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091818510.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87y8hamntm.fsf@windlord.stanford.edu> <4191F233.6020009@proxad.net>
	<E1CRrba-0004X5-I2@trinity.supernews.net>
	<419223D3.4070908@proxad.net>
Message-ID: <E1CRteg-00060F-Mr@trinity.supernews.net>

>>>>> "Francois" == Francois Petillon <fantec@proxad.net> writes:

 >> While it's even less typical in a Diablo environment for a single
 >> IP to have both reader and (header-only) feeder access, it is
 >> possible. The only effect of MODE READER is to disable the feeder
 >> commands (and thus is never actually necessary).

 Francois> When you are allowed to feed & read, you need to issue a
 Francois> MODE READER to access reader commands (thus, just like
 Francois> Inn). Feed-only connections are managed by a dedicated
 Francois> process (unlike reader-allowed connections). At first
 Francois> sight, the differences between both modes are related to a
 Francois> flag and allowing a feeder/reader to use reader commands
 Francois> should not be difficult (_at_first_sight_).

The main point with diablo, though, is that unlike INN, it never
actually makes sense to give feeder access on the reader port to
anything except the appropriate spool backend server.

-- 
Andrew, Supernews
http://www.supernews.com

From ken at oceana.com  Wed Nov 10 06:59:56 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Nov 10 06:59:07 2004
Subject: [NNTP] NNTP working group status
In-Reply-To: <01LH1N59WDXU00005R@mauve.mrochek.com>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
	<01LH1JMM19LM00005R@mauve.mrochek.com> <41919FD8.70702@oceana.com>
	<01LH1N59WDXU00005R@mauve.mrochek.com>
Message-ID: <41922CEC.3000806@oceana.com>

ned.freed@mrochek.com wrote:

>> ned.freed@mrochek.com wrote:
> 
> 
>> > I agree with this assessment, although I have yet to review the 
>> STARTTLS
>> > draft to see if it meets all of the newer things the security folks 
>> want
>> > out of TLS in more recent protocols.
> 
> 
>> Ned, do you have a reference to these "newer things" so I can get a jump
>> on them?
> 
> 
> They came up in the MSGTRK group and ended up in RFC 3887. Basically 
> what was
> called for was a parameter on STARTTLS specifying the domain name of the 
> server
> the client believes it is talking to. In the words of RFC 3887:
> 
>   The parameter MUST be a fully qualified domain name (FQDN).  A client
>   MUST specify the hostname it believes it is speaking with so that the
>   server may respond with the proper TLS certificate.  This is useful
>   for virtual servers that provide message tracking for multiple
>   domains (i.e., virtual hosting).

Doh!  My co-author originally had such a parameter for NNTP STARTTLS, 
but I told him that it was unnecessary given the "Server Name 
Indication" TLS extension (RFC 3546, section 3.1).  We mention 
implementation of this as a SHOULD in the draft.  Is this not 
sufficient?  It seems to make more sense to me to handle TLS specific 
stuff within TLS itself, but I could be wrong.  I'm curious why MSGTRK 
was forced to do this at the application level rather than within TLS.

One problem with the wording in RFC 3887 as far as NNTP is concerned is 
that there already is existing deployment of STARTTLS without such an 
argument.  At the very least, if we add a domain argument to STARTTLS it 
would probably have to be optional for backwards compatibility.

I realize you're probably busy at IETF, but would you be able to query a 
couple of security guys on this and let me know if we are going to have 
to change the doc?  I'd prefer to do it before we send it off to IESG 
and ultimiately have it bounced.

Thanks,
Ken
-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ned.freed at mrochek.com  Wed Nov 10 07:21:32 2004
From: ned.freed at mrochek.com (ned.freed@mrochek.com)
Date: Wed Nov 10 07:25:20 2004
Subject: [NNTP] NNTP working group status
In-Reply-To: "Your message dated Wed, 10 Nov 2004 09:59:56 -0500"
	<41922CEC.3000806@oceana.com>
References: <87ekj2o3qg.fsf@windlord.stanford.edu>
	<01LH1JMM19LM00005R@mauve.mrochek.com> <41919FD8.70702@oceana.com>
	<01LH1N59WDXU00005R@mauve.mrochek.com> <41922CEC.3000806@oceana.com>
Message-ID: <01LH27P6942200005R@mauve.mrochek.com>

> > They came up in the MSGTRK group and ended up in RFC 3887. Basically what was
> > called for was a parameter on STARTTLS specifying the domain name of the server
> > the client believes it is talking to. In the words of RFC 3887:

> >   The parameter MUST be a fully qualified domain name (FQDN).  A client
> >   MUST specify the hostname it believes it is speaking with so that the
> >   server may respond with the proper TLS certificate.  This is useful
> >   for virtual servers that provide message tracking for multiple
> >   domains (i.e., virtual hosting).

> Doh!  My co-author originally had such a parameter for NNTP STARTTLS,
> but I told him that it was unnecessary given the "Server Name
> Indication" TLS extension (RFC 3546, section 3.1).  We mention
> implementation of this as a SHOULD in the draft.  Is this not
> sufficient?

I honestly don't know.

> It seems to make more sense to me to handle TLS specific
> stuff within TLS itself, but I could be wrong.  I'm curious why MSGTRK
> was forced to do this at the application level rather than within TLS.

I agree. I don't recall a justification being given for MSGTRK doing it
this way.

> One problem with the wording in RFC 3887 as far as NNTP is concerned is
> that there already is existing deployment of STARTTLS without such an
> argument.  At the very least, if we add a domain argument to STARTTLS it
> would probably have to be optional for backwards compatibility.

> I realize you're probably busy at IETF, but would you be able to query a
> couple of security guys on this and let me know if we are going to have
> to change the doc?  I'd prefer to do it before we send it off to IESG
> and ultimiately have it bounced.

I agree, however, since I'm not in DC someone else will have to do it.
Any volunteers? If memory serves the pushback on this in MSGTRK came
from Eric Rescorla so you might try him.

				Ned
From clive at demon.net  Wed Nov 10 08:58:34 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 10 08:58:38 2004
Subject: [NNTP] Snapshot 2 and straw poll
Message-ID: <20041110165834.GA93284@finch-staff-1.thus.net>

I've produced a second snapshot, available at
<http://www.davros.org/nntp-texts/draft25.pre-2.txt>
<http://www.davros.org/nntp-texts/draft25.pre-2.html>

For this one I moved generic LIST back to being a core command rather than
an extension, but it doesn't have to accept any keywords other than the
three mandatory ones. The functionality is identical to 25.pre-1, but the
presentation is different.

In my personal opinion, this is a better approach than pre-1.

I can easily use either version in the next draft, and both will require
some trivial tuning when we resolve the other issues on the table. In
the meantime, I'd like opinions and so am calling a straw poll:

[A]  I prefer this approach in 25.pre-2.
[B]  I prefer the LIST extension approach in 25.pre-1.
[C]  I prefer the optional command approach of draft 24.
[D]  They're all bad, here's my suggestion:

Please read the versions and comment.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From rra at stanford.edu  Wed Nov 10 10:00:30 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Nov 10 10:00:32 2004
Subject: [NNTP] Re: NNTP working group status
In-Reply-To: <7468147AEE316B41B3B55152959CE2181291EF@dul1wnexm05.vcorp.ad.vrsn.com>
	(Scott Hollenbeck's message of "Wed, 10 Nov 2004 07:35:53 -0500")
References: <7468147AEE316B41B3B55152959CE2181291EF@dul1wnexm05.vcorp.ad.vrsn.com>
Message-ID: <87wtwtwpmp.fsf@windlord.stanford.edu>

Scott Hollenbeck <sah@428cobrajet.net> writes:

>>  * The base protocol document (version -23, I believe) passed IETF last
>>  call and has now passed IESG approval.  If we believed it was the
>>  right thing to do, it's actually at the stage where we would send it
>>  to the RFC editor for publication.  I don't think that's the right
>>  thing to do (see below), but I wanted everyone to know what the actual
>>  status of it is.

> It hasn't yet been approved by the IESG.  It's going to be held until
> progress is made on the tls and authinfo documents.

Whoops, sorry, I misunderstood or used the wrong terminology for something
there.

> Well, if I'm going to hold the document I don't mind if it's revised
> again.  I agree, though, with the need to limit the scope.  It will
> probably be necessary to run the document through the IESG again if
> substantive changes are made.

*nod*.  That was what I was expecting.  Thanks!

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Wed Nov 10 10:21:09 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Nov 10 10:21:11 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <Pine.LNX.4.62.0411092223400.18064@shiva1.cac.washington.edu>
	(Mark Crispin's message of "Tue, 9 Nov 2004 22:43:20 -0800 (PST)")
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<877jozvqhn.fsf@windlord.stanford.edu> <418C10FB.4060306@oceana.com>
	<Pine.WNT.4.62.0411051546000.4712@Tomobiki-Cho.CAC.Washington.EDU>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzio34q.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091823320.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0rymno9.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091916040.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87zn1qicyx.fsf@windlord.stanford.edu>
	<Pine.LNX.4.62.0411092223400.18064@shiva1.cac.washington.edu>
Message-ID: <87k6stwooa.fsf@windlord.stanford.edu>

Mark Crispin <mrc@CAC.Washington.EDU> writes:
> On Tue, 9 Nov 2004, Russ Allbery wrote:

>> It is indeed the fault of the NNTP community and the INN developers for
>> not documenting MODE READER clearly enough so that both you and Diablo
>> made different, apparently reasonable mistakes in implementation
>> (although Diablo's mistake is frankly less reasonable than yours).

> It was not a mistake, for the simple reason that MODE READER was not
> documented!

> It is a painful lesson to learn that, by failing to document a facility,
> the original deployer forfeits the ability to call differing
> implementations broken.  Trust me; I learned *that* particular lesson
> the hard way.  Let's you and I down that sixpack and we'll commiserate
> with our respective war stories.  We can play that fun game of "who has
> the worse tale of woe"... :-)

I think we're splitting hairs.  Let me try phrasing it a different way:

In the case where the initial connection involves one or more of STARTTLS
or AUTHINFO as well as MODE READER, Pine and INN do not interoperate.
Since there was no standard for this command, it's not possible to declare
one or the other of them broken in any formal sense, but given that INN
introduced the MODE READER command and continues to be the only server
that actually requires it, there is no point in implementing MODE READER
in a client unless you're trying to interoperate with INN.  INN's behavior
in this respect has not changed over the lifetime of the server.

> That's what I was told when similar issues came up in IMAP and SMTP.
> Everything had to be reset.

> If you think about it, it only makes sense.  Otherwise, you don't really
> know that MODE READER actually happened, as opposed to having been
> seized by an MITM.  Although I don't think there is much (beyond
> harassment) that could happen by attacking this, a bad guy could
> certainly cause a great deal of confusion!

I can see how an attacker could use a MITM attack to launch a denial of
service attack, but an attacker capable of a MITM attack being able to
deny service isn't particularly uncommon.  IMAP and SMTP don't have this
bizarre mode switch that NNTP does (thankfully!), so I'm not sure that I
see how their experience implies that this is not allowed.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Wed Nov 10 10:25:12 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Nov 10 10:25:13 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041110082412.GQ49664@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Wed, 10 Nov 2004 08:24:12 +0000")
References: <Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<87ekj2mmrx.fsf@windlord.stanford.edu>
	<20041110082412.GQ49664@finch-staff-1.thus.net>
Message-ID: <87fz3hwohj.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:
> Russ Allbery said:

>> QUIT is indeed also a general command.  (In practice, STAT probably is
>> too, but we didn't put it into that category for some reason that I
>> don't recall off-hand and which isn't important enough to revisit.)

> Um, STAT *is* in that list. Did you mean something else?

No, sorry, I just missed it and confused myself.

>>> (4) Switching. Initially reader commands cannot be used; they get a
>>> 401 response. Once MODE READER has been issued, transit commands
>>> cannot be used; they get a 502 response. MODE READER destroys all
>>> server state apart from the switch and therefore LIST EXTENSIONS
>>> output can change in this one case.

>>> Is this correct, in people's opinion?

> But is it what we think happens in real life?

Mostly.  INN's nnrpd can be configured to support IHAVE, however.
(Although I'm not particularly happy with that IHAVE support; it's
intended for the use of broken Microsoft clients that insist on feeding
with IHAVE, so it still adds trace headers.  It may be better to ignore it
as something outside of the standard protocol.  It's not enabled by
default.)

> My intention is to rewrite various parts of the document to talk about
> "reader" and "transit" connections. Some commands will be tagged as
> reader commands, which need not be supported on transit connections, and
> transit commands, which need not be supported on reader
> connections. Then we talk about using different ports, heuristics,
> both-transit-and-reader servers, and, finally, MODE READER (if we don't
> kill it). I already have a fair amount sketched out in my head.

> How we advertise this becomes the least of our concerns. Really.

Oh, okay, I see what you're getting at.

As long as readers can still advertise transit commands and vice versa, I
think that sounds great.  And that would let us introduce 433 in a more
comprehensive fashion and maybe push people a little towards using that in
situations where MODE READER is currently used.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Wed Nov 10 10:32:54 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Nov 10 10:32:55 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041110083240.GR49664@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Wed, 10 Nov 2004 08:32:40 +0000")
References: <418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
Message-ID: <87bre5wo4p.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:
> Russ Allbery said:

>> 502 is existing practice.  503 has the following description:
>> 
>>    If the server recognizes the command but does not provide an optional
>>    feature (for example because it does not store the required
>>    information), or only handles a subset of legitimate cases (see the HDR
>>    command (Section 8.6.1) for an example), the response code 503 MUST be
>>    returned.

>> This doesn't sound like the right code to use to me, since we're not
>> talking about optional commands and we're not talking about a client
>> request for command functionality that isn't supported.

> I don't follow. On a reader-only server, IHAVE is a documented command
> that will be rejected by the server because it only handles a subset of
> legitimate cases - it doesn't handle the transit case. Or transit is an
> optional feature that isn't provided.

I think what's making me leery is that, prior to our document, 503 meant
"something went wrong in processing your command that was probably
transient."  This is a somewhat more permanent error than what people have
been using 503 to mean in the past.

503 is, for example, the return code that INN returns to AUTHINFO if it
can't fork an external authenticator, the return code that it returns to
LIST if the active file can't be found, or the return code that it returns
to DATE if localtime() fails.

> 502 doesn't make sense, because it implies that reconnecting can give
> you the appropriate authority.

I'm not sure why it would imply that.  502 means "permission denied"; it
is certainly entirely reasonable for that state to be permanent for that
client.  For example, a read-only reader server is going to return 502 to
POST from now until the end of time, and reconnecting all you want won't
help.

> Indeed. On the other hand, I don't like thinking of "reader-mode" or
> "transit-mode" as an extension, because after all you need to have one
> or the other.

This is true.

> I really really really don't like thinking of the reader commands as an
> extension. Apart from anything else, it will make a real mess of the
> document and confuse the readers.

Well, one problem is that we're talking about extensions, whereas the
closest example to what we're actually trying to do here (IMAP) talks
about capabilities.  You're right that it doesn't make any sense to talk
about reader commands as an extension, but it does make sense to talk
about them as a capability.

I wonder if it might not be worth changing LIST EXTENSIONS to LIST
CAPABILITIES.  It's certainly clearer given what we're now using it for,
it may mean that we could skip the whole business of introducing a version
number entirely because no one has implemented LIST CAPABILITIES before
and thereby defer that discussion until the next time we have to change
the core protocol, and it would let us distinguish between an extension
(something added on to NNTP that isn't defined in the core protocol
document) from a capability (something advertised with LIST CAPABILITIES
that may not necessarily be present, which includes extensions and some
other things).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Wed Nov 10 10:40:19 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Nov 10 10:40:21 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87fz3hwohj.fsf@windlord.stanford.edu> (Russ Allbery's message
	of "Wed, 10 Nov 2004 10:25:12 -0800")
References: <Pine.LNX.4.62.0411041143400.24364@shiva1.cac.washington.edu>
	<418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<87ekj2mmrx.fsf@windlord.stanford.edu>
	<20041110082412.GQ49664@finch-staff-1.thus.net>
	<87fz3hwohj.fsf@windlord.stanford.edu>
Message-ID: <877jotwnsc.fsf@windlord.stanford.edu>

Russ Allbery <rra@stanford.edu> writes:

> As long as readers can still advertise transit commands and vice versa,
> I think that sounds great.  And that would let us introduce 433 in a
> more comprehensive fashion and maybe push people a little towards using
> that in situations where MODE READER is currently used.

One thing that I do want to add here, though, is that we don't want to go
down the path of making too many changes, and this is borderline -- it
sort of deals with the LIST EXTENSIONS stuff we're working on, but also
goes a little bit beyond it.

In other words, we have to be careful not to reopen too much, although if
we can make this part clearer, maybe that would be worthwhile.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From mrc at CAC.Washington.EDU  Wed Nov 10 10:48:16 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov 10 10:48:19 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87k6stwooa.fsf@windlord.stanford.edu>
References: <87wtx0yefw.fsf@windlord.stanford.edu>
	<E1CQG3Y-0009qN-Kl@trinity.supernews.net>
	<Pine.WNT.4.62.0411081435090.5396@Tomobiki-Cho.CAC.Washington.EDU>
	<20041109114233.GJ4937@finch-staff-1.thus.net>
	<Pine.WNT.4.62.0411091032210.5488@Tomobiki-Cho.CAC.Washington.EDU>
	<878y9au8fe.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091328290.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzismuz.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091433590.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<41916CD5.2060805@oceana.com>
	<Pine.WNT.4.62.0411091804220.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<873bzio34q.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091823320.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87u0rymno9.fsf@windlord.stanford.edu>
	<Pine.WNT.4.62.0411091916040.4140@Tomobiki-Cho.CAC.Washington.EDU>
	<87zn1qicyx.fsf@windlord.stanford.edu>
	<Pine.LNX.4.62.0411092223400.18064@shiva1.cac.washington.edu>
	<87k6stwooa.fsf@windlord.stanford.edu>
Message-ID: <Pine.LNX.4.62.0411101024180.6373@shiva1.cac.washington.edu>

On Wed, 10 Nov 2004, Russ Allbery wrote:
> In the case where the initial connection involves one or more of STARTTLS
> or AUTHINFO as well as MODE READER, Pine and INN do not interoperate.

And since neither Pine nor inn are broken, MODE READER itself is broken.

MODE READER has multiple, non-interoperable, definitions.  It doesn't 
matter that only one of those definitions actually is used by a server 
that needs it.  There is a server that enforces the other definition's 
order (even though it doesn't otherwise care), inn does not generally 
enforce its definition's order, and Pine complied with what worked in all 
the cases its encountered.

Of course, there will be objection from those who have to change to comply 
with the future world.  It can't be avoided.  The only course is to work 
out what will be the best choice in the long term.

> Since there was no standard for this command, it's not possible to declare
> one or the other of them broken in any formal sense, but given that INN
> introduced the MODE READER command and continues to be the only server
> that actually requires it, there is no point in implementing MODE READER
> in a client unless you're trying to interoperate with INN.

That may be true; but it conflicts with what I've been told for over 10 
years, which was to the effect that MODE READER was mandatory with all 
servers and that only a cretin would write a client that uses RFC 977 
instead of what the netnews weenies said was right.  Then I found that 
every server which had AUTHINFO did something different.

Given this particular history, I am not terribly sympathetic to one 
server's rarely-used configuration.

> I can see how an attacker could use a MITM attack to launch a denial of
> service attack, but an attacker capable of a MITM attack being able to
> deny service isn't particularly uncommon.

This particular type of attack has unbelievable costs in lost user and 
support staff time.  When you and I get a chance to split that sixpack, 
ask me about Norton Anti-Virus and SMTP.  We'll need a second sixpack.

The lesson learned is that you can't believe or trust anything that 
happens before TLS takes hold.

> IMAP and SMTP don't have this
> bizarre mode switch that NNTP does (thankfully!), so I'm not sure that I
> see how their experience implies that this is not allowed.

Well, it's arguable that SMTP has mode switches, and there are ongoing 
efforts (which I have been opposing) to put in such things into IMAP. 
It's an attractive nuisance.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Wed Nov 10 11:19:53 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Nov 10 11:18:57 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87bre5wo4p.fsf@windlord.stanford.edu>
References: <418A879A.2010602@oceana.com>	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>	<418A8AD9.5070801@oceana.com>	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>	<418A922D.6070804@oceana.com>	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>	<87d5ys3ob0.fsf@windlord.stanford.edu>	<20041109093725.GA10440@finch-staff-1.thus.net>	<20041109094508.GB10440@finch-staff-1.thus.net>	<87actqmmjp.fsf@windlord.stanford.edu>	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu>
Message-ID: <419269D9.40502@oceana.com>

Russ Allbery wrote:
> 
> I wonder if it might not be worth changing LIST EXTENSIONS to LIST
> CAPABILITIES.  It's certainly clearer given what we're now using it for,
> it may mean that we could skip the whole business of introducing a version
> number entirely because no one has implemented LIST CAPABILITIES before
> and thereby defer that discussion until the next time we have to change
> the core protocol, and it would let us distinguish between an extension
> (something added on to NNTP that isn't defined in the core protocol
> document) from a capability (something advertised with LIST CAPABILITIES
> that may not necessarily be present, which includes extensions and some
> other things).

I'd have no problem with this.  In fact I think Mark's originally 
suggestion was that we should create a new command.  In an effort to 
remain compatible we decided to just add an "NNTPv2" capability to LIST 
EXTENSIONS.  Given our inability to agree on the syntax of this new 
"NNTPv2" capability, let's try the LIST CAPABILITIES (or just 
CAPABILITY) track.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Wed Nov 10 11:21:06 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Nov 10 11:21:07 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <419269D9.40502@oceana.com> (Ken Murchison's message of "Wed,
	10 Nov 2004 14:19:53 -0500")
References: <418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu> <419269D9.40502@oceana.com>
Message-ID: <87r7n1v7bx.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> I'd have no problem with this.  In fact I think Mark's originally
> suggestion was that we should create a new command.  In an effort to
> remain compatible we decided to just add an "NNTPv2" capability to LIST
> EXTENSIONS.  Given our inability to agree on the syntax of this new
> "NNTPv2" capability, let's try the LIST CAPABILITIES (or just
> CAPABILITY) track.

CAPABILITY is a good point.  The LIST command is already a mess, and while
taking this out of it won't completely clean it up, at least we're not
adding to the problem.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From mrc at CAC.Washington.EDU  Wed Nov 10 11:23:22 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov 10 11:23:25 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87r7n1v7bx.fsf@windlord.stanford.edu>
References: <418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu>
	<419269D9.40502@oceana.com> <87r7n1v7bx.fsf@windlord.stanford.edu>
Message-ID: <Pine.LNX.4.62.0411101123020.6373@shiva1.cac.washington.edu>

On Wed, 10 Nov 2004, Russ Allbery wrote:
> CAPABILITY is a good point.  The LIST command is already a mess, and while
> taking this out of it won't completely clean it up, at least we're not
> adding to the problem.

I'm fine with that idea.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From ken at oceana.com  Wed Nov 10 11:38:12 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Nov 10 11:37:13 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87r7n1v7bx.fsf@windlord.stanford.edu>
References: <418A879A.2010602@oceana.com>	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>	<418A8AD9.5070801@oceana.com>	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>	<418A922D.6070804@oceana.com>	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>	<87d5ys3ob0.fsf@windlord.stanford.edu>	<20041109093725.GA10440@finch-staff-1.thus.net>	<20041109094508.GB10440@finch-staff-1.thus.net>	<87actqmmjp.fsf@windlord.stanford.edu>	<20041110083240.GR49664@finch-staff-1.thus.net>	<87bre5wo4p.fsf@windlord.stanford.edu>
	<419269D9.40502@oceana.com> <87r7n1v7bx.fsf@windlord.stanford.edu>
Message-ID: <41926E24.2010202@oceana.com>

Russ Allbery wrote:

> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>I'd have no problem with this.  In fact I think Mark's originally
>>suggestion was that we should create a new command.  In an effort to
>>remain compatible we decided to just add an "NNTPv2" capability to LIST
>>EXTENSIONS.  Given our inability to agree on the syntax of this new
>>"NNTPv2" capability, let's try the LIST CAPABILITIES (or just
>>CAPABILITY) track.
> 
> 
> CAPABILITY is a good point.  The LIST command is already a mess, and while
> taking this out of it won't completely clean it up, at least we're not
> adding to the problem.

As an aside, what, if any, legacy extensions should a server list via 
LIST EXTENSIONS for backwards compatibility with existing clients?  Or 
is the number of clients which use LIST EXTENSIONS too small to worry 
about, especially if the current LIST EXTENSIONS output can't be trusted?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Wed Nov 10 11:44:36 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Nov 10 11:43:38 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87r7n1v7bx.fsf@windlord.stanford.edu>
References: <418A879A.2010602@oceana.com>	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>	<418A8AD9.5070801@oceana.com>	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>	<418A922D.6070804@oceana.com>	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>	<87d5ys3ob0.fsf@windlord.stanford.edu>	<20041109093725.GA10440@finch-staff-1.thus.net>	<20041109094508.GB10440@finch-staff-1.thus.net>	<87actqmmjp.fsf@windlord.stanford.edu>	<20041110083240.GR49664@finch-staff-1.thus.net>	<87bre5wo4p.fsf@windlord.stanford.edu>
	<419269D9.40502@oceana.com> <87r7n1v7bx.fsf@windlord.stanford.edu>
Message-ID: <41926FA4.9060000@oceana.com>

Russ Allbery wrote:

> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>I'd have no problem with this.  In fact I think Mark's originally
>>suggestion was that we should create a new command.  In an effort to
>>remain compatible we decided to just add an "NNTPv2" capability to LIST
>>EXTENSIONS.  Given our inability to agree on the syntax of this new
>>"NNTPv2" capability, let's try the LIST CAPABILITIES (or just
>>CAPABILITY) track.
> 
> 
> CAPABILITY is a good point.  The LIST command is already a mess, and while
> taking this out of it won't completely clean it up, at least we're not
> adding to the problem.

Keeping with the cleanup theme, is there any reason why LIST HEADERS 
can't be changed to something different (e.g. HDR.LIST or HEADERS), 
especially since we're defining it for the first time in our doc (at my 
suggestion)?  Similarly LIST OVERVIEW.FMT could be changed to just 
OVERVIEW.FMT, but for backwards compatibility this may or may not be wise.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Wed Nov 10 12:33:42 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov 10 12:33:45 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <41926E24.2010202@oceana.com>
References: <418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu>
	<419269D9.40502@oceana.com> <87r7n1v7bx.fsf@windlord.stanford.edu>
	<41926E24.2010202@oceana.com>
Message-ID: <Pine.LNX.4.62.0411101231510.14161@shiva1.cac.washington.edu>

On Wed, 10 Nov 2004, Ken Murchison wrote:
> As an aside, what, if any, legacy extensions should a server list via LIST 
> EXTENSIONS for backwards compatibility with existing clients?  Or is the 
> number of clients which use LIST EXTENSIONS too small to worry about, 
> especially if the current LIST EXTENSIONS output can't be trusted?

Pine uses LIST EXTENSIONS, but since the output is untrustworthy there are 
all sorts of bizarre heuristics to decide whether or rely upon it for a 
particular extension or not.

I would be happy to abandon LIST EXTENSIONS support entirely in Pine in 
favor of support for a trustworthy CAPABILITY command.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From rra at stanford.edu  Wed Nov 10 12:38:55 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Nov 10 12:38:56 2004
Subject: [NNTP] Snapshot 2 and straw poll
In-Reply-To: <20041110165834.GA93284@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Wed, 10 Nov 2004 16:58:34 +0000")
References: <20041110165834.GA93284@finch-staff-1.thus.net>
Message-ID: <87y8h9tp5s.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> I've produced a second snapshot, available at
> <http://www.davros.org/nntp-texts/draft25.pre-2.txt>
> <http://www.davros.org/nntp-texts/draft25.pre-2.html>

> For this one I moved generic LIST back to being a core command rather than
> an extension, but it doesn't have to accept any keywords other than the
> three mandatory ones. The functionality is identical to 25.pre-1, but the
> presentation is different.

> In my personal opinion, this is a better approach than pre-1.

> I can easily use either version in the next draft, and both will require
> some trivial tuning when we resolve the other issues on the table. In
> the meantime, I'd like opinions and so am calling a straw poll:

> [A]  I prefer this approach in 25.pre-2.
> [B]  I prefer the LIST extension approach in 25.pre-1.
> [C]  I prefer the optional command approach of draft 24.
> [D]  They're all bad, here's my suggestion:

I like the pre-2 version the best, I think.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Wed Nov 10 12:45:45 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Nov 10 12:45:47 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041110085623.GV49664@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Wed, 10 Nov 2004 08:56:23 +0000")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<87vfceo5vg.fsf@windlord.stanford.edu>
	<20041110085623.GV49664@finch-staff-1.thus.net>
Message-ID: <87u0rxtoue.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:
> Russ Allbery said:

>> It's really easy to take a list of extensions and parse it.  It's a bit
>> more annoying when you have to special-case the _NNTP_ extension and
>> parse its arguments and use that to decide what commands are available,
>> when for OVER it's just a regular extension.

> Is it? If I want to use LIST HEADERS, I have to look for HDR in the
> list, whereas if I want to use LIST ACTIVE.TIMES, I have to look for
> LIST with ACTIVE.TIMES as an argument.

Right, but there's a mapping between the extension labels and the
commands.  If I see HDR, I know I can use these commands.  If I see OVER,
I know I can use those commands.  I don't have to look at the parameters
to figure out what commands I can use except for AUTHINFO or LIST
subcommands, which are something of a special case.

> One concern I have is that structuring the document (or, in particular,
> "READER") as a set of extensions will make it incomprehensible to the
> average reader. I believe there is a fundamental distinction between
> capabilities and extensions. POST isn't an extension that some servers
> offer; it's a core facility that is sometimes locked away from the
> dangerous users.

> To be selfish for a moment, I'm the Editor and this document is going
> out with my name on every page. I am not willing to see it be a mess.

I think you were on the right track with a STATUS command, getting away
from the whole extension concept which has turned out to be too limiting
for what we're trying to represent.  How do you feel about going to
CAPABILITY (just because that matches closer what other protocols use) and
calling these capabilities instead of extensions?  Does that make it feel
like less of a mess?

> I'll accept that we have capabilities and extensions, and each gets its
> own line in the LIST EXTENSIONS output (which really really needs
> renaming, but never mind). So there will be separate lines for IHAVE and
> for reading capability, for example. [I think that POST looks better as
> a property of READER, just like HDR MSGID, since it's a subset of
> reading; you can't have POST on its own.]

You can -- you can configure INN that way -- but it's an uncommon
configuration for only very special cases that likely wouldn't be hurt by
just returning 502 to the reader commands.  So that's not necessarily an
argument against what you're proposing, although the reader commands and
the POST command really are independent.

But, for example, an automated system that generates reports by posting
them to a local newsgroup doesn't need read access and is sometimes
configured to only have posting access.

> In return, you accept my concerns about namespace issues and all these
> core capabilities have names outside the extension-label namespace. So
> that means leading underscores, asterisk, !, or anything else that
> people think gives the message "core capability as opposed to
> extension".

The reason why I'm not as worried about the namespace issues is that we
have something that C and POSIX don't have, namely IANA and the ability to
require that people register their use of the namespace.  In essence,
anything that *doesn't* begin with an X is reserved for standard published
by the IETF, which significantly reduces the worries about conflicting
with extensions.  Does that change how you feel at all?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From andrew at supernews.net  Wed Nov 10 13:08:22 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Wed Nov 10 13:08:45 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <87r7n1v7bx.fsf@windlord.stanford.edu> (Russ Allbery's message
	of "Wed, 10 Nov 2004 11:21:06 -0800")
References: <418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu> <419269D9.40502@oceana.com>
	<87r7n1v7bx.fsf@windlord.stanford.edu>
Message-ID: <E1CRzhn-000BDH-St@trinity.supernews.net>

>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

 Russ> CAPABILITY is a good point.  The LIST command is already a
 Russ> mess, and while taking this out of it won't completely clean it
 Russ> up, at least we're not adding to the problem.

I actually disagree on this point - I prefer to add a new LIST
subcommand than an entire new basic command, both because it's easier
in the code (probably is in the client, too, given that LIST output is
reasonably consistent) and because it's logical.

-- 
Andrew, Supernews
http://www.supernews.com

From MRC at CAC.Washington.EDU  Wed Nov 10 13:26:42 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov 10 13:27:05 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <E1CRzhn-000BDH-St@trinity.supernews.net>
References: <418A879A.2010602@oceana.com>
	<Pine.LNX.4.62.0411041149210.24364@shiva1.cac.washington.edu>
	<418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu>
	<419269D9.40502@oceana.com> <87r7n1v7bx.fsf@windlord.stanford.edu>
	<E1CRzhn-000BDH-St@trinity.supernews.net>
Message-ID: <Pine.WNT.4.62.0411101325110.2844@Shimo-Tomobiki.Panda.COM>

On Wed, 10 Nov 2004, Andrew - Supernews wrote:
> I actually disagree on this point - I prefer to add a new LIST
> subcommand than an entire new basic command, both because it's easier
> in the code (probably is in the client, too, given that LIST output is
> reasonably consistent) and because it's logical.

At least in my client code, it makes absolutely no difference.  Each 
flavor of LIST response has to be parsed differently.

It seems bizarre to me that LIST has all these seemingly orthogonal 
functions, but that's just syntactic sugar.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From clive at demon.net  Wed Nov 10 14:32:21 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 10 14:37:54 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <87u0rxtoue.fsf@windlord.stanford.edu>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<87vfceo5vg.fsf@windlord.stanford.edu>
	<20041110085623.GV49664@finch-staff-1.thus.net>
	<87u0rxtoue.fsf@windlord.stanford.edu>
Message-ID: <20041110223221.GA37609@finch-staff-1.thus.net>

Russ Allbery said:
> I think you were on the right track with a STATUS command, getting away
> from the whole extension concept which has turned out to be too limiting
> for what we're trying to represent.  How do you feel about going to
> CAPABILITY (just because that matches closer what other protocols use) and
> calling these capabilities instead of extensions?  Does that make it feel
> like less of a mess?

Extracting this one point - I'm very happy with a new command, and
CAPABILITY is just as good as STATUS as far as I'm concerned.

I'm not clear, though: is the intent to use this only for core
capabilities, or is it going to list extensions as well, thus replacing
LIST EXTENSIONS?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From rra at stanford.edu  Wed Nov 10 15:37:33 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Nov 10 15:37:35 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041110223221.GA37609@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Wed, 10 Nov 2004 22:32:21 +0000")
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<87vfceo5vg.fsf@windlord.stanford.edu>
	<20041110085623.GV49664@finch-staff-1.thus.net>
	<87u0rxtoue.fsf@windlord.stanford.edu>
	<20041110223221.GA37609@finch-staff-1.thus.net>
Message-ID: <87hdnxs2bm.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> I'm not clear, though: is the intent to use this only for core
> capabilities, or is it going to list extensions as well, thus replacing
> LIST EXTENSIONS?

The intention would be to replace LIST EXTENSIONS completely.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From jeff at litech.org  Wed Nov 10 17:18:27 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Wed Nov 10 17:18:56 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <20041110053347.GA34462@finch-staff-1.thus.net>
References: <20041102121603.GF34826@finch-staff-1.thus.net>
	<41879E3F.10905@oceana.com>
	<20041102153716.GN34826@finch-staff-1.thus.net>
	<87wtx0yefw.fsf@windlord.stanford.edu>
	<20041109115739.GD10440@finch-staff-1.thus.net>
	<C3315A4A-32BB-11D9-BE7A-000393032FF0@litech.org>
	<20041110053347.GA34462@finch-staff-1.thus.net>
Message-ID: <9759CB40-337F-11D9-BDFD-000393032FF0@litech.org>

On Nov 10, 2004, at 12:33 AM, Clive D.W. Feather wrote:

> Jeffrey M. Vinocur said:
>>> Right. Except that it would be "_NNTP_ 2 3".
>> Is everyone in agreement that we need the special underscores here?  
>> It
>> strikes me as a strange and unnecessary distinction, or perhaps I just
>> haven't thought about it hard enough.
>
> The reason for the underscores is precisely because it *isn't* an
> extension. We agreed a namespace for extension labels (alphanumeric 
> plus
> dot and dash), and that namespace ought to be used only for that 
> purpose.
> However we do it, lines in the LIST EXTENSIONS output that are not 
> related
> to real live extensions ought not to use that namespace.

I thought about this a lot this morning, walking in during the cold 
dark hours before dawn, and came to the conclusion that I disagree with 
the above, that I have a lot of trouble drawing a meaningful 
distinction between core capabilities (not all of which will 
necessarily be available) and extensions (some of which will likely be 
nigh universal), and that there's no reason they shouldn't all be 
listed together.

And then I come home, and I find out that Russ has beaten me to the 
punch.  Suffice it to say that I'm all behind the CAPABILITY/LIST 
CAPABILITIES proposal, whatever it's called.


-- 
Jeffrey M. Vinocur
jeff@litech.org

From clive at demon.net  Thu Nov 11 01:58:46 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov 11 01:58:59 2004
Subject: [NNTP] Notes on auxiliary documents
Message-ID: <20041111095846.GA97891@finch-staff-1.thus.net>

A cluster of notes on the three auxiliary documents (authinfo, tls, and 
streaming). Mostly editorial.


General
=======
The word "draft" shouldn't be used to refer to the document itself. It 
should be "specification" or "document".

The core specification never includes generic responses in the pro-forma 
sections for each command (unless they have some unusual meaning, such 
as 502 for MODE READER). They *are* referred to in the description to 
explain how to report various situations. The one case I have 
specifically noted is in STARTTLS, but there may be others.


authinfo-05
===========
Section 1 para 1: change "has traditionally provided public access" to 
"has traditionally been used to provide public access". [NNTP is the 
mechanism, not the agent.]

Next para, last sentence, I would reword as:

    Due to their ubiquity they are formalized in this specification but,
    because of their insecurity, only for use ...

Section 2.2: "Servers are not required to accept unsolicited 
authentication". I don't follow this. Since the server advertises its 
conformance with this document (through CAPABILITY / LIST EXTENSIONS), 
it is soliciting authentication. The only way I can read this is that, 
despite that, authentication is not permitted *until* a 480 happens. Um:

    [C] LIST EXTENSIONS
    [S] 202
    [S] AUTHINFO USER SASL:EXTERNAL
    [S] .
    [C] AUTHINFO USER fred flintstone
    [S] 481 unsolicited authentication rejected (or is it 503?)
    [C] GROUP secret.group
    [S] 480 need to authenticate
    [C] AUTHINFO USER fred flintstone
    [S] 281 Hello Fred.

Surely that can't be desirable?

Section 2.4.2: I know that we've discussed this before, but I think the 
code for "don't handle this mechanism" shouldn't be 501 but, rather, 503 
or something AUTHINFO-specific.

Just above the wording you changed, I suggested that "if a security 
layer as part of the authentication," be deleted after "In agreement 
with [SASL]". If this ability is useful (I'm still agnostic), then it 
could be useful in other circumstances as well.

Sections 2.4.2 and 6: we say that the server MUST discard all knowledge. 
Does this include NNTP state? E.g.

    [C] GROUP a.group
    [S] 211 10 555 666 a.group selected
    [C] AUTHINFO SASL MECHANISM
    [SASL details omitted, security layer created]
    [S] 281
    [C] ARTICLE 10

Does the server respond with 220 or 412? Whichever the answer is, it 
needs to be made more clear.

Section 3.1: in the last paragraph, insert ", both exclusive, after 
"between the first ... CRLF".

Section 6, last paragraph: add something like "The minimum strength 
acceptable will, of course, depend on specific circumstances and is 
outside the scope of this specification." Otherwise it implies there's 
some definition of "weak" which we're hiding (just to be perverse?).


streaming-02
============

I notice that you switch between "pipeline", "stream", and "asynchronous 
transfer" with no apparent consistency. We agreed to call the basic 
concept "pipelining", and that's what the core document calls it. You 
may want to revisit this.

Section 1 (and possibly elsewhere) talks about "server-to-server". NNTP 
doesn't have server-to-server links. Again, we should be consistent and 
only say "peer-to-peer" and "client-to-server".

Section 2.3.2 gives too much emphasis on non-conforming implementations. 
Replace it completely with something very similar to:

    On a server which conforms to this specification, the MODE STREAM
    command MUST return a 203 response (or 501 if an argument is given)
    and MUST NOT have any other effect.

    Historic note: some old server implementations did not advertise
    streaming in the response to LIST EXTENSIONS but provided CHECK and
    TAKETHIS commands similar or identical to those in this document.
    Clients could test for this by issuing the MODE STREAM command; if
    it succeeded, pipelining was possible. However, even if the command
    succeeded it does not mean that the CHECK and TAKETHIS commands
    conform to this specification. Clients SHOULD use the CAPABILITY
    command to determine server capabilities.

Section 2.4.2: is "another client is sending the same article" the best 
example? Surely "disc full" or something like that would be better.


tls-03
======

Section 2.2.2 para 6: The text "The TLS negotiation begins ... response" 
only handles one direction; compare the corresponding text in AUTHINFO 
SASL. It should be something like "For the server to client direction, 
the TLS negotiation ... response; for client to server it begins with 
the next octet sent after the CRLF at the end of the command."

In the following paragraph, surely "MUST discard" should be "SHOULD NOT 
rely on", since the client can still make heuristic decisions.

Section 5 para 3: you've got two sentences beginning "Further,"; I would 
omit the first instance. And the last sentence needs something like "or 
vice versa" at the end.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From andrew at supernews.net  Thu Nov 11 04:13:32 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov 11 04:13:49 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <20041111095846.GA97891@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Thu, 11 Nov 2004 09:58:46 +0000")
References: <20041111095846.GA97891@finch-staff-1.thus.net>
Message-ID: <E1CSDpj-000MeX-5n@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 Clive> streaming-02
 Clive> ============

 Clive> I notice that you switch between "pipeline", "stream", and
 Clive> "asynchronous transfer" with no apparent consistency. We
 Clive> agreed to call the basic concept "pipelining", and that's what
 Clive> the core document calls it. You may want to revisit this.

The term for article transfer using check/takethis is "streaming feed"
(and has been since the concept was invented). The fact that the main
document uses "pipelining" to refer to sending multiple commands before
receiving responses isn't relevent to that (and in fact the main doc
deliberately doesn't use the term "streaming" for that precisely because
that term has always had the specific meaning of "streaming feed").

 Clive> Section 2.4.2: is "another client is sending the same article"
 Clive> the best example? Surely "disc full" or something like that
 Clive> would be better.

You really don't understand how streaming feeds work at all, do you?

"Another client is sending the same article" is the SOLE REASON WHY THE
DEFERRAL RESPONSE CODE FOR "CHECK" EXISTS. The normal case is that the
server receives CHECK commands for a given article from several peers
more or less simultaneously; it answers the first one with 238 and all
the rest with 431, until either it receives the article via TAKETHIS or
a timeout expires (in which case it answers the next CHECK for that
article with 238 again). This is necessary to avoid wasting bandwidth
by getting multiple copies of the same article.

The usual (and most reliable) way to handle "disc full" is to throttle
the server, i.e.  to stop accepting feeder connections at all.

-- 
Andrew, Supernews
http://www.supernews.com

From clive at demon.net  Thu Nov 11 04:23:21 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov 11 04:23:34 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <E1CSDpj-000MeX-5n@trinity.supernews.net>
References: <20041111095846.GA97891@finch-staff-1.thus.net>
	<E1CSDpj-000MeX-5n@trinity.supernews.net>
Message-ID: <20041111122321.GA16030@finch-staff-1.thus.net>

Andrew - Supernews said:
>  Clive> I notice that you switch between "pipeline", "stream", and
>  Clive> "asynchronous transfer" with no apparent consistency. We
>  Clive> agreed to call the basic concept "pipelining", and that's what
>  Clive> the core document calls it. You may want to revisit this.
> 
> The term for article transfer using check/takethis is "streaming feed"
> (and has been since the concept was invented). The fact that the main
> document uses "pipelining" to refer to sending multiple commands before
> receiving responses isn't relevent to that (and in fact the main doc
> deliberately doesn't use the term "streaming" for that precisely because
> that term has always had the specific meaning of "streaming feed").

Okay. In which case, we should be careful that each use of those two terms
is correct, and that "asynchronous" is removed completely.

>  Clive> Section 2.4.2: is "another client is sending the same article"
>  Clive> the best example? Surely "disc full" or something like that
>  Clive> would be better.
> You really don't understand how streaming feeds work at all, do you?

No. That's why I asked the question.

> "Another client is sending the same article" is the SOLE REASON WHY THE
> DEFERRAL RESPONSE CODE FOR "CHECK" EXISTS. The normal case is that the
> server receives CHECK commands for a given article from several peers
> more or less simultaneously; it answers the first one with 238 and all
> the rest with 431, until either it receives the article via TAKETHIS or
> a timeout expires

Okay. But in which case "has offered to send the same article" would be
better wording. As phrased, it looked like "another client has already
started an IHAVE or TAKETHIS for the article, but it hasn't completed"
and seemed an odd reason for giving a defer code (if it fails, that other
client can re-send).

> (in which case it answers the next CHECK for that
> article with 238 again). This is necessary to avoid wasting bandwidth
> by getting multiple copies of the same article.

Understood.

Note: this may be obvious to you who does this every day, but the spec
should attempt to minimize the specialist knowledge required.

> The usual (and most reliable) way to handle "disc full" is to throttle
> the server, i.e.  to stop accepting feeder connections at all.

Um, I thought you said that deferring made sense after CHECK and the first
stage of IHAVE; it was only after TAKETHIS (and the second stage of IHAVE)
that it didn't.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Thu Nov 11 05:20:26 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov 11 05:20:32 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <877jotwnsc.fsf@windlord.stanford.edu>
References: <418A8AD9.5070801@oceana.com>
	<Pine.LNX.4.62.0411041202030.24364@shiva1.cac.washington.edu>
	<418A922D.6070804@oceana.com>
	<Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<87ekj2mmrx.fsf@windlord.stanford.edu>
	<20041110082412.GQ49664@finch-staff-1.thus.net>
	<87fz3hwohj.fsf@windlord.stanford.edu>
	<877jotwnsc.fsf@windlord.stanford.edu>
Message-ID: <20041111132026.GE16030@finch-staff-1.thus.net>

Russ Allbery said:
>> As long as readers can still advertise transit commands and vice versa,
>> I think that sounds great.  And that would let us introduce 433 in a
>> more comprehensive fashion and maybe push people a little towards using
>> that in situations where MODE READER is currently used.
> 
> One thing that I do want to add here, though, is that we don't want to go
> down the path of making too many changes, and this is borderline -- it
> sort of deals with the LIST EXTENSIONS stuff we're working on, but also
> goes a little bit beyond it.
> 
> In other words, we have to be careful not to reopen too much, although if
> we can make this part clearer, maybe that would be worthwhile.

This is going to look (I've started on it, so I know) like a major revision
of parts of the document. But in actual fact, it changes very little. The
wording of MODE READER, if you know how to read it, already allows for the
four different server types we discussed. It's just so badly presented that
everyone sits looking confused.

The only substantive changes will be the capability reporting (which is a
separate matter anyway) and *possibly* the elimination of MODE READER,
which is also a separate sub-thread.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Thu Nov 11 05:24:55 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov 11 05:25:16 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.WNT.4.62.0411101325110.2844@Shimo-Tomobiki.Panda.COM>
References: <87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu> <419269D9.40502@oceana.com>
	<87r7n1v7bx.fsf@windlord.stanford.edu>
	<E1CRzhn-000BDH-St@trinity.supernews.net>
	<Pine.WNT.4.62.0411101325110.2844@Shimo-Tomobiki.Panda.COM>
Message-ID: <20041111132455.GF16030@finch-staff-1.thus.net>

Mark Crispin said:
>> I actually disagree on this point - I prefer to add a new LIST
>> subcommand than an entire new basic command, both because it's easier
>> in the code

Huh? Surely you have a basic command switch table somewhere.

>> (probably is in the client, too, given that LIST output is
>> reasonably consistent)

Not really, no. About the only consistent thing is that it's multi-line.

>> and because it's logical.

To paraphrase Mark: how can you use LIST and logical in the same sentence
with a straight face?

> It seems bizarre to me that LIST has all these seemingly orthogonal 
> functions, but that's just syntactic sugar.

"seemingly orthogonal" is right. There are all kinds of bizarre
inconsistencies in the detail.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Thu Nov 11 05:27:34 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov 11 05:27:39 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <41926E24.2010202@oceana.com>
References: <Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu> <419269D9.40502@oceana.com>
	<87r7n1v7bx.fsf@windlord.stanford.edu>
	<41926E24.2010202@oceana.com>
Message-ID: <20041111132734.GG16030@finch-staff-1.thus.net>

Ken Murchison said:
> As an aside, what, if any, legacy extensions should a server list via 
> LIST EXTENSIONS for backwards compatibility with existing clients?  Or 
> is the number of clients which use LIST EXTENSIONS too small to worry 
> about, especially if the current LIST EXTENSIONS output can't be trusted?

My intent, when adding CAPABILITY, is to either remove LIST EXTENSIONS
entirely or, for the benefit of existing clients, to require its output to
be the extensions part of the CAPABILITY output. If that isn't clear,
please wait for the draft.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Thu Nov 11 05:32:32 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov 11 05:32:40 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <41926FA4.9060000@oceana.com>
References: <Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu> <419269D9.40502@oceana.com>
	<87r7n1v7bx.fsf@windlord.stanford.edu>
	<41926FA4.9060000@oceana.com>
Message-ID: <20041111133232.GH16030@finch-staff-1.thus.net>

Ken Murchison said:
> Keeping with the cleanup theme, is there any reason why LIST HEADERS 
> can't be changed to something different (e.g. HDR.LIST or HEADERS), 
> especially since we're defining it for the first time in our doc

Fine with me. HDR.AVAIL would be my first choice (HEADERS on its own is a
bit confusing), since it lists what's available to HDR, but it's not a
big deal.

> Similarly LIST OVERVIEW.FMT could be changed to just 
> OVERVIEW.FMT, but for backwards compatibility this may or may not be wise.

This is a bit less clear-cut. It would allow elimination of the legacy
quirk in the specification.

What getting rid of one or both also does is makes it reasonable to say
"no more LIST variants in extensions", limiting LIST to the "LIST keyword"
command in 25.pre-2 and making it more self-consistent.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From andrew at supernews.net  Thu Nov 11 06:17:31 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Thu Nov 11 06:17:48 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <20041111122321.GA16030@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Thu, 11 Nov 2004 12:23:21 +0000")
References: <20041111095846.GA97891@finch-staff-1.thus.net>
	<E1CSDpj-000MeX-5n@trinity.supernews.net>
	<20041111122321.GA16030@finch-staff-1.thus.net>
Message-ID: <E1CSFli-000OJt-2W@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 >> "Another client is sending the same article" is the SOLE REASON
 >> WHY THE DEFERRAL RESPONSE CODE FOR "CHECK" EXISTS. The normal case
 >> is that the server receives CHECK commands for a given article
 >> from several peers more or less simultaneously; it answers the
 >> first one with 238 and all the rest with 431, until either it
 >> receives the article via TAKETHIS or a timeout expires

 Clive> Okay. But in which case "has offered to send the same article"
 Clive> would be better wording.

Yeah.

 Clive> As phrased, it looked like "another client has already started
 Clive> an IHAVE or TAKETHIS for the article, but it hasn't completed"
 Clive> and seemed an odd reason for giving a defer code (if it fails,
 Clive> that other client can re-send).

That case applies as well. The article can't be considered "received"
until the IHAVE or TAKETHIS is completed; and during the interval
between first seeing the message-id (whether by CHECK, IHAVE or
TAKETHIS) and the completion of the IHAVE or TAKETHIS, the server will
(generally speaking) return deferrals rather than refusals simply
because it has no way to ensure that a failed in-progress transfer
will ever be retried by the sending end.

 >> The usual (and most reliable) way to handle "disc full" is to
 >> throttle the server, i.e.  to stop accepting feeder connections at
 >> all.

 Clive> Um, I thought you said that deferring made sense after CHECK
 Clive> and the first stage of IHAVE; it was only after TAKETHIS (and
 Clive> the second stage of IHAVE) that it didn't.

It makes sense in the context of the normal case described above. But
it's _not_ OK to simply respond to _every_ CHECK or IHAVE with a
defer, because that means that both ends of the peering session will
just waste bandwidth and CPU on a continuous stream of deferrals.

-- 
Andrew, Supernews
http://www.supernews.com

From mrc at CAC.Washington.EDU  Thu Nov 11 07:24:27 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Thu Nov 11 07:24:31 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041111132455.GF16030@finch-staff-1.thus.net>
References: <87d5ys3ob0.fsf@windlord.stanford.edu>
	<20041109093725.GA10440@finch-staff-1.thus.net>
	<20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu>
	<419269D9.40502@oceana.com> <87r7n1v7bx.fsf@windlord.stanford.edu>
	<E1CRzhn-000BDH-St@trinity.supernews.net>
	<Pine.WNT.4.62.0411101325110.2844@Shimo-Tomobiki.Panda.COM>
	<20041111132455.GF16030@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0411110723010.14080@shiva1.cac.washington.edu>

On Thu, 11 Nov 2004, Clive D.W. Feather wrote:
> Mark Crispin said:
>>> I actually disagree on this point - I prefer to add a new LIST
>>> subcommand than an entire new basic command, both because it's easier
>>> in the code
> Huh? Surely you have a basic command switch table somewhere.

I did not say the above comment.  Please attribute your quotes correctly.

It is of no consequence to me whether capabilities are a subcommand of 
LIST or a new basic command.

>> It seems bizarre to me that LIST has all these seemingly orthogonal
>> functions, but that's just syntactic sugar.
> "seemingly orthogonal" is right. There are all kinds of bizarre
> inconsistencies in the detail.

I did say the above comment.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From clive at demon.net  Thu Nov 11 08:22:24 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov 11 08:22:42 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <Pine.LNX.4.62.0411110723010.14080@shiva1.cac.washington.edu>
References: <20041109094508.GB10440@finch-staff-1.thus.net>
	<87actqmmjp.fsf@windlord.stanford.edu>
	<20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu> <419269D9.40502@oceana.com>
	<87r7n1v7bx.fsf@windlord.stanford.edu>
	<E1CRzhn-000BDH-St@trinity.supernews.net>
	<Pine.WNT.4.62.0411101325110.2844@Shimo-Tomobiki.Panda.COM>
	<20041111132455.GF16030@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411110723010.14080@shiva1.cac.washington.edu>
Message-ID: <20041111162223.GC42609@finch-staff-1.thus.net>

Mark Crispin said:
> >>>I actually disagree on this point - I prefer to add a new LIST
> >>>subcommand than an entire new basic command, both because it's easier
> >>>in the code
> >Huh? Surely you have a basic command switch table somewhere.
> I did not say the above comment.  Please attribute your quotes correctly.

Count the arrows. They were attributed correctly.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Thu Nov 11 08:37:02 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov 11 08:37:13 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <20041111095846.GA97891@finch-staff-1.thus.net>
References: <20041111095846.GA97891@finch-staff-1.thus.net>
Message-ID: <4193952E.7030307@oceana.com>

Clive D.W. Feather wrote:

> A cluster of notes on the three auxiliary documents (authinfo, tls, and 
> streaming). Mostly editorial.
> 
> 
> General
> =======
> The word "draft" shouldn't be used to refer to the document itself. It 
> should be "specification" or "document".

Fixed the one instance (in AUTHINFO) that I found.


> The core specification never includes generic responses in the pro-forma 
> sections for each command (unless they have some unusual meaning, such 
> as 502 for MODE READER). They *are* referred to in the description to 
> explain how to report various situations. The one case I have 
> specifically noted is in STARTTLS, but there may be others.

502 is listed in both AUTHINFO and STARTTLS pro-forma sections to make 
it clear that it also applies after these commands have been used (per 
the notes).  I'm pretty sure this was discussed before and it was signed 
off on.  I really don't care if we keep it or remove it, but at this 
point, I'd like to change as little as possible since we appear to be in 
a "final tweaking" stage.


> authinfo-05
> ===========
> Section 1 para 1: change "has traditionally provided public access" to 
> "has traditionally been used to provide public access". [NNTP is the 
> mechanism, not the agent.]

Done.


> Next para, last sentence, I would reword as:
> 
>     Due to their ubiquity they are formalized in this specification but,
>     because of their insecurity, only for use ...

Done.


> Section 2.2: "Servers are not required to accept unsolicited 
> authentication". I don't follow this. Since the server advertises its 
> conformance with this document (through CAPABILITY / LIST EXTENSIONS), 
> it is soliciting authentication. The only way I can read this is that, 
> despite that, authentication is not permitted *until* a 480 happens. Um:
> 
>     [C] LIST EXTENSIONS
>     [S] 202
>     [S] AUTHINFO USER SASL:EXTERNAL
>     [S] .
>     [C] AUTHINFO USER fred flintstone
>     [S] 481 unsolicited authentication rejected (or is it 503?)
>     [C] GROUP secret.group
>     [S] 480 need to authenticate
>     [C] AUTHINFO USER fred flintstone
>     [S] 281 Hello Fred.
> 
> Surely that can't be desirable?

Correct, I think this is what Jeff is trying to say.  That the client 
can go ahead and authenticate without having received a 480 response and 
the server must accept authentication even is not prompted by a 480. 
Essentially, this sentence is to be paired up with the first sentence of 
the previous paragraph.

I'll gladly take some suggested text, unless you feel that this sentence 
can be deleted entirely.


> Section 2.4.2: I know that we've discussed this before, but I think the 
> code for "don't handle this mechanism" shouldn't be 501 but, rather, 503 
> or something AUTHINFO-specific.

This has already been changed.  Did you see my "proposed changes" posts?


> Just above the wording you changed, I suggested that "if a security 
> layer as part of the authentication," be deleted after "In agreement 
> with [SASL]". If this ability is useful (I'm still agnostic), then it 
> could be useful in other circumstances as well.

Continuing to advertise only makes sense when a security layer is 
advertised, since the info can be trusted otherwise (a MiM attack could 
still be in progress).


> Sections 2.4.2 and 6: we say that the server MUST discard all knowledge. 
> Does this include NNTP state? E.g.
> 
>     [C] GROUP a.group
>     [S] 211 10 555 666 a.group selected
>     [C] AUTHINFO SASL MECHANISM
>     [SASL details omitted, security layer created]
>     [S] 281
>     [C] ARTICLE 10
> 
> Does the server respond with 220 or 412? Whichever the answer is, it 
> needs to be made more clear.

That's a good question.  This wording comes from the other SASL profile 
docs (IMAP, POP, SMTP) in which authentication usually (always?) happens 
before other commands.

I don't *think* that server has to go back to the "unselected group" 
state after auth, but my guess is that if the client authenticates in 
the middle of a session its because they are trying to access a group 
that returned a 480 and therefore will be changing groups immediately 
after auth.

Does anyone have any string feelings on this?


> Section 3.1: in the last paragraph, insert ", both exclusive, after 
> "between the first ... CRLF".

I don't understand what change your are requesting (you only have 3 
quotes in your suggestion).

> Section 6, last paragraph: add something like "The minimum strength 
> acceptable will, of course, depend on specific circumstances and is 
> outside the scope of this specification." Otherwise it implies there's 
> some definition of "weak" which we're hiding (just to be perverse?).

I added: "The minimum strength acceptable is a policy decision which is 
outside the scope of this specification."


> streaming-02
> ============
> 
> I notice that you switch between "pipeline", "stream", and "asynchronous 
> transfer" with no apparent consistency. We agreed to call the basic 
> concept "pipelining", and that's what the core document calls it. You 
> may want to revisit this.

Please look at my "proposed changes" post and see if it addresses this. 
  Of course, based on Andrew's post, we may have to change this yet again.


> Section 1 (and possibly elsewhere) talks about "server-to-server". NNTP 
> doesn't have server-to-server links. Again, we should be consistent and 
> only say "peer-to-peer" and "client-to-server".

I fixed the two instances in Section 1.  I believe the wording is 
correct elsewhere.


> Section 2.3.2 gives too much emphasis on non-conforming implementations. 
> Replace it completely with something very similar to:
> 
>     On a server which conforms to this specification, the MODE STREAM
>     command MUST return a 203 response (or 501 if an argument is given)
>     and MUST NOT have any other effect.
> 
>     Historic note: some old server implementations did not advertise
>     streaming in the response to LIST EXTENSIONS but provided CHECK and
>     TAKETHIS commands similar or identical to those in this document.
>     Clients could test for this by issuing the MODE STREAM command; if
>     it succeeded, pipelining was possible. However, even if the command
>     succeeded it does not mean that the CHECK and TAKETHIS commands
>     conform to this specification. Clients SHOULD use the CAPABILITY
>     command to determine server capabilities.

First off, I think Russ signed off on the current text, but I'm willing 
to clarify if needed.  In fact, I like most of what you have above.

This is a similar situation to MODE READER.  We are trying to steer new 
implementations away from MODE STREAM but document its prior use.

Russ, can you provide some guidance?


> Section 2.4.2: is "another client is sending the same article" the best 
> example? Surely "disc full" or something like that would be better.

I used the wording from your subsequent post.


> tls-03
> ======
> 
> Section 2.2.2 para 6: The text "The TLS negotiation begins ... response" 
> only handles one direction; compare the corresponding text in AUTHINFO 
> SASL. It should be something like "For the server to client direction, 
> the TLS negotiation ... response; for client to server it begins with 
> the next octet sent after the CRLF at the end of the command."

I don't see the confusion.  For both client and server the negotiation 
starts after the CRLF.  The same wording (except for "octet") is in IMAP 
and POP.


> In the following paragraph, surely "MUST discard" should be "SHOULD NOT 
> rely on", since the client can still make heuristic decisions.

I'm not sure about this.  Based on Mark's comments from the MODE READER 
thread, I *think* that this is almost a requirement of TLS (whether 
implicitly or explicity, I don't know).

Russ, guidance?


> Section 5 para 3: you've got two sentences beginning "Further,"; I would 
> omit the first instance. And the last sentence needs something like "or 
> vice versa" at the end.

Sentence removed, not sure what "vice versa" gets us.


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Thu Nov 11 08:46:43 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov 11 08:47:00 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041111162223.GC42609@finch-staff-1.thus.net>
References: <20041109094508.GB10440@finch-staff-1.thus.net>	<87actqmmjp.fsf@windlord.stanford.edu>	<20041110083240.GR49664@finch-staff-1.thus.net>	<87bre5wo4p.fsf@windlord.stanford.edu>
	<419269D9.40502@oceana.com>	<87r7n1v7bx.fsf@windlord.stanford.edu>	<E1CRzhn-000BDH-St@trinity.supernews.net>	<Pine.WNT.4.62.0411101325110.2844@Shimo-Tomobiki.Panda.COM>	<20041111132455.GF16030@finch-staff-1.thus.net>	<Pine.LNX.4.62.0411110723010.14080@shiva1.cac.washington.edu>
	<20041111162223.GC42609@finch-staff-1.thus.net>
Message-ID: <41939773.5090900@oceana.com>

Clive D.W. Feather wrote:
> Mark Crispin said:
> 
>>>>>I actually disagree on this point - I prefer to add a new LIST
>>>>>subcommand than an entire new basic command, both because it's easier
>>>>>in the code
>>>
>>>Huh? Surely you have a basic command switch table somewhere.
>>
>>I did not say the above comment.  Please attribute your quotes correctly.
> 
> 
> Count the arrows. They were attributed correctly.

Nope.  The statement above was made by Andrew.


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Thu Nov 11 08:56:29 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov 11 08:56:45 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <41939773.5090900@oceana.com>
References: <20041110083240.GR49664@finch-staff-1.thus.net>
	<87bre5wo4p.fsf@windlord.stanford.edu> <419269D9.40502@oceana.com>
	<87r7n1v7bx.fsf@windlord.stanford.edu>
	<E1CRzhn-000BDH-St@trinity.supernews.net>
	<Pine.WNT.4.62.0411101325110.2844@Shimo-Tomobiki.Panda.COM>
	<20041111132455.GF16030@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0411110723010.14080@shiva1.cac.washington.edu>
	<20041111162223.GC42609@finch-staff-1.thus.net>
	<41939773.5090900@oceana.com>
Message-ID: <20041111165629.GG42609@finch-staff-1.thus.net>

Ken Murchison said:
>>>I did not say the above comment.  Please attribute your quotes correctly.
>> Count the arrows. They were attributed correctly.
> Nope.  The statement above was made by Andrew.

Oh, good grief.

In the above:
>>>    is Mark
>>     is Clive
>      is Ken
As far as I and many (most) Usenet posters are concerned, this is a correct
attribution. Stuff with one arrow is the attributed person; stuff with more
than one is material that person quoted.

Similarly, in the original post I attributed Mark because I was quoting his
post, but some of the text in my post began ">>", because it was Mark
quoting Andrew.

Happy now?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Thu Nov 11 09:17:29 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Thu Nov 11 09:17:49 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <4193952E.7030307@oceana.com>
References: <20041111095846.GA97891@finch-staff-1.thus.net>
	<4193952E.7030307@oceana.com>
Message-ID: <20041111171729.GH42609@finch-staff-1.thus.net>

Ken Murchison said:
>> The core specification never includes generic responses in the pro-forma 
>> sections for each command (unless they have some unusual meaning, such 
>> as 502 for MODE READER).

> 502 is listed in both AUTHINFO and STARTTLS pro-forma sections to make 
> it clear that it also applies after these commands have been used (per 
> the notes).  I'm pretty sure this was discussed before and it was signed 
> off on.

Hmm, I don't recall offhand.

>> Section 2.2: "Servers are not required to accept unsolicited 
>> authentication". I don't follow this. Since the server advertises its 
>> conformance with this document (through CAPABILITY / LIST EXTENSIONS), 
>> it is soliciting authentication. The only way I can read this is that, 
>> despite that, authentication is not permitted *until* a 480 happens. Um:
>> 
>>     [C] LIST EXTENSIONS
>>     [S] 202
>>     [S] AUTHINFO USER SASL:EXTERNAL
>>     [S] .
>>     [C] AUTHINFO USER fred flintstone
>>     [S] 481 unsolicited authentication rejected (or is it 503?)
>>     [C] GROUP secret.group
>>     [S] 480 need to authenticate
>>     [C] AUTHINFO USER fred flintstone
>>     [S] 281 Hello Fred.
>> 
>> Surely that can't be desirable?
> 
> Correct, I think this is what Jeff is trying to say.  That the client 
> can go ahead and authenticate without having received a 480 response and 
> the server must accept authentication even is not prompted by a 480. 

Okay, that's good.

> Essentially, this sentence is to be paired up with the first sentence of 
> the previous paragraph.

So by "unsolicited" you actually mean something like AUTHINFO PASS after
the AUTHINFO USER was rejected, or carrying on the SASL exchange after a
48x. The latter is just going to confuse the server, and the former has an
error code already.

> I'll gladly take some suggested text, unless you feel that this sentence 
> can be deleted entirely.

If I'm still on track, I don't think we need it. It's like saying that the
client mustn't send the article body if POST doesn't get the 354 code.

>> Section 2.4.2: I know that we've discussed this before, but I think the 
>> code for "don't handle this mechanism" shouldn't be 501 but, rather, 503 
>> or something AUTHINFO-specific.
> This has already been changed.  Did you see my "proposed changes" posts?

Yes, but obviously overlooked this one when writing this message.

>> Just above the wording you changed, I suggested that "if a security 
>> layer as part of the authentication," be deleted after "In agreement 
>> with [SASL]". If this ability is useful (I'm still agnostic), then it 
>> could be useful in other circumstances as well.
> Continuing to advertise only makes sense when a security layer is 
> advertised, since the info can be trusted otherwise (a MiM attack could 
> still be in progress).

I still think this is wrong (and, indeed, how we advertise this is the
wrong approach), but I'll leave it.

>> Sections 2.4.2 and 6: we say that the server MUST discard all knowledge. 
>> Does this include NNTP state? E.g.
>> 
>>     [C] GROUP a.group
>>     [S] 211 10 555 666 a.group selected
>>     [C] AUTHINFO SASL MECHANISM
>>     [SASL details omitted, security layer created]
>>     [S] 281
>>     [C] ARTICLE 10
>> 
>> Does the server respond with 220 or 412? Whichever the answer is, it 
>> needs to be made more clear.
> 
> That's a good question.  This wording comes from the other SASL profile 
> docs (IMAP, POP, SMTP) in which authentication usually (always?) happens 
> before other commands.
> 
> I don't *think* that server has to go back to the "unselected group" 
> state after auth, but my guess is that if the client authenticates in 
> the middle of a session its because they are trying to access a group 
> that returned a 480 and therefore will be changing groups immediately 
> after auth.

Well, yes, but we can't guarantee it and so can't rely on it. There may
also be other server state either now or in the future.

I don't mind whether it's "server must forget all state", or "server must
retain all NNTP state", but we need to be absolutely clear. Oh, and TLS
needs to be consistent with SASL on this.

[I'd prefer "retain state", because it may not be obvious to the main NNTP
engine in the client whether a security layer was negotiated or not by some
other module, and therefore whether the state was retained or not.]

>> Section 3.1: in the last paragraph, insert ", both exclusive, after 
>> "between the first ... CRLF".
> I don't understand what change your are requesting (you only have 3 
> quotes in your suggestion).

Sorry, it comes of writing the material on a cramped aircraft.

Change:
    "between the first ... CRLF ..."
to:
    "between the first ... CRLF, both exclusive, ...

>> Section 6, last paragraph: add something like "The minimum strength 
>> acceptable will, of course, depend on specific circumstances and is 
>> outside the scope of this specification." Otherwise it implies there's 
>> some definition of "weak" which we're hiding (just to be perverse?).
> I added: "The minimum strength acceptable is a policy decision which is 
> outside the scope of this specification."

Fine.

>> streaming-02
>> ============
>> I notice that you switch between "pipeline", "stream", and "asynchronous 
>> transfer" with no apparent consistency. We agreed to call the basic 
>> concept "pipelining", and that's what the core document calls it. You 
>> may want to revisit this.
> 
> Please look at my "proposed changes" post and see if it addresses this. 
> Of course, based on Andrew's post, we may have to change this yet again.

I think it might be best to wait until you circulate the next draft (or a
snapshot in the way I do) and then do a full sweep.

>> Section 1 (and possibly elsewhere) talks about "server-to-server". NNTP 
>> doesn't have server-to-server links. Again, we should be consistent and 
>> only say "peer-to-peer" and "client-to-server".
> I fixed the two instances in Section 1.  I believe the wording is 
> correct elsewhere.

I didn't make a full scan for this, just noted it as I was writing (I blame
the cramped plane again).

>> Section 2.3.2 gives too much emphasis on non-conforming implementations. 
>> Replace it completely with something very similar to:
>> 
>>     On a server which conforms to this specification, the MODE STREAM
>>     command MUST return a 203 response (or 501 if an argument is given)
>>     and MUST NOT have any other effect.
>> 
>>     Historic note: some old server implementations did not advertise
>>     streaming in the response to LIST EXTENSIONS but provided CHECK and
>>     TAKETHIS commands similar or identical to those in this document.
>>     Clients could test for this by issuing the MODE STREAM command; if
>>     it succeeded, pipelining was possible. However, even if the command
>>     succeeded it does not mean that the CHECK and TAKETHIS commands
>>     conform to this specification. Clients SHOULD use the CAPABILITY
>>     command to determine server capabilities.
> 
> First off, I think Russ signed off on the current text, but I'm willing 
> to clarify if needed.  In fact, I like most of what you have above.
> 
> This is a similar situation to MODE READER.  We are trying to steer new 
> implementations away from MODE STREAM but document its prior use.

Right. One thing that's happened since that text was written is that we've
gone for a much more solid distinction between conforming-to-our-texts and
older servers. For example, an NNTPv2 server now MUST NOT advertise
STREAMING in LIST EXTENSIONS unless it conforms to your document. So we can
sensibly say it's a no-op, conforming clients don't need to use it with
conforming servers, but there's a historic compatibility issue.

I'll be taking the same approach with MODE READER if you lot decide to
change INN not to need it.

>> Section 2.4.2: is "another client is sending the same article" the best 
>> example? Surely "disc full" or something like that would be better.
> I used the wording from your subsequent post.

Okay.

>> Section 2.2.2 para 6: The text "The TLS negotiation begins ... response" 
>> only handles one direction; compare the corresponding text in AUTHINFO 
>> SASL. It should be something like "For the server to client direction, 
>> the TLS negotiation ... response; for client to server it begins with 
>> the next octet sent after the CRLF at the end of the command."
> I don't see the confusion.  For both client and server the negotiation 
> starts after the CRLF.  The same wording (except for "octet") is in IMAP 
> and POP.

Hmm.

>> In the following paragraph, surely "MUST discard" should be "SHOULD NOT 
>> rely on", since the client can still make heuristic decisions.
> I'm not sure about this.  Based on Mark's comments from the MODE READER 
> thread, I *think* that this is almost a requirement of TLS (whether 
> implicitly or explicity, I don't know).

We discussed this a while ago when talking about whether clients had to
resend LIST EXTENSIONS in various places. Security considerations mean that
you mustn't rely on previous information, but it's sensible to use it for
heuristic decisions - so long as you're prepared for failure - and even for
security checks. That "do not rely on" wording is in the core document
IIRC.

>> Section 5 para 3: you've got two sentences beginning "Further,"; I would 
>> omit the first instance. And the last sentence needs something like "or 
>> vice versa" at the end.
> Sentence removed,

Um, I didn't mean remove the sentence, just the word "Further" (before
"because delivery").

> not sure what "vice versa" gets us.

The sentence basically tells server authors that they can't trust the
ultimate origin of material sent via IHAVE/POST/TAKETHIS just because
they know who the client is. Fine.

But don't TLS and SASL allow the client to check it's talking to the true
server? If so, the fact that it is doesn't mean that the server has checked
the origin of articles sent via ARTICLE either. Hence "or vice versa".

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From jeff at litech.org  Thu Nov 11 15:56:01 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Thu Nov 11 15:56:24 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <4193952E.7030307@oceana.com>
References: <20041111095846.GA97891@finch-staff-1.thus.net>
	<4193952E.7030307@oceana.com>
Message-ID: <3DAB3A33-343D-11D9-BDFD-000393032FF0@litech.org>

On Nov 11, 2004, at 11:37 AM, Ken Murchison wrote:

>> Section 2.2: "Servers are not required to accept unsolicited 
>> authentication". I don't follow this. Since the server advertises its 
>> conformance with this document (through CAPABILITY / LIST 
>> EXTENSIONS), it is soliciting authentication. The only way I can read 
>> this is that, despite that, authentication is not permitted *until* a 
>> 480 happens.
>
> Correct, I think this is what Jeff is trying to say.  That the client 
> can go ahead and authenticate without having received a 480 response 
> and the server must accept authentication even is not prompted by a 
> 480. Essentially, this sentence is to be paired up with the first 
> sentence of the previous paragraph.

Well, Clive's initial read is correct.  Before we had the strong 
extension discovery mechanism we do now, the original text was trying 
to document existing practice.  And presently there's quite a mess 
about AUTHINFO, in that some servers will return a non-empty group list 
(and thus not issue 480) despite having additional private groups that 
appear after authentication.  Thus many newsreaders have an "always 
send username/password even when not prompted" option.

And from that point of view, without LIST EXTENSIONS, Ken's comment is 
correct that

     A client MAY attempt the first step of authentication at any time
     during a session to acquire additional privileges without having
     received a 480 response. [...] Servers are not required to accept
     unsolicited authentication information from the client, therefore
     clients MUST accommodate servers that reject such authentication
     information.

was intended to be one coherent thought.  (And I think it is, in fact, 
quite sensible, as documentation of current practice.)

But I think Clive's observation is correct, that this doesn't make much 
sense with extension discovery.  So I guess this is another spot that 
needs rewording to distinguish interoperability with old servers as 
separate.

Ken, given the above, can you edit, or do I have to come up with 
something concrete?  :-)

-- 
Jeffrey M. Vinocur
jeff@litech.org

From rra at stanford.edu  Thu Nov 11 15:58:03 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Nov 11 15:58:06 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <3DAB3A33-343D-11D9-BDFD-000393032FF0@litech.org> (Jeffrey M.
	Vinocur's message of "Thu, 11 Nov 2004 18:56:01 -0500")
References: <20041111095846.GA97891@finch-staff-1.thus.net>
	<4193952E.7030307@oceana.com>
	<3DAB3A33-343D-11D9-BDFD-000393032FF0@litech.org>
Message-ID: <87oei4hras.fsf@windlord.stanford.edu>

Jeffrey M Vinocur <jeff@litech.org> writes:

> And from that point of view, without LIST EXTENSIONS, Ken's comment is
> correct that

>      A client MAY attempt the first step of authentication at any time
>      during a session to acquire additional privileges without having
>      received a 480 response. [...] Servers are not required to accept
>      unsolicited authentication information from the client, therefore
>      clients MUST accommodate servers that reject such authentication
>      information.

> was intended to be one coherent thought.  (And I think it is, in fact,
> quite sensible, as documentation of current practice.)

Is there any reason not to simply require that servers support unsolicited
authentication, without any note about older servers?  Are there any
servers that don't support AUTHINFO at any point during the session?  (I
think it would actually be harder to write a server that behaved that way
than to support AUTHINFO at any time.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Thu Nov 11 16:13:46 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Nov 11 16:13:55 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <87oei4hras.fsf@windlord.stanford.edu>
References: <20041111095846.GA97891@finch-staff-1.thus.net>	<4193952E.7030307@oceana.com>	<3DAB3A33-343D-11D9-BDFD-000393032FF0@litech.org>
	<87oei4hras.fsf@windlord.stanford.edu>
Message-ID: <4194003A.7030609@oceana.com>

Russ Allbery wrote:

> Jeffrey M Vinocur <jeff@litech.org> writes:
> 
> 
>>And from that point of view, without LIST EXTENSIONS, Ken's comment is
>>correct that
> 
> 
>>     A client MAY attempt the first step of authentication at any time
>>     during a session to acquire additional privileges without having
>>     received a 480 response. [...] Servers are not required to accept
>>     unsolicited authentication information from the client, therefore
>>     clients MUST accommodate servers that reject such authentication
>>     information.
> 
> 
>>was intended to be one coherent thought.  (And I think it is, in fact,
>>quite sensible, as documentation of current practice.)
> 
> 
> Is there any reason not to simply require that servers support unsolicited
> authentication, without any note about older servers?  Are there any
> servers that don't support AUTHINFO at any point during the session?  (I
> think it would actually be harder to write a server that behaved that way
> than to support AUTHINFO at any time.)

That's a good question.  Do we really need to discuss this at all? 
Isn't assumed that any command can be used unprompted?

If we can get a consensus on what we want this to say, I have some 
airplane time tomorrow and Saturday to work on this.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From jeff at litech.org  Thu Nov 11 16:15:09 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Thu Nov 11 16:15:31 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <87oei4hras.fsf@windlord.stanford.edu>
References: <20041111095846.GA97891@finch-staff-1.thus.net>
	<4193952E.7030307@oceana.com>
	<3DAB3A33-343D-11D9-BDFD-000393032FF0@litech.org>
	<87oei4hras.fsf@windlord.stanford.edu>
Message-ID: <E99DFDEB-343F-11D9-BDFD-000393032FF0@litech.org>

On Nov 11, 2004, at 6:58 PM, Russ Allbery wrote:

> Is there any reason not to simply require that servers support 
> unsolicited
> authentication, without any note about older servers?

I think we should be able to say that any NNTPv2 server that lists an 
AUTHINFO extension should support unsolicited authentication, sure.

Y'know, there's a subtly here I can't quite wrap my head around.  
Everyone seems to like the "advertising AUTHINFO is enough to 
effectively eliminate the 480 response" idea, if I'm reading the list 
right.  But have we come to a conclusion that reactive authentication 
is bad?  I mean, what if the server advertises AUTHINFO because some 
users can authenticate, but most users won't need to.  Then the client 
software still has no way to know if it should prompt the user for 
authentication parameters or not.  So I guess we still need 480.

But regardless, yeah, unsolicited authentication can be mandatory when 
AUTHINFO is advertised.


> Are there any
> servers that don't support AUTHINFO at any point during the session? (I
> think it would actually be harder to write a server that behaved that 
> way
> than to support AUTHINFO at any time.)

I think it would be hard to do so as well.  But in the "current 
practice" realm, the client has no way of telling if the server 
supports AUTHINFO at all, and so it might appear as a "failure of 
unsolicited authentication" in that case.  If you think we don't need 
to document this, I certainly don't feel strongly about it...the 
existing text reads as it does really by accident.


-- 
Jeffrey M. Vinocur
jeff@litech.org

From clive at demon.net  Fri Nov 12 07:19:00 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Nov 12 07:19:12 2004
Subject: [NNTP] Port numbers
Message-ID: <20041112151900.GD73408@finch-staff-1.thus.net>

I've got two possible wordings for port numbers.

(1) The official TCP port for the NNTP service is 433 for transit-only
    servers and 119 for all other servers.

(2) The official TCP port for the NNTP service is 119. However, if a host
    wishes to offer separate transit-only and reader-only servers, port
    433 SHOULD be used for the former and 119 for the latter.

[The terms "reader-only", "transit-only", and "general-use" are defined
in text that will surround this.]

Which better describes our intent?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Fri Nov 12 07:49:04 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Nov 12 07:49:13 2004
Subject: [NNTP] Port numbers
In-Reply-To: <20041112151900.GD73408@finch-staff-1.thus.net>
References: <20041112151900.GD73408@finch-staff-1.thus.net>
Message-ID: <4194DB70.5070409@oceana.com>

Clive D.W. Feather wrote:

> I've got two possible wordings for port numbers.
> 
> (1) The official TCP port for the NNTP service is 433 for transit-only
>     servers and 119 for all other servers.
> 
> (2) The official TCP port for the NNTP service is 119. However, if a host
>     wishes to offer separate transit-only and reader-only servers, port
>     433 SHOULD be used for the former and 119 for the latter.
> 
> [The terms "reader-only", "transit-only", and "general-use" are defined
> in text that will surround this.]
> 
> Which better describes our intent?

Either works for me; leaning towards (2).

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From chl at clerew.man.ac.uk  Fri Nov 12 06:33:33 2004
From: chl at clerew.man.ac.uk (Charles Lindsey)
Date: Fri Nov 12 09:12:26 2004
Subject: [NNTP] Notes on auxiliary documents
References: <20041111095846.GA97891@finch-staff-1.thus.net>
	<4193952E.7030307@oceana.com>
Message-ID: <I72Lrx.JpC@clerew.man.ac.uk>

In <4193952E.7030307@oceana.com> Ken Murchison <ken@oceana.com> writes:

>Clive D.W. Feather wrote:

>> Sections 2.4.2 and 6: we say that the server MUST discard all knowledge. 
>> Does this include NNTP state? E.g.
>> 
>>     [C] GROUP a.group
>>     [S] 211 10 555 666 a.group selected
>>     [C] AUTHINFO SASL MECHANISM
>>     [SASL details omitted, security layer created]
>>     [S] 281
>>     [C] ARTICLE 10
>> 
>> Does the server respond with 220 or 412? Whichever the answer is, it 
>> needs to be made more clear.

>That's a good question.  This wording comes from the other SASL profile 
>docs (IMAP, POP, SMTP) in which authentication usually (always?) happens 
>before other commands.

>I don't *think* that server has to go back to the "unselected group" 
>state after auth, but my guess is that if the client authenticates in 
>the middle of a session its because they are trying to access a group 
>that returned a 480 and therefore will be changing groups immediately 
>after auth.

Not necessarily.

Suppose you are in Group A, happily reading articles. Suppose you now
encounter an article cross-posted to the restricted group B. The server
invites you to authenticate, which you do. You would now like to be in the
same NNTP state as before, still in Group A with the crossposted article
still the current article, so you can now read it.

OTOH, what happens if you are unable to authenticate? Is there some way
that you can remain in the same group, ignore that article, and continue
reading the rest of the articles in the group?

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
From rra at stanford.edu  Fri Nov 12 10:12:21 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Nov 12 10:12:23 2004
Subject: [NNTP] Port numbers
In-Reply-To: <20041112151900.GD73408@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Fri, 12 Nov 2004 15:19:00 +0000")
References: <20041112151900.GD73408@finch-staff-1.thus.net>
Message-ID: <87lld7c4xm.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> I've got two possible wordings for port numbers.

> (1) The official TCP port for the NNTP service is 433 for transit-only
>     servers and 119 for all other servers.

> (2) The official TCP port for the NNTP service is 119. However, if a host
>     wishes to offer separate transit-only and reader-only servers, port
>     433 SHOULD be used for the former and 119 for the latter.

> [The terms "reader-only", "transit-only", and "general-use" are defined
> in text that will surround this.]

> Which better describes our intent?

I think 2 sounds about right.  For sites that have split transit and
reader functionality onto separate boxes, I don't see any reason to push
them to switch to 433 on their transit systems.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From clive at demon.net  Sat Nov 13 07:33:10 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Sat Nov 13 07:33:14 2004
Subject: [NNTP] Snapshot 3
Message-ID: <20041113153310.GA96356@finch-staff-1.thus.net>

Okay, yet another snapshot up at:
<http://www.davros.org/nntp-texts/draft25.pre-3.txt>
<http://www.davros.org/nntp-texts/draft25.pre-3.html>

This one has the new treatment of MODE READER and transit versus reader
commands.

The big change is a new section 3.3 "Reader and Transit Servers". This
introduces new concepts and terminology which:
- involve minor changes in 3.1 and 3.2
- completely redefine 5.2 (MODE READER)
- cause each command to be tagged "reader", "transit", and "general".

Please read at least 3.1 to 3.3 and 5.2 carefully. There's a load of
OUTSTANDING ISSUES that I'd like comments on. But I think this presentation
of the issue is far superior whether or not we retain the MODE READER
command. Tell me what you think.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From kaih at khms.westfalen.de  Sun Nov 14 05:13:00 2004
From: kaih at khms.westfalen.de (Kai Henningsen)
Date: Sun Nov 14 11:58:17 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <Pine.WNT.4.62.0411091456010.4140@Tomobiki-Cho.CAC.Washington.EDU>
Message-ID: <9Ks09n2Hw-B@khms.westfalen.de>

MRC@CAC.Washington.EDU (Mark Crispin)  wrote on 09.11.04 in <Pine.WNT.4.62.0411091456010.4140@Tomobiki-Cho.CAC.Washington.EDU>:

> That is a server implementation issue.  It is not something that should be
> inflicted on the client.
>
> NNTP sure stands out as being a protocol of, by, and for servers and
> server developers.  Perhaps the NNTP community would be happier if there
> weren't any clients.

That sounds to me more like a social attitude problem than like a  
technical argument.

Similar for the argument "MODE READER is only useful for INN, two other  
people implemented a broken version, and the fact that their version is  
broken (except that because one is pine's and therefore it cannot be  
broken, no matter that it is completely useless) means that INN is the one  
who needs to change".

Frankly, it's hard to imagine a less convincing way of argumentation.

MfG Kai
From kaih at khms.westfalen.de  Sun Nov 14 05:07:00 2004
From: kaih at khms.westfalen.de (Kai Henningsen)
Date: Sun Nov 14 11:58:22 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <E1CRkRX-000Pfb-5v@trinity.supernews.net>
Message-ID: <9Ks09krXw-B@khms.westfalen.de>

andrew@supernews.net (Andrew - Supernews)  wrote on 10.11.04 in <E1CRkRX-000Pfb-5v@trinity.supernews.net>:

> Well, that's the problem; your imagination isn't covering the
> real-world cases. The most common case, for example, is when you run a
> client directly on the server itself (either because you're the admin,
> or it's a single-user box, or the client is some automated script or a
> web interface or similar); by default INN gives transfer access to
> localhost. (On something like a multiuser shell box you'd disable
> that.)

[...]

> from the cache to the real server. Then there are probably more
> scenarios I've not thought of (Russ might have some).

UUCP needs transfer access from localhost. Well, actually, it's rnews that  
needs this; UUCP uses rnews. IIRC, however, nnrpd also uses rnews if innd  
can't currently accept messages - it puts those in rnews' in.coming queue  
directory and relies on a cronjob calling rnews -U to unspool them into  
innd via - of course - a transfer mode connection.

MfG Kai
From kaih at khms.westfalen.de  Sun Nov 14 05:21:00 2004
From: kaih at khms.westfalen.de (Kai Henningsen)
Date: Sun Nov 14 11:58:26 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <418EABE5.9030402@oceana.com>
Message-ID: <9Ks0AOvmw-B@khms.westfalen.de>

ken@oceana.com (Ken Murchison)  wrote on 07.11.04 in <418EABE5.9030402@oceana.com>:

> I've finally come to realize that NNTP is different from a sheer
> load/bandwidth standpoint, but from a protocol standpoint, its really no
> different from the other messaging protocols (other than the fact that
> transport and retrieval have been intermingled, which is really poor
> design).

It's a very similar problem to the SMTP submission/transfer intermingling  
(which is why there's now a separate submission protocol & port) - at  
least it avoids the mistake of SMTP/POP-or-IMAP of separating retrieval  
from submission. Now that is a truely bizarre architecture!

MfG Kai
From kaih at khms.westfalen.de  Sun Nov 14 06:36:00 2004
From: kaih at khms.westfalen.de (Kai Henningsen)
Date: Sun Nov 14 11:58:31 2004
Subject: [NNTP] LIST EXTENSIONS (again)
References: <87lldbncep.fsf@windlord.stanford.edu>
Message-ID: <9Ks0DneHw-B@khms.westfalen.de>

rra@stanford.edu (Russ Allbery)  wrote on 08.11.04 in <87lldbncep.fsf@windlord.stanford.edu>:

> What would you think of documenting port 433 for transit connections in
> the standard and saying that transit feeds SHOULD use port 433 instead of
> port 119?  That to me seems like the most viable way of eliminating MODE
> READER.

Something like the following:

* Document that 433 is the standard port for transfer
* Document that for historical reasons, very many servers use 119 just as
  for client access
* Document that some few servers use both client and transfer access on
  port 119, and that this case is SHOULD NOT, and that there's an old
  mechanism of "MODE READER" for coping with this, and that, *if* that is
  needed, that command needs to be the very first thing sent, and if the
  server doesn't like that command in that position, not send it at all.
* And document that standard servers might, to be compatible with
  pre-standard clients, want to support MODE READER on port 119 as a no-op
  compatibility command - they ought to accept it whenever any client
  command is allowed, for maximum compatibility.

* Modify INN to be able to have innd simultaneously listen on 119 and 433
  for migration purposes, with MODE READER not working on 433. Also make
  433 the default transfer port for new installs.

Open question: what should a modern INN in migration configuration do, and  
should that be documented - that is, a server that supports LIST  
EXTENSIONS but does have a combined transit/reader port while it hasn't  
yet mirated all transfer connections off to 433?

Possibly document a MODE_READER extension that asks for MODE READER and is  
documented purely for that case, with SHOULD NOT and so forth? Ok, let's  
spell that out:

# MODE_READER means if you want reader access, your very next move MUST be
  to issue MODE READER and reset everything you know. You really cannot
  have TLS running for that.

# Servers SHOULD NOT use this extension. It SHOULD NOT be used except
  while migrating existing transfer peers to 433.

# Pre-NNTPv2 Servers may need that functionality, or not (see above).

# It only ever affects port 119, never port 433.



Just to make sure to avoid confusion: this is port 433 "nnsp", not port  
563 "nntps" or "snntp" (NNTP over SSL) which ought to die.

>From port-numbers:

nntp            119/tcp    Network News Transfer Protocol
nntp            119/udp    Network News Transfer Protocol
#                          Phil Lapsley <phil@UCBARPA.BERKELEY.EDU>

nnsp            433/tcp    NNSP
nnsp            433/udp    NNSP
#                          Rob Robertson <rob@gangrene.berkeley.edu>

nntps           563/tcp    nntp protocol over TLS/SSL (was snntp)
nntps           563/udp    nntp protocol over TLS/SSL (was snntp)
#                          Kipp E.B. Hickman <kipp@netscape.com>


MfG Kai
From kaih at khms.westfalen.de  Sun Nov 14 07:32:00 2004
From: kaih at khms.westfalen.de (Kai Henningsen)
Date: Sun Nov 14 11:58:36 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <20041108142508.GB89554@finch-staff-1.thus.net>
References: <20041107093856.GA41423@finch-staff-1.thus.net>
	<022e01c4c4c1$64d465b0$0a01a8c0@isolution.nl>
	<022e01c4c4c1$64d465b0$0a01a8c0@isolution.nl>
	<20041108142508.GB89554@finch-staff-1.thus.net>
Message-ID: <9Ks0EjhXw-B@khms.westfalen.de>

clive@demon.net (Clive D.W. Feather)  wrote on 08.11.04 in <20041108142508.GB89554@finch-staff-1.thus.net>:

> Ruud H.G. van Tol said:
> >> Since this was our own, recent, invention I'm going to alter it to
> >> "MODE_READER"; we can consistently use underscores wherever we need to
> >> join two separate words into one.
> > Why can't that <401-response-extension-label> remain "MODE-READER"?
>
> Because we're permitting (in theory) an extension called MODE-READER.

And it's this thing. There's no conflict.

> I only used hyphen in the first place because we didn't used to permit
> hyphens in extension labels.

There should not be a syntactic difference here. That way lies madness.

MfG Kai
From kaih at khms.westfalen.de  Sun Nov 14 07:47:00 2004
From: kaih at khms.westfalen.de (Kai Henningsen)
Date: Sun Nov 14 11:58:39 2004
Subject: [NNTP] Capabilities in responses
References: <Pine.LNX.4.62.0411090832360.15653@shiva1.cac.washington.edu>
Message-ID: <9Ks0ExQ1w-B@khms.westfalen.de>

mrc@CAC.Washington.EDU (Mark Crispin)  wrote on 09.11.04 in <Pine.LNX.4.62.0411090832360.15653@shiva1.cac.washington.edu>:

> On Tue, 9 Nov 2004, Clive D.W. Feather wrote:
> >>> Our existing response code model doesn't have anywhere to insert
> >>> asynchronous messages from the server. It can't go in the free text area
> >>> for the reasons given above, so it needs to go somewhere else.
> >> What is so special about NNTP that it can not do exactly what IMAP and
> >> SMTP did?
> > What exactly was done, and what was the installed base?
>
> What is the installed base of SMTP, POP3, and IMAP?
>
> SMTP added extended response codes.  SMTP also requires that an ESMTP
> capable server include "ESMTP" somewhere in the greeting.

SMTP requires no such thing.

I was there when it was discussed and rejected; nevertheless I had a look  
at RFC 2821 to make sure it's not in there.

> POP3 added the APOP authentication token in the greeting.

One of the ugliest mechanisms I ever saw ...

> IMAP added status response codes, among which are capabilities in the
> greetings.

I'll not talk about that incredibly overcomplicated protocol.

> All of these protocols either have incredibly stupid designers who can not
> see the problems that are the NNTP designers see -- or just maybe the
> problems are not substantial enough to be of concern.

Or maybe some of them *did* see it.

> of doing what someone in the news community thought was "cleaner".  This
> is an ongoing problem; the news community has a dismal history of
> insisting upon reinventing wheels that are already long-invented and
> well-understood.

That is well-balanced by a consistent trend of the mail community to  
refuse to even consider where circumstances for news are plainly  
different, and the mail solution has serious problems for news.

MfG Kai
From kaih at khms.westfalen.de  Sun Nov 14 07:54:00 2004
From: kaih at khms.westfalen.de (Kai Henningsen)
Date: Sun Nov 14 11:58:42 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041111132734.GG16030@finch-staff-1.thus.net>
References: <Pine.LNX.4.62.0411041303590.29918@shiva1.cac.washington.edu>
	<87r7n1v7bx.fsf@windlord.stanford.edu>
	<41926E24.2010202@oceana.com> <41926E24.2010202@oceana.com>
	<20041111132734.GG16030@finch-staff-1.thus.net>
Message-ID: <9Ks0FUIXw-B@khms.westfalen.de>

clive@demon.net (Clive D.W. Feather)  wrote on 11.11.04 in <20041111132734.GG16030@finch-staff-1.thus.net>:

> Ken Murchison said:
> > As an aside, what, if any, legacy extensions should a server list via
> > LIST EXTENSIONS for backwards compatibility with existing clients?  Or
> > is the number of clients which use LIST EXTENSIONS too small to worry
> > about, especially if the current LIST EXTENSIONS output can't be trusted?
>
> My intent, when adding CAPABILITY, is to either remove LIST EXTENSIONS
> entirely or, for the benefit of existing clients, to require its output to
> be the extensions part of the CAPABILITY output. If that isn't clear,
> please wait for the draft.

But please use the plural: CAPABILITIES.

MfG Kai
From kaih at khms.westfalen.de  Sun Nov 14 08:00:00 2004
From: kaih at khms.westfalen.de (Kai Henningsen)
Date: Sun Nov 14 11:58:45 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041111165629.GG42609@finch-staff-1.thus.net>
References: <20041110083240.GR49664@finch-staff-1.thus.net>
	<20041111162223.GC42609@finch-staff-1.thus.net>
	<41939773.5090900@oceana.com> <41939773.5090900@oceana.com>
	<20041111165629.GG42609@finch-staff-1.thus.net>
Message-ID: <9Ks0Fv11w-B@khms.westfalen.de>

clive@demon.net (Clive D.W. Feather)  wrote on 11.11.04 in <20041111165629.GG42609@finch-staff-1.thus.net>:

> Ken Murchison said:
> >>>I did not say the above comment.  Please attribute your quotes correctly.
> >> Count the arrows. They were attributed correctly.
> > Nope.  The statement above was made by Andrew.
>
> Oh, good grief.
>
> In the above:
> >>>    is Mark
> >>     is Clive
> >      is Ken
> As far as I and many (most) Usenet posters are concerned, this is a correct
> attribution.

Nope.

The *correct* Usenet-style attribution involves not snipping out the names  
of the other authors in the first place; that's just rude, and you seem to  
do it consistently.

See how my reply starts with *two* attribution lines, and yours started  
with just one.

That's where all the trouble comes from.

>Stuff with one arrow is the attributed person; stuff with more
> than one is material that person quoted.

*This* part is correct. It's necessary, but not sufficient.

> Similarly, in the original post I attributed Mark because I was quoting his
> post, but some of the text in my post began ">>", because it was Mark
> quoting Andrew.

And you were at fault for snipping the line attributing it to Andrew.

> Happy now?

Not really.

MfG Kai
From rra at stanford.edu  Sun Nov 14 12:00:26 2004
From: rra at stanford.edu (Russ Allbery)
Date: Sun Nov 14 12:00:27 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <9Ks09krXw-B@khms.westfalen.de> (Kai Henningsen's message of
	"14 Nov 2004 15:07:00 +0200")
References: <E1CRkRX-000Pfb-5v@trinity.supernews.net>
	<E1CRkRX-000Pfb-5v@trinity.supernews.net>
	<9Ks09krXw-B@khms.westfalen.de>
Message-ID: <87lld4urol.fsf@windlord.stanford.edu>

Kai Henningsen <kaih@khms.westfalen.de> writes:

> UUCP needs transfer access from localhost. Well, actually, it's rnews
> that needs this; UUCP uses rnews. IIRC, however, nnrpd also uses rnews
> if innd can't currently accept messages - it puts those in rnews'
> in.coming queue directory and relies on a cronjob calling rnews -U to
> unspool them into innd via - of course - a transfer mode connection.

rnews (and nnrpd) normally both use the local Unix domain socket rather
than a regular localhost connection, although they do fall back on a
localhost connection if Unix domain sockets aren't available for some
reason.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From dsr at mail.lns.cornell.edu  Sun Nov 14 14:24:53 2004
From: dsr at mail.lns.cornell.edu (Dan Riley)
Date: Sun Nov 14 14:24:58 2004
Subject: [NNTP] LIST EXTENSIONS (again)
In-Reply-To: <9Ks0DneHw-B@khms.westfalen.de>
References: <87lldbncep.fsf@windlord.stanford.edu>
	<87lldbncep.fsf@windlord.stanford.edu> <9Ks0DneHw-B@khms.westfalen.de>
Message-ID: <shlld4cbm2.fsf@lnxcu9.lns.cornell.edu>

kaih@khms.westfalen.de (Kai Henningsen) writes:
> rra@stanford.edu (Russ Allbery)  wrote on 08.11.04 in
> <87lldbncep.fsf@windlord.stanford.edu>:
> > What would you think of documenting port 433 for transit connections in
> > the standard and saying that transit feeds SHOULD use port 433 instead of
> > port 119?  That to me seems like the most viable way of eliminating MODE
> > READER.

I'd hum for that.

> Something like the following:

I mostly agree with what Kai proposed--it's close to what I was
consider proposing.  I do have a few quibbles...

> * Document that some few servers use both client and transfer access on
>   port 119, and that this case is SHOULD NOT, and that there's an old
>   mechanism of "MODE READER" for coping with this, and that, *if* that is
>   needed, that command needs to be the very first thing sent, and if the
>   server doesn't like that command in that position, not send it at all.

Seems like a chicken/egg problem--how does the client know if the server
likes "MODE READER" or not, if it needs to be the very first thing sent?
I'd prefer:

 * Clients SHOULD NOT send an unsolicited "MODE READER" by default
 * Clients MAY offer an option to send an unsolicited "MODE READER"
 * Clients MAY send "MODE READER" in response to specific 401 and
   502 errors
 * Clients SHOULD send "MODE READER" in response to an advertised
   "MODE READER" capability or extension.

> * And document that standard servers might, to be compatible with
>   pre-standard clients, want to support MODE READER on port 119 as a no-op
>   compatibility command - they ought to accept it whenever any client
>   command is allowed, for maximum compatibility.

At first I liked "MODE READER" as a noop, but on further thought I
think it's a bad idea.  Client issues a "GROUP" command, gets a 502,
issues a "MODE READER", and gets success--how does it interpret that?
Has something changed that means a reader command might succeed, or
hasn't it?  I'd like to hear client authors weigh in on this, but my
current prejudice is that encouraging "MODE READER" as a noop is a
mistake.

I would add:

 * The interaction between "MODE READER" and "AUTHINFO" or "STARTTLS"
   is *unspecified*

which I believe is the only accurate characterization of existing
practice.

> # MODE_READER means if you want reader access, your very next move MUST be
>   to issue MODE READER and reset everything you know. You really cannot
>   have TLS running for that.
> 
> # Servers SHOULD NOT use this extension. It SHOULD NOT be used except
>   while migrating existing transfer peers to 433.

I dislike the way this combines a client MUST with a server SHOULD
NOT.  I'd rather make issuing a "MODE READER" a SHOULD or even a MAY,
not a MUST.

-- 
	  The 10/8 that can be pinged is not the true 10/8.
From ken at oceana.com  Tue Nov 16 09:15:18 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Nov 16 09:14:19 2004
Subject: [NNTP] Extension docs snapshots
Message-ID: <419A35A6.9050703@oceana.com>

Per Clive's request, here are the current extensions docs with 
(hopefully) all issues discussed on the list resolved.  Once the LIST 
EXTENSIONS/CAPABILITY issue is settled, I will update the docs 
appropriately.

http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-authinfo-06pre1.txt
http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-streaming-03pre1.txt
http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-tls-nntp-04pre1.txt

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Wed Nov 17 02:23:57 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 17 02:24:15 2004
Subject: [NNTP] Notes on auxiliary documents
In-Reply-To: <I72Lrx.JpC@clerew.man.ac.uk>
References: <20041111095846.GA97891@finch-staff-1.thus.net>
	<4193952E.7030307@oceana.com> <I72Lrx.JpC@clerew.man.ac.uk>
Message-ID: <20041117102357.GC67699@finch-staff-1.thus.net>

Charles Lindsey said:
>>> Sections 2.4.2 and 6: we say that the server MUST discard all knowledge. 
>>> Does this include NNTP state?

I see that the current wording (06pre1) says that it does.

> Suppose you are in Group A, happily reading articles. Suppose you now
> encounter an article cross-posted to the restricted group B. The server
> invites you to authenticate, which you do. You would now like to be in the
> same NNTP state as before, still in Group A with the crossposted article
> still the current article, so you can now read it.

Very true. This suggests that the state should *not* be reset.

On the other hand, all the client needs to do is to re-issue the GROUP and
ARTICLE commands to get back to where it was. And this ensures that the
state really is what the client thought, even if someone was spoofing the
connection previously.

Um, if the ARTICLE fails for some other reason the current article number
will be wrong. There's no way to set it in this case; there are always edge
cases that break things.

> OTOH, what happens if you are unable to authenticate? Is there some way
> that you can remain in the same group, ignore that article, and continue
> reading the rest of the articles in the group?

If authentication fails, the server state should be unaffected; you ignore
the 480 error and just issue a NEXT (or whatever).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Wed Nov 17 02:52:10 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Nov 17 02:52:17 2004
Subject: [NNTP] Extension docs snapshots
In-Reply-To: <419A35A6.9050703@oceana.com>
References: <419A35A6.9050703@oceana.com>
Message-ID: <20041117105210.GE67699@finch-staff-1.thus.net>

Ken Murchison said:
> Per Clive's request, here are the current extensions docs with 
> (hopefully) all issues discussed on the list resolved.  Once the LIST 
> EXTENSIONS/CAPABILITY issue is settled, I will update the docs 
> appropriately.
> 
> http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-authinfo-06pre1.txt
> http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-streaming-03pre1.txt
> http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-tls-nntp-04pre1.txt

Thanks for these.

authinfo, section 1, para 1, s/be used/been used/

authinfo, section 3.1, last para,
  s/and CRLF as the/and CRLF, both exclusive, as the/

streaming, section 2.3.1, why is MODE STREAM "MUST NOT be pipelined"? I
understand the reasoning with MODE READER, but I don't understand it here
(of course, the client needs to be careful what it does immediately
afterwards, but if it pipelined a sequence of CHECKs would it hurt?).

streaming, section 2.3.2, para 1: make it clear that a 501 is allowed if an
argument is given, and that the server state must not be affected by this
command. So something like:
    ... to the MODE STREAM command (or 501 if an argument is given).
    The MODE STREAM command MUST NOT have any other effect.


Generic issues:
* With the agreed change on command name and extension label syntax, the
extension labels are now case-insensitive. So the hex sequences in the
formal grammar can be replaced by quoted strings.

* I've seen *NO* feedback on 25-pre3, which rewrites the MODE READER issue
in terms of "transit" and "reader" connections. If the consensus is to
accept this change, then all these extension documents will need
corresponding changes:
  - each command needs labelling as "transit", "reader", or "general";
  - the bits about "can be used before and after MODE READER" can either
    be dropped or else become "can be used on transit-only servers" or
    "can be used on reader-only servers".

I've just added another bullet point to the "what is needed in an extension
description":
  - how the use of MODE READER on a mode-switching server interacts
    with the extension.
This is relevant for AUTHINFO and STARTTLS; both say that the commands can
be used before and after MODE READER, but neither explains what happens if
MODE READER is issued on a secured connection.

* There will, of course, be issues to resolve when CAPABILITY is added
(which will be the next draft I issue).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
