Thread View: news.software.nntp
55 messages
55 total messages
Page 2 of 2
Started by J. Moreno
Thu, 24 Feb 2000 00:00
Page 2 of 2 • 55 total messages
Re: Batched ARTICLE commands
Author: Russ Allbery
Date: Sat, 04 Mar 2000 00:00
Date: Sat, 04 Mar 2000 00:00
13 lines
1292 bytes
1292 bytes
Kai Henningsen <kaih=7$I4PMKXw-B@khms.westfalen.de> writes: > Maybe AUTHINFO GENERIC should do SASL? I don't know how compatible the > spec is. I haven't looked at this in detail yet (and plan to), but it may end up being easier to explicitly invoke SASL with something like "AUTHINFO SASL" to make sure everything sees what it expects to see. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: Batched ARTICLE commands
Author: Kai Henningsen
Date: Sun, 05 Mar 2000 00:00
Date: Sun, 05 Mar 2000 00:00
35 lines
2092 bytes
2092 bytes
rra@stanford.edu (Russ Allbery) wrote on 04.03.00 in <ylvh32oyte.fsf@windlord.stanford.edu>:
> Kai Henningsen <kaih=7$I4PMKXw-B@khms.westfalen.de> writes:
>
> > Maybe AUTHINFO GENERIC should do SASL? I don't know how compatible the
> > spec is.
>
> I haven't looked at this in detail yet (and plan to), but it may end up
> being easier to explicitly invoke SASL with something like "AUTHINFO SASL"
> to make sure everything sees what it expects to see.
Anyway, here's an example of a SASL authentication from the SMTP AUTH RFC:
Examples:
S: 220 smtp.example.com ESMTP server ready
C: EHLO jgm.example.com
S: 250-smtp.example.com
S: 250 AUTH CRAM-MD5 DIGEST-MD5
C: AUTH FOOBAR
S: 504 Unrecognized authentication type.
C: AUTH CRAM-MD5
S: 334 PENCeUxFREJoU0NnbmhNWitOMjNGNndAZWx3b29kLmlubm9zb2Z0LmNvbT4=
C: ZnJlZCA5ZTk1YWVlMDljNDBhZjJiODRhMGMyYjNiYmFlNzg2ZQ==
S: 235 Authentication successful.
Kai
--
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
- Russ Allbery (rra@stanford.edu)
Re: Batched ARTICLE commands
Author: Kai Henningsen
Date: Sun, 05 Mar 2000 00:00
Date: Sun, 05 Mar 2000 00:00
39 lines
2379 bytes
2379 bytes
richardk+ah-from=news.software.nntp@chiark.greenend.org.uk (Richard Kettlewell) wrote on 01.03.00 in <84hfeqbvg0.fsf@chiark.greenend.org.uk>: > Andrew Gierth <andrew@erlenstar.demon.co.uk> writes: > > > That, plus the fact that authinfo exchanges can be non-trivial if > > SASL is involved; the server may respond to AUTHINFO with a > > challenge. > > (What is SASL?) SASL (RFC 2222) is what every stream-dialog-oriented protocol should support these days. Essentially, it's a generic mechanism to do authentication and/or encryption, for any such mechanism you care to think of, with proper negotiation which one to use. You can do login-type stuff, anonymous access, GSSAPI, Kerberos, S/KEY, whatever. There's a generic (client and server) library in the Cyrus stuff, btw. Some protocols that support SASL are ACAP, LDAP, POP, SMTP, IMAP. (Another option - preferrably in adition, not instead - is TLS (formerly SSL), usually activated with a STARTTLS command - see, for example, RFC 2595. It's also mentioned in the SASL RFC.) > AUTHINFO GENERIC also will cause INN's nnrpd to > invoke a child process which might very well use buffered I/O on the > NNTP stream. Maybe AUTHINFO GENERIC should do SASL? I don't know how compatible the spec is. Kai -- http://www.westfalen.de/private/khms/ "... by God I *KNOW* what this network is for, and you can't have it." - Russ Allbery (rra@stanford.edu)
Re: Batched ARTICLE commands
Author: bill davidsen
Date: Thu, 09 Mar 2000 00:00
Date: Thu, 09 Mar 2000 00:00
68 lines
4258 bytes
4258 bytes
In article <bill-0203002213340001@192.168.254.8>, Bill Cole <bill@scconsult.com> wrote: | > Could you give an example of an operating system which doesn't support | > a client server model which allows a client to send a request to the | > server and for the server to return a response? I don't see any | > "specific timing" involved, unless you mean that the request should come | > before the reply. It's easier to code that way ;-) | | I was speaking of the SERVER behavior. I'm pretty sure Curt was too. The | problem is not in failing to allow a pure request/response model, but in | attempting to enforce that model: it's hopelessly complex. [... snip ...] | HOWEVER, a server that FAILS to handle a stream of batched ARTICLE, XOVER, | HEAD, XHDR, or similar commands which do not evoke a state change in | success or failure is problematic. The failures in INN are not much of an | issue IMHO because a client that would try to batch the problem commands | is a stupidly written client, however INN can't reliably drop commands | batched that way (at least not in theory. I have not tested much) . You could probably do that with non-blocking reads until no data was received, but the client could still be trying to send more... in any case you can define a state change command as one which effects the action of following commands, and define the action of streaming after one such as undefined. We did that in the first ANSI C standard,, as long as the client has no reason to believe that it will work the server can do what's easiest. In most common servers that allows streaming where it makes sense. | The whole argument devolves into some silliness: no server not otherwise | badly broken fails to work with batched commands that make sense to batch. Exactly, it would take effort not to do that. I'd like to see the standard have a warning on this, but I'm not sure I want a standard which requires the server to batch. Sure hope the proposed standard requires the HELP command to list all supported commands and features, so a well written client can cope with all the versions which would be out there if there changes actually resul;ted in a new standard. | If there is anything in the spec about this, I think it should define | batching that a server MUST support and that servers MAY allow other | batching with the warning that clients MUST wait for a response to any | command if the following command presumes a specific sort of success of | the command. I can even see batching GROUP commands in a common | newsreading model (used for many GUI newsreaders) because typically there | is a stream of GROUP commands sent just to get the current article counts | for subscribed groups. The problem is that an implementation which runs a GROUP command as a process would have to use some unbuffered reads to get only the command and not leave the next part in a buffer. Hum. This needs to be worded carefully to avoid requiring more than that which is actually helpful to performance, not just that which the client writers think would be neat if the server did for them. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc When taking small children to a carnival, always have them go potty *before* you let them go on the rides, and let them eat all the junk food and candy *after*.
Page 2 of 2 • 55 total messages
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