Thread View: news.software.nntp
6 messages
6 total messages
Started by Julien ÉLIE
Wed, 03 Sep 2008 19:21
Problem with IHAVE when authenticated
Author: Julien ÉLIE
Date: Wed, 03 Sep 2008 19:21
Date: Wed, 03 Sep 2008 19:21
34 lines
2524 bytes
2524 bytes
Hi, In RFC 3977, I read: Except as an effect of the MODE READER command (Section 5.3) on a mode-switching server, once a server advertises either or both of the IHAVE or READER capabilities, it MUST continue to advertise them for the entire session. There is a problem if IHAVE is by default authorized but not allowed in the rights the user is granted after authentication with AUTHINFO USER... I think this paragraph is strange. I know that news clients should not use IHAVE (contrary to news servers) but even with that, it is strange not to allow IHAVE to disappear after AUTHINFO. Nothing is specified in RFC 4643 (AUTHINFO) as for the possibility to drop IHAVE after having successfully authenticated. The problem with AUTHINFO also occurs with IHAVE with a transit server: once authenticated, we could allow only streaming! In order to comply with the protocol, I understand that in the described case, we have to advertise the IHAVE capability but reject every article posted with IHAVE. Do we have to use 435 (unwanted article) or 502? (Though 502 seems weird.) Still, it does not thrill me to implement such a behaviour. -- Julien ÉLIE « Vtilitas publica praeferenda est priuatorum contractibus. »
Re: Problem with IHAVE when authenticated
Author: Russ Allbery
Date: Wed, 03 Sep 2008 19:49
Date: Wed, 03 Sep 2008 19:49
36 lines
2615 bytes
2615 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> In RFC 3977, I read:
>
> Except as an effect of the MODE READER command (Section 5.3) on a
> mode-switching server, once a server advertises either or both of the
> IHAVE or READER capabilities, it MUST continue to advertise them for
> the entire session.
>
> There is a problem if IHAVE is by default authorized but not allowed in
> the rights the user is granted after authentication with AUTHINFO USER...
That would make it hard to handle that case, but when would that ever
happen? It's highly unusual for capabilities to be *removed* by
authentication. You could certainly design an INN configuration that did
this, but I don't understand why anyone would do so.
> The problem with AUTHINFO also occurs with IHAVE with a transit server:
> once authenticated, we could allow only streaming!
Here too, why would you do that? It's certainly *possible*, but it
doesn't seem to make much sense.
> In order to comply with the protocol, I understand that in the described
> case, we have to advertise the IHAVE capability but reject every article
> posted with IHAVE. Do we have to use 435 (unwanted article) or 502?
> (Though 502 seems weird.)
You should not use 435 in this case if the same article would be accepted
some other way, so it would probably be 502.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Problem with IHAVE when authenticated
Author: Julien ÉLIE
Date: Wed, 03 Sep 2008 20:13
Date: Wed, 03 Sep 2008 20:13
35 lines
2769 bytes
2769 bytes
Hi Russ, >> Except as an effect of the MODE READER command (Section 5.3) on a >> mode-switching server, once a server advertises either or both of the >> IHAVE or READER capabilities, it MUST continue to advertise them for >> the entire session. >> >> There is a problem if IHAVE is by default authorized but not allowed in >> the rights the user is granted after authentication with AUTHINFO USER... > > That would make it hard to handle that case, but when would that ever > happen? It's highly unusual for capabilities to be *removed* by > authentication. I agree that such a case probably will not occur. But I do not understand why only these two ones are special. If POST is advertised, why would it disappear? (The same thing can be said about LIST, NEWNEWS, OVER, HDR.) >> The problem with AUTHINFO also occurs with IHAVE with a transit server: >> once authenticated, we could allow only streaming! > > Here too, why would you do that? It's certainly *possible*, but it > doesn't seem to make much sense. No reason why I would do that. But then, if it is established that IHAVE will always be here if advertised, no need to specify that it MUST be advertised in particular... -- Julien ÉLIE « -- Ils devraient pourtant savoir que le sanglier c'est sacré pour nous. -- Et toi, tu as une sacrée façon de l'adorer. » (Astérix)
Re: Problem with IHAVE when authenticated
Author: Russ Allbery
Date: Wed, 03 Sep 2008 22:57
Date: Wed, 03 Sep 2008 22:57
29 lines
2410 bytes
2410 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Hi Russ,
>
>>> Except as an effect of the MODE READER command (Section 5.3) on a
>>> mode-switching server, once a server advertises either or both of the
>>> IHAVE or READER capabilities, it MUST continue to advertise them for
>>> the entire session.
>>>
>>> There is a problem if IHAVE is by default authorized but not allowed in
>>> the rights the user is granted after authentication with AUTHINFO USER...
>>
>> That would make it hard to handle that case, but when would that ever
>> happen? It's highly unusual for capabilities to be *removed* by
>> authentication.
>
> I agree that such a case probably will not occur. But I do not understand
> why only these two ones are special. If POST is advertised, why would it
> disappear? (The same thing can be said about LIST, NEWNEWS, OVER, HDR.)
Yeah, I'm not really sure why those are special, although this is ringing
a vague bell. That language was added for some specific reason, I'm
fairly sure. I just don't recall what that reason was.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Problem with IHAVE when authenticated
Author: Julien ÉLIE
Date: Thu, 04 Sep 2008 06:13
Date: Thu, 04 Sep 2008 06:13
60 lines
3608 bytes
3608 bytes
Hello Russ,
>>>> Except as an effect of the MODE READER command (Section 5.3) on a
>>>> mode-switching server, once a server advertises either or both of the
>>>> IHAVE or READER capabilities, it MUST continue to advertise them for
>>>> the entire session.
>
> Yeah, I'm not really sure why those are special, although this is ringing
> a vague bell. That language was added for some specific reason, I'm
> fairly sure. I just don't recall what that reason was.
It was after one of your question :)
http://osdir.com/ml/ietf.nntp/2005-02/msg00017.html
http://osdir.com/ml/ietf.nntp/2005-02/msg00019.html
%%%
> Might it not advertise only an authentication capability and nothing else
> until after authentication?
[...] You're quite right.
> I'm not sure the best way to rephrase it taking into account capabilities
> that may not be available until after authentication.
This text derives from the earlier idea that a server was reader-only,
transit-only, both, or mode-switching. After all the changes, that's how it
ended up.
%%%
However, the change afterwads was not that accurate:
- A server MUST advertise either the IHAVE capability or the READER
- capability (or both). Except as an effect of the MODE READER command
- (see below), it MUST NOT change which of these it advertises during
- a session.
+ Except as an effect of the MODE READER command on a mode-switching
+ server, once a server advertises either or both of the IHAVE or READER
+ capabilities, it MUST NOT cease to advertise them later in the session.
o Transit mode, which applies after the initial connection:
* it MUST advertise the MODE-READER capability;
- * it MUST advertise the IHAVE capability;
- * it MUST not advertise the READER capability unless prefixed with
- the -MODE-READER modifier;
+ * it MUST NOT advertise the READER capability.
[...]
The wording took into account your remark with the drop of the first MUST
but the second one (the MUST NOT) was also concerned...
--
Julien ÉLIE
« J'attends vos idées... Parlez. Et toi aussi mon fils. » (César)
Re: Problem with IHAVE when authenticated
Author: Russ Allbery
Date: Thu, 04 Sep 2008 21:56
Date: Thu, 04 Sep 2008 21:56
33 lines
2687 bytes
2687 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> However, the change afterwads was not that accurate:
> - A server MUST advertise either the IHAVE capability or the READER
> - capability (or both). Except as an effect of the MODE READER command
> - (see below), it MUST NOT change which of these it advertises during
> - a session.
> + Except as an effect of the MODE READER command on a mode-switching
> + server, once a server advertises either or both of the IHAVE or READER
> + capabilities, it MUST NOT cease to advertise them later in the session.
>
> o Transit mode, which applies after the initial connection:
> * it MUST advertise the MODE-READER capability;
> - * it MUST advertise the IHAVE capability;
> - * it MUST not advertise the READER capability unless prefixed with
> - the -MODE-READER modifier;
> + * it MUST NOT advertise the READER capability.
> [...]
> The wording took into account your remark with the drop of the first
> MUST but the second one (the MUST NOT) was also concerned...
Yeah. I think we were coming from a place of seeing servers along the
lines of what already existed rather than taking a step back and looking
at all of the possible combinations that you could implement in the
abstract.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads