Thread View: news.software.nntp
30 messages
30 total messages
Started by Andrew Gierth
Sat, 26 Feb 2000 00:00
[NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Andrew Gierth
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
161 lines
6332 bytes
6332 bytes
[This is one of a series of extracts from draft-ietf-nntpext-base-09.txt
which is available in full from the usual Internet-Draft archives.]
7. The GREETING Step
7.1 Initial Connection
There is no keyword presented by the client upon initial
connection to the server. The server MUST present an
appropriate response code as a greeting to the client. This
response informs the client about what steps the client should
take to reach the news exchange step.
The server MUST present a 200 greeting code if the client is
authorized to post articles though the use of the POST keyword
on this server.
The server MUST present a 201 greeting code if the client is
not authorized to post articles using the POST keyword.
The server MUST present a 502 greeting code if the client is
not permitted under any circumstances to interact with the
server. The server should immediately close the connection
with the client after presenting this code.
In all other cases, the server MUST present a 400 greeting
code.
7.1.1 Initial Connection Example
Example of a normal connection from an authorized client
[C] Initial TCP connection completed
Barber [Page 7]
INTERNET DRAFT November 1999
[S] 200 NNTP Service Ready, posting permitted
Client can send commands at this point. In this example, the
client jumps directly to the conclusion step (See section
10.1).
[C] QUIT
[S] 205 NNTP Service exits normally
Example of a normal connection from an unauthorized client
[C] Initial TCP connection completed
[S] 502 NNTP Service Unavailable
At this point, the server closes the TCP connection.
Example of a normal connection from an authorized client that
is not permitted to post
[C] Initial TCP connection completed
[S] 201 NNTP Service Ready, posting prohibited
Client can send commands at this point. In this example, the
client jumps directly to the conclusion step (See section
10.1).
[C] QUIT
[S] 205 NNTP Service exits normally
Example of a connection from any client where the server is
unable to provide service
[C] Initial TCP connection completed
[S] 400 NNTP Service temporarily unavailable
At this point, the server closes the TCP connection.
7.1.2 MODE READER
MODE READER
Barber [Page 8]
INTERNET DRAFT November 1999
MODE READER MAY be used by the client to indicate to the
server that it is a news reading client. This command may be
entered at any time. The server must present a greeting code
(as described in section 7.1.2.1) appropriate to the server's
ability to provide service to this client in this mode.
7.1.2.1 Responses
200 Hello, you can post
201 Hello, you can't post
400 Service temporarily unavailable
502 Service unavailable
7.1.2.2 MODE READER Examples
Example of use of the MODE READER command by an authorized
client
[C] MODE READER
[S] 200 NNTP Service Ready, posting permitted
Client can send commands at this point. In this example, the
client jumps directly to the conclusion step (See section
10.1).
[C] QUIT
[S] 205 NNTP Service exits normally
Example of use of MODE READER by a client not authorized to
receive service from the server as a news reader
[C] MODE READER
[S] 502 NNTP Service Unavailable
At this point, the server closes the TCP connection.
Example of a normal connection from an authorized client that
is not permitted to post
[C] MODE READER
[S] 201 NNTP Service Ready, posting prohibited
Barber [Page 9]
INTERNET DRAFT November 1999
Client can send commands at this point. In this example, the
client jumps directly to the conclusion step (See section
10.1).
[C] QUIT
[S] 205 NNTP Service exits normally
Example of a connection from any client where the server is
unable to provide news reader service
[C] MODE READER
[S] 400 NNTP Service temporarily unavailable
At this point, the server closes the TCP connection.
--
Andrew.
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Russ Allbery
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
63 lines
2840 bytes
2840 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes: > 7. The GREETING Step > 7.1 Initial Connection [...] > In all other cases, the server MUST present a 400 greeting > code. It's not clear whether a 400 response to the greeting means that the server will be closing the connection, given this language. The sole example shows that, but it should be specified. > Example of a connection from any client where the server is > unable to provide service > [C] Initial TCP connection completed > [S] 400 NNTP Service temporarily unavailable > At this point, the server closes the TCP connection. [...] > MODE READER MAY be used by the client to indicate to the > server that it is a news reading client. This command may be > entered at any time. The server must present a greeting code > (as described in section 7.1.2.1) appropriate to the server's > ability to provide service to this client in this mode. As discussed in news.software.nntp, if discussion of pipelining is added to this draft it should be noted that MODE READER cannot be pipelined in several existing implementations. > Example of use of MODE READER by a client not authorized to > receive service from the server as a news reader > [C] MODE READER > [S] 502 NNTP Service Unavailable > At this point, the server closes the TCP connection. Does a 502 response always indicate that the server will close the connection? > Example of a connection from any client where the server is > unable to provide news reader service > [C] MODE READER > [S] 400 NNTP Service temporarily unavailable > At this point, the server closes the TCP connection. Same question here. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: J. Moreno
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
30 lines
2069 bytes
2069 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > > 7.1.2 MODE READER > > > MODE READER > > > Barber [Page 8] > > > INTERNET DRAFT November 1999 > > > MODE READER MAY be used by the client to indicate to the > > server that it is a news reading client. This command may be > > entered at any time. The server must present a greeting code > > (as described in section 7.1.2.1) appropriate to the server's > > ability to provide service to this client in this mode. > > My suggestion here has always been that the "MAY be used by the client" > should instead be "SHOULD be used by the client". If MODE READER is supposed to put the server into a state where IHAVE or other commands are not going to be accepted, then that should be mentioned. (And for logical completion there should be a way to switch back, even if the server isn't going to accept commands in that mode from this, uhm, user). -- J. B. Moreno Pessimist: Half empty Optimist: Half full Engineer: Wrong size glass
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Andrew Gierth
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
22 lines
1610 bytes
1610 bytes
> 7.1.2 MODE READER > MODE READER > Barber [Page 8] > INTERNET DRAFT November 1999 > MODE READER MAY be used by the client to indicate to the > server that it is a news reading client. This command may be > entered at any time. The server must present a greeting code > (as described in section 7.1.2.1) appropriate to the server's > ability to provide service to this client in this mode. My suggestion here has always been that the "MAY be used by the client" should instead be "SHOULD be used by the client". -- Andrew.
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Russ Allbery
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
14 lines
1290 bytes
1290 bytes
Curt Welch <curt@kcwc.com> writes: > What's needed for the server is: "The server MUST NOT assume a client > will use this, and MUST NOT require a client to use this." I don't think that ruling out the implementation used by both INN and the reference NNTP implementation in an official standard is going to go very far unless you provide some sort of alternative, such as standardizing a separate port for transfer connections. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Russ Allbery
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
56 lines
3321 bytes
3321 bytes
Curt Welch <curt@kcwc.com> writes: > What's common practice these days? I'm currently returning a 200 code > for an unauthenticated connection, but once again, I don't know if I > made that up or followed the practice of some other server. INN appears to send 200 for unauthenticated connections that need to then authenticate. > With these codes to pick from, (and not reviewing common practice > first), I'd say that 502 needs to be changed to read "the client is not > currently permitted to connect". This would include for example cases > where the server was just blocking connections as a temporary condition > (server paused, or load too high etc). As well as the simple "you > aren't authorized to connect here". Because even that last case is > something that may change in the future. So 502 MUST be used for all > cases where the server will close the connection after the response. > I can't think of why 400 should be here. One of the places where the NNTP return codes are mostly broken into classes is 400 for temporary errors vs. 500 for permanent errors. Returning 502 says that as best as the server can tell, you'll *never* be allowed to connect. 400 is for some sort of temporary failure. > If I was writing a client, what would I do for a 400 response? That should be clarified. In practice, I would expect the server to close the connection following a 400 response. > And then 200 would be the default greeting for all other states. And > the only thing a client knows about it's ability to use the POST command > with this connetion is that it MIGHT work. It would really be nice to be able to distinguish between "already authenticated" and "need to authenticate" so that clients don't have to keep additional state and be prepared to send authentication information when a command is rejected. > And I think it oppens the issue for some conditions where the server > won't be able to figure out which they should send. For example, if the > server normally controls access by referencing a database, but the > databse is currently down, does it return 400 responses to everyone even > though for some, the problem isn't temporary, or 500 even though for > some, the problem isn't perminate. Every other protocol I'm aware of assumes temporary in this sort of case. I think distinguising between temporary and permanent errors where possible is a good idea, but I guess I don't feel that overly strong about it. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Russ Allbery
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
27 lines
1952 bytes
1952 bytes
Curt Welch <curt@kcwc.com> writes: > "J. Moreno" <planb@newsreaders.com> wrote: >> (And for logical completion there should be a way to switch back, even >> if the server isn't going to accept commands in that mode from this, >> uhm, user). > There is no way to go home Dorthy. Not only is it unimplemented in INN, > it's imposible to implement (well impossible is too strong - lets just > say it might be easier to rewrite INN from the ground up than it is to > fix that). Hardly. In the presence of file descriptor passing, it's not even particularly hard. It would take someone experienced with Unix IPC all of a couple of days to write, at a guess, for a proof of concept. Dealing with some of the authentication issues would be a little tricky, but doable. nnrpd already has a local domain socket connection to innd; all you have to do is add a new command to that protocol that passes a client file descriptor back to the INN process to put into its main processing loop after associating authentication information to it. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Jeremy
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
35 lines
2056 bytes
2056 bytes
Curt Welch <curt@kcwc.com> wrote: >> Wouldn't this require the server to magically know whether a client is >> a reader or a feeder? > > Well don't they all do that now execpt in the one rare case where a > client connects to an inn server from a machine which also feeds that > server news? "Rare" only means "insignificant" if you're not in the rare case. If my newsreader didn't send MODE READER, I wouldn't be able to read from my own server. I would have to configure it to listen on 433 for feeds, and I have no other reason to do that, so why should I have to go to the trouble (especially since it's non-standard at this point) just because you don't like MODE READER? > What I feel is the "right" thing to do in the RFC is to tell all > future news _server_ authors to "please, don't build a server that > requires the client to send you a MODE READER command." That's > what I was trying to do with that wording. But this rules out having one small server with one address and port. If you can't require MODE READER, you can't have a server like that anymore. > And if we need to standardize the use of the new port for feeding > to make people feel happy with that approach, then I think we should > do that. That's the only way it would be possible. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Russ Allbery
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
30 lines
2057 bytes
2057 bytes
Curt Welch <curt@kcwc.com> writes: > Russ Allbery <rra@stanford.edu> wrote: >> Curt Welch <curt@kcwc.com> writes: >>> What's needed for the server is: "The server MUST NOT assume a client >>> will use this, and MUST NOT require a client to use this." >> I don't think that ruling out the implementation used by both INN and >> the reference NNTP implementation > The reference NNTP implementation uses MODE READER also? I didn't > realize that. I thought we were talking about it only in the context > that it forks a process on POST and therfore has the no-piplieing issue > to deal with there. I thought I had some vague memory that it did, but as I don't have even the source around anywhere at present, I'm probably wrong. Anyway, I'm all for putting the whole idea of running both services on the same port behind us if we can standardize a separate port for transit. It's certainly conceptually simpler, and I can't think of any benefits gained from having them both on the same port. It'll cause some temporary pain with firewall configuration, but that shouldn't be too much of an issue. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
50 lines
3203 bytes
3203 bytes
Jeremy <bofh@netscum.dk> wrote: > Curt Welch <curt@kcwc.com> wrote: > > What I feel is the "right" thing to do in the RFC is to tell all > > future news _server_ authors to "please, don't build a server that > > requires the client to send you a MODE READER command." That's > > what I was trying to do with that wording. > > But this rules out having one small server with one address and port. I don't see that at all. My server works fine like that without MODE READER so no, it doesn't rule it out at all. It's a simple matter to build a new server which does both on the same port (and in the same process). And if you have a split design (feed in one program, read in another) like inn, as long as you can identify the readers from the feeders by IP address, even that all works fine without the need for MODE READERS. And, if you really really wanted to build a split process design server, and run them on the same port, and support feeds and readers from some of the same IP addresses, you could still make it work by having the feed processes fork the reader process the first time it saw one of the READER commands. It then passes any buffered data from the stream off to the reader (open a second pipe to do that a start up) and it all works fine. No pipeline restrictions and no MODE READER command. All invisible to the the client and we have a nice clean NNTP with none of this MODE READER nonsense (at least moving forward). > If you can't require MODE READER, you can't have a server like that > anymore. You do understand that in the paragraph you quoted, I was only talking about how new _servers_ would be required not to require it. We can continue to require clients to send it in the RFC. SO, on top of all this, even with everyone else in the world working by the new RFC, someone could still build or set up a "new" server which "required" that the client send the MODE READER command to work. It would be out of spec, but it would work, so it could still be done. But most important, why would using two ports be a problem for anyone? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
138 lines
7148 bytes
7148 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > [This is one of a series of extracts from draft-ietf-nntpext-base-09.txt > which is available in full from the usual Internet-Draft archives.] > > 7. The GREETING Step > > 7.1 Initial Connection > > There is no keyword presented by the client upon initial > connection to the server. The server MUST present an > appropriate response code as a greeting to the client. This > response informs the client about what steps the client > should take to reach the news exchange step. > > The server MUST present a 200 greeting code if the client is > authorized to post articles though the use of the POST > keyword on this server. > > The server MUST present a 201 greeting code if the client is > not authorized to post articles using the POST keyword. > > The server MUST present a 502 greeting code if the client is > not permitted under any circumstances to interact with the > server. The server should immediately close the connection > with the client after presenting this code. > > In all other cases, the server MUST present a 400 greeting > code. This leaves it very unclear what the server should present if the client is not currently able to POST, but may be able to post after they authenticate themselves. 201 - because they can't post now? Or 200 because they can post if they can authenticate, but the need for that may not show up until the client tries the POST command, so we don't want to say 201 here and make the client think it shouldn't even try the post command, or 400 because this really is an "OTHER" case, but it's not really an error, so does 400 make sense???????? This is just so typical of the confusion that happens when you try to write a real-world server or client with these RFCs. You just can't do it with access to a few "real" servers, and that's just wrong. What's common practice these days? I'm currently returning a 200 code for an unauthenticated connection, but once again, I don't know if I made that up or followed the practice of some other server. With these codes to pick from, (and not reviewing common practice first), I'd say that 502 needs to be changed to read "the client is not currently permitted to connect". This would include for example cases where the server was just blocking connections as a temporary condition (server paused, or load too high etc). As well as the simple "you aren't authorized to connect here". Because even that last case is something that may change in the future. So 502 MUST be used for all cases where the server will close the connection after the response. I can't think of why 400 should be here. If I was writing a client, what would I do for a 400 response? Since it's undefined, but the server has given me a connection, then the only thing I can do as a client is to proceed. So how is this any different than a 200 or 201 from the point of view of a client? If 400 isn't used in common practice for something today, I'd sugest it be dropped as a possible greeting. If it is used in common practice for something, I'd suggest we define it as such here. Then I'd define 201 as a mode meaning "You have read access, but you will NEVER be able to use POST with this connection no matter how many MODE or AUTHINFO commands you send, etc.". And then 200 would be the default greeting for all other states. And the only thing a client knows about it's ability to use the POST command with this connetion is that it MIGHT work. So, with a 502 response, the client knows it can't access the server and doesn't bother to try again -- or at least not anytime soon. With a 201 response, the client knows it should tell the user that he CAN NOT post to this server, and that it is reasobable to block the POST commands/buttons on the interface because the POST command will NEVER work for the connection. With the 200 response, the client can't tell anything about the connection yet and should just assume that anything in the RFC might work. > Example of a connection from any client where the server is > unable to provide service > > [C] Initial TCP connection completed > > [S] 400 NNTP Service temporarily unavailable > > At this point, the server closes the TCP connection. Ok, so looking at the example, It seems that someone thinks 400 should be a "you can't connect now, but maybe later" response. That's very different from "all other cases" as defined above. And the "disconnect after the response" is totally undocumented above. In no case should any example section add information or redefine something like this has here. I'd argue however, that even though this definition of the 400 code makes more sense than the one above, it really isn't needed. In both cases, the client is really forced to do the same thing, i.e. give up and maybe try again later. And in both cases the client should show the text of the response to the user. And I think it oppens the issue for some conditions where the server won't be able to figure out which they should send. For example, if the server normally controls access by referencing a database, but the databse is currently down, does it return 400 responses to everyone even though for some, the problem isn't temporary, or 500 even though for some, the problem isn't perminate. I think since the client is likey not to behave any differently on a 400 vs a 500 code, that there's really no point in having both. Is there any current practice that would defend the use of both of these? And BTW, if 400 is going to drop the connection, it needs to always do that and it should be included in the documentation above and not just in the examples. > 7.1.2 MODE READER > > MODE READER I don't have the energy to deal with this right now :). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
39 lines
2515 bytes
2515 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > > 7.1.2 MODE READER > > > MODE READER > > > Barber [Page > > 8] > > > INTERNET DRAFT November 1999 > > > MODE READER MAY be used by the client to indicate to the > > server that it is a news reading client. This command may > > be entered at any time. The server must present a greeting > > code (as described in section 7.1.2.1) appropriate to the > > server's ability to provide service to this client in this > > mode. > > My suggestion here has always been that the "MAY be used by the client" > should instead be "SHOULD be used by the client". I think it simply needs to read: "MODE READER is used by...". And then go on to explain why the command is here and why most clients use it, and then leave it up to the client author to figure out for themself if he wants to use it. It's very important to anyone writing a news client to understand why this command is in the RFC. As written, no one would have a clue as to why this is here - or most likely, their guess and their code would be wrong after reading this. I think the "server must" is worded wrong as well in regard to the response codes. What's needed for the server is: "The server MUST NOT assume a client will use this, and MUST NOT require a client to use this." -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Russ Allbery
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
19 lines
1435 bytes
1435 bytes
Curt Welch <curt@kcwc.com> writes: > Well don't they all do that now execpt in the one rare case where a > client connects to an inn server from a machine which also feeds that > server news? While this is rare, it's also not unheard of, and you *do* have to deal with this case in some fashion or another. > And if we need to standardize the use of the new port for feeding to > make people feel happy with that approach, then I think we should do > that. It's certainly the cleanest approach. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Andrew Gierth
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
24 lines
1806 bytes
1806 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: >> I don't think that ruling out the implementation used by both INN >> and the reference NNTP implementation Curt> The reference NNTP implementation uses MODE READER also? No. (It doesn't need to; it has almost no work to do when handling IHAVE, it either spawns rnews or just dumps the incoming article in a batch file. As it's neither maintaining the spool nor handling outgoing feeds, there is almost no transfer-mode code required.) Curt> I didn't realize that. I thought we were talking about it only Curt> in the context that it forks a process on POST and therfore has Curt> the no-piplieing issue to deal with there. That is the only pipelining issue I'm aware of with it. -- Andrew.
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
32 lines
2179 bytes
2179 bytes
Jeremy <bofh@netscum.dk> wrote: > Curt Welch <curt@kcwc.com> wrote: > > > What's needed for the server is: "The server MUST NOT assume a client > > will use this, and MUST NOT require a client to use this." > > Wouldn't this require the server to magically know whether a client is a > reader or a feeder? Well don't they all do that now execpt in the one rare case where a client connects to an inn server from a machine which also feeds that server news? What I feel is the "right" thing to do in the RFC is to tell all future news _server_ authors to "please, don't build a server that requires the client to send you a MODE READER command." That's what I was trying to do with that wording. I don't mind if the RFC tells all _client_ authors to "Please, send this command anyway even if new servers don't need it. The world will be a better place if you do that." It's sometimes hard to say both those things in the language commonly used in the RFC. And if we need to standardize the use of the new port for feeding to make people feel happy with that approach, then I think we should do that. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
86 lines
4517 bytes
4517 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > It would really be nice to be able to distinguish between "already > authenticated" and "need to authenticate" so that clients don't have to > keep additional state and be prepared to send authentication information > when a command is rejected. The natural way to do it would be with a 4xx code, but I just don't think we have that option at this point. To many clients I suspect would interpret any code besides 200 or 201 here as an error. I've had thoughts that maybe a command which lists all the currently "useable" commands would be useful for cases like this (and for feeder vs reader mode for example). Something like the new LIST EXTENSIONS, but it would instead be LIST COMMANDS (HELP is almost this in an informal way). It would be required to list only those commands which are currently available for the given authentication level. But then the job of a reader trying to figure out if it "should" authtenticate given that list is not an easy one. Which command do you look for? What if post worked for unauthenticated users but only for a local group? And to more complex issue of a command that trys to check "all" permissions can't just be command line based. For example, I'm looking at adding permissions to what control a users ability to post control messages other than cancles. And that can't be indicated by just listing commands. You have to go to the more abstract concepts like the LIST EXTENSIONS. I'm guessing that if we want a client to know that it MUST authenticate, that we will have to add a new command that the client will use to ask the server that question. Maybe a simple and logical place to put that is in the AUTHINFO command. AUTHINFO CHECK returns 480 Must authenticate if the client currently has "no" permissions. Maybe simple feed/read/post permissions should be included here? So, for a session which must be authenticated before anything else can happen: AUTHINFO CHECK 480 Authentication required Or for a session which currently has some permissions, in this example read and post: AUTHINFO CHECK 200 RP And of course for as server which doesn't implement AUTHINFO CHECK: AUTHINFO CHECK 5xx And then of course, all this gets put off until someone finds a solution to the AUTHINFO standard. > > And I think it oppens the issue for some conditions where the server > > won't be able to figure out which they should send. For example, if > > the server normally controls access by referencing a database, but the > > databse is currently down, does it return 400 responses to everyone > > even though for some, the problem isn't temporary, or 500 even though > > for some, the problem isn't perminate. > > Every other protocol I'm aware of assumes temporary in this sort of case. > > I think distinguising between temporary and permanent errors where > possible is a good idea, but I guess I don't feel that overly strong > about it. Yeah me too. If it was my decision, i'd leave out the temporay option here, but I can't really argue against it if someone feels it's needed. But I will strongly suggest that we not put it in just because it "seems" like a good idea. And I will insist that the MUST CLOSE connection after response be included for both the 400 and 502 codes though - or at least that the behavior is not optional. Either it always does, or or never does. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
25 lines
1814 bytes
1814 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > > > What's needed for the server is: "The server MUST NOT assume a client > > will use this, and MUST NOT require a client to use this." > > I don't think that ruling out the implementation used by both INN and the > reference NNTP implementation The reference NNTP implementation uses MODE READER also? I didn't realize that. I thought we were talking about it only in the context that it forks a process on POST and therfore has the no-piplieing issue to deal with there. > in an official standard is going to go very > far unless you provide some sort of alternative, such as standardizing a > separate port for transfer connections. I'd like to see that. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
23 lines
1821 bytes
1821 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > > "J. Moreno" <planb@newsreaders.com> wrote: > > >> (And for logical completion there should be a way to switch back, even > >> if the server isn't going to accept commands in that mode from this, > >> uhm, user). > > > There is no way to go home Dorthy. Not only is it unimplemented in > > INN, it's imposible to implement (well impossible is too strong - lets > > just say it might be easier to rewrite INN from the ground up than it > > is to fix that). > > Hardly. In the presence of file descriptor passing, ... Ok, so I admit it. I'm an old-timer that hasn't keept up with all the "new fangled" features of the world :). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
61 lines
3592 bytes
3592 bytes
"J. Moreno" <planb@newsreaders.com> wrote: > Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > > > > 7.1.2 MODE READER > > > > > MODE READER > > > > > Barber > > > [Page 8] > > > > > INTERNET DRAFT November > > > 1999 > > > > > MODE READER MAY be used by the client to indicate to the > > > server that it is a news reading client. This command > > > may be entered at any time. The server must present a > > > greeting code (as described in section 7.1.2.1) > > > appropriate to the server's ability to provide service > > > to this client in this mode. > > > > My suggestion here has always been that the "MAY be used by the client" > > should instead be "SHOULD be used by the client". > > If MODE READER is supposed to put the server into a state where IHAVE > or other commands are not going to be accepted, then that should be > mentioned. You bet. It's stupid to include the command in the RFC and yet still leave the users of the RFC "blind" as to it's purpose and reason for existance. Either take out and completely and define INN to be broken, or put it in correctly. BTW, for those of you that might not know, the MODE READER command is almost never actually need in most end user situsations even with INN. It's only needed in the case that the client is running from a machine which has also been grated feed permissions for that INN server. In almost all "real" end-user situations, INN starts up automatically in reader mode for the user at which time the MODE READER command is treated as a no-op even on INN. > (And for logical completion there should be a way to switch > back, even if the server isn't going to accept commands in that mode > from this, uhm, user). There is no way to go home Dorthy. Not only is it unimplemented in INN, it's imposible to implement (well impossible is too strong - lets just say it might be easier to rewrite INN from the ground up than it is to fix that). This is part of the whole problem with adding this concept of states into the RFC. If you define the states, then it makes perfect sense to add commands to test your current state, and switch back and forth between the states. But INN doesn't, and can't, really do that. So you end up with the only server who "needs" the MODE READER command not being able to implement the protocol which grows out from it's need. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Russ Allbery
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
18 lines
1657 bytes
1657 bytes
Curt Welch <curt@kcwc.com> writes: > And, if you really really wanted to build a split process design server, > and run them on the same port, and support feeds and readers from some > of the same IP addresses, you could still make it work by having the > feed processes fork the reader process the first time it saw one of the > READER commands. It then passes any buffered data from the stream off > to the reader (open a second pipe to do that a start up) and it all > works fine. If I were actually implementing this, BTW, I'd use file descriptor passing. Much easier than playing with multiple pipes. And it's not a bad design, although just using a different port is cleaner. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
38 lines
2667 bytes
2667 bytes
Jeremy <bofh@netscum.dk> wrote: > Curt Welch <curt@kcwc.com> wrote: > You're just on a jihad against MODE READER, aren't you? Yes :). > > But most important, why would using two ports be a problem for anyone? > > I think it would be less of a problem now than when INN was designed. > But there's going to be quite a lot of inertia to overcome. We will need > servers that listen on *both* ports during the transition period, most > likely. I know I don't get a warm and fuzzy feeling at the thought of an > instant conversion of my hundreds of peers to a new port all at the same > time. The RFC won't force, or even encourage, people to switch so I wouldn't worry about that at all. It will just give them a well defined place to go for those that want to do it (and the justification for doing so). And as we bring new feeding boxes on line, we can start changing to the standard as we see fit. I see no reason to encourage any production shop the waste their time on a port move exercise. We can add dual-port support into servers so out of the the box, they will be able to accept readers on 119 and feeders on 433 (even the single processes servers like mine). Actually between the time I started writing this reply (Yesterday), and now, I added dual port support in my server. BTW, I noticed my /etc/services already has NNSP defined. Was this some other protocol that "we" have taken over because it had a useable name, or was it added only as a alternate NNTP port? Anyone got a URL to some type of official definition of this? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Jeremy
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
40 lines
2622 bytes
2622 bytes
Curt Welch <curt@kcwc.com> wrote: > My server works fine like that without MODE READER so no, it doesn't > rule it out at all. It's a simple matter to build a new server which > does both on the same port (and in the same process). I don't see any reason to require, or even encourage, this entire protocol to have to be implemented within one process. Having different processes for feeding and reading makes a lot of sense. > And, if you really really wanted to build a split process design server, > and run them on the same port, and support feeds and readers from some > of the same IP addresses, you could still make it work by having the > feed processes fork the reader process the first time it saw one of > the READER commands. It then passes any buffered data from the stream > off to the reader (open a second pipe to do that a start up) and it all > works fine. No pipeline restrictions and no MODE READER command. Okay, so if you can do that, why not have the server fork when it gets a MODE READER and pass the buffered data to the child? This makes a lot more sense to me than just waiting for a reader command. The two processes might overlap in what parts of NNTP they support, and it's possible at the beginning of a session that only the client will know how it intends to behave during that session. You're just on a jihad against MODE READER, aren't you? > But most important, why would using two ports be a problem for anyone? I think it would be less of a problem now than when INN was designed. But there's going to be quite a lot of inertia to overcome. We will need servers that listen on *both* ports during the transition period, most likely. I know I don't get a warm and fuzzy feeling at the thought of an instant conversion of my hundreds of peers to a new port all at the same time. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
24 lines
2080 bytes
2080 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > > > And, if you really really wanted to build a split process design > > server, and run them on the same port, and support feeds and readers > > from some of the same IP addresses, you could still make it work by > > having the feed processes fork the reader process the first time it saw > > one of the READER commands. It then passes any buffered data from the > > stream off to the reader (open a second pipe to do that a start up) and > > it all works fine. > > If I were actually implementing this, BTW, I'd use file descriptor > passing. Much easier than playing with multiple pipes. And it's not a > bad design, although just using a different port is cleaner. To tell the truth, if I "had" to write a split server design for a single port, I'd just implement MODE READER. But don't tell anyone I said that :). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Jeremy
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
15 lines
1314 bytes
1314 bytes
Curt Welch <curt@kcwc.com> wrote: > We can add dual-port support into servers so out of the the box, they will > be able to accept readers on 119 and feeders on 433 (even the single > processes servers like mine). Actually between the time I started writing > this reply (Yesterday), and now, I added dual port support in my server. It'll need to accept feeds on both ports, not just readers on 119. I don't fancy a "hard" cutover, because then I'd lose the incoming feeds from the probably dozens of peers who won't make the change right away. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
29 lines
2350 bytes
2350 bytes
Jeremy <bofh@netscum.dk> wrote: > Curt Welch <curt@kcwc.com> wrote: > > > We can add dual-port support into servers so out of the the box, they > > will be able to accept readers on 119 and feeders on 433 (even the > > single processes servers like mine). Actually between the time I > > started writing this reply (Yesterday), and now, I added dual port > > support in my server. > > It'll need to accept feeds on both ports, not just readers on 119. I > don't fancy a "hard" cutover, because then I'd lose the incoming feeds > from the probably dozens of peers who won't make the change right away. Sure, it's easy for this stuff to accept connections from two different ports at the same time. It only required about 10 lines of minor code changes in my server. inetd deals with tons of ports at the same time. My server, being one which deals with readers and feeders in the same code, has no problem dealing with either type of connection on either port. BTW, I have a version of the "headers" command (mostly) working on my server now. It's only using the slow, "must fetch each header" version of the algorithm at the moment, but other than that it's complete (execpt for this little core dump problem I'm still chasing down...). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Greg Andrews
Date: Fri, 03 Mar 2000 00:00
Date: Fri, 03 Mar 2000 00:00
29 lines
1976 bytes
1976 bytes
curt@kcwc.com (Curt Welch) writes: >Jeremy <bofh@netscum.dk> wrote: >> Curt Welch <curt@kcwc.com> wrote: >> >> > What's needed for the server is: "The server MUST NOT assume a client >> > will use this, and MUST NOT require a client to use this." >> >> Wouldn't this require the server to magically know whether a client is a >> reader or a feeder? > >Well don't they all do that now execpt in the one rare case where a >client connects to an inn server from a machine which also feeds that >server news? > I don't know if this will shed any light on the discussion at this point, but the canonical example of the server you describe is one that receives news via UUCP (the rnews command issues IHAVE commands to the news software) and also has some shell accounts that post news. Servers that combine shell, UUCP, and news services were quite common until the mid-90s, but now seem to be rare. -Greg -- ::::::::::::::::::: Greg Andrews gerg@wco.com ::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Greg Andrews
Date: Fri, 03 Mar 2000 00:00
Date: Fri, 03 Mar 2000 00:00
43 lines
2511 bytes
2511 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes: >[This is one of a series of extracts from draft-ietf-nntpext-base-09.txt >which is available in full from the usual Internet-Draft archives.] > > > 7. The GREETING Step > > 7.1 Initial Connection > > There is no keyword presented by the client upon initial > connection to the server. The server MUST present an > appropriate response code as a greeting to the client. This > response informs the client about what steps the client should > take to reach the news exchange step. > > The server MUST present a 200 greeting code if the client is > authorized to post articles though the use of the POST keyword > on this server. > > The server MUST present a 201 greeting code if the client is > not authorized to post articles using the POST keyword. > > The server MUST present a 502 greeting code if the client is > not permitted under any circumstances to interact with the > server. The server should immediately close the connection > with the client after presenting this code. > > In all other cases, the server MUST present a 400 greeting > code. > The 200, 201, and 502 codes are all very specific codes. Is the draft also trying to state that for the "other cases" the server must issue a 400 code, or that the server may issue a code in the range of 400 through 499? -Greg -- ::::::::::::::::::: Greg Andrews gerg@wco.com ::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sat, 04 Mar 2000 00:00
Date: Sat, 04 Mar 2000 00:00
41 lines
2764 bytes
2764 bytes
gerg@shell.ncal.verio.com (Greg Andrews) wrote: > curt@kcwc.com (Curt Welch) writes: > >Jeremy <bofh@netscum.dk> wrote: > >> Curt Welch <curt@kcwc.com> wrote: > >> > >> > What's needed for the server is: "The server MUST NOT assume a > >> > client will use this, and MUST NOT require a client to use this." > >> > >> Wouldn't this require the server to magically know whether a client is > >> a reader or a feeder? > > > >Well don't they all do that now execpt in the one rare case where a > >client connects to an inn server from a machine which also feeds that > >server news? > I don't know if this will shed any light on the discussion at this > point, but the canonical example of the server you describe is one > that receives news via UUCP (the rnews command issues IHAVE commands > to the news software) and also has some shell accounts that post news. I'm guessing that even in that config, you could probably play games and make rnews send to localhost, and the users send to the real host name and make it work without use of MODE READER. Not to mention the power all these machine now have for biniding multiple IP address to a single host which can also be used to prevent the need for MODE READER. > Servers that combine shell, UUCP, and news services were quite common > until the mid-90s, but now seem to be rare. Yeah, that was my point. Users and news machines used to be mixed together alot. But today, it's very rare. That's why I was asking. No one so far has mentioned a machine that still even needs to use MODE READER. I'm beginning to think it's not really required at all anymore. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Andrew Gierth
Date: Sat, 04 Mar 2000 00:00
Date: Sat, 04 Mar 2000 00:00
21 lines
1868 bytes
1868 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: >> I don't know if this will shed any light on the discussion at this >> point, but the canonical example of the server you describe is one >> that receives news via UUCP (the rnews command issues IHAVE >> commands to the news software) and also has some shell accounts >> that post news. Curt> I'm guessing that even in that config, you could probably play Curt> games and make rnews send to localhost, and the users send to Curt> the real host name and make it work without use of MODE READER. On systems with local-domain sockets it's not an issue - rnews uses the (feed-only) local socket, local users talk to localhost. (You don't want to give transfer permission to localhost on a machine with users on, anyway.) -- Andrew.
Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Author: Curt Welch
Date: Sat, 04 Mar 2000 00:00
Date: Sat, 04 Mar 2000 00:00
20 lines
1535 bytes
1535 bytes
gerg@shell.ncal.verio.com (Greg Andrews) wrote: > Andrew Gierth <andrew@erlenstar.demon.co.uk> writes: > > In all other cases, the server MUST present a 400 greeting > > code. > > > > The 200, 201, and 502 codes are all very specific codes. > Is the draft also trying to state that for the "other cases" > the server must issue a 400 code, or that the server may issue > a code in the range of 400 through 499? I don't know what they had in mind with that, but I read it as only 400 and not 4xx. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
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