🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Joshua Cranmer Sat, 11 Jul 2009 22:05
AUTHINFO USER-only authentication?
#81567
Author: Joshua Cranmer
Date: Sat, 11 Jul 2009 22:05
6 lines
1397 bytes
How many news servers support authenticating with AUTHINFO USER without 
a subsequent AUTHINFO PASS?

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth
Re: AUTHINFO USER-only authentication?
#81570
Author: Mateusz Viste
Date: Sun, 12 Jul 2009 07:10
15 lines
1825 bytes
On Sunday 12 July 2009 00:05, Joshua Cranmer wrote:
> How many news servers support authenticating with AUTHINFO USER without
> a subsequent AUTHINFO PASS?

Hi,

None should, as such behavior is not RFC compliant... The RFC 2980
requires the user to send an AUTHINFO USER, wait for a 381 response from
the server, and then send AUTHINFO PASS.

Best regards,
Mateusz Viste
-- 
You'll find my public OpenPGP key at
http://www.viste-family.net/mateusz/pub_key
Re: AUTHINFO USER-only authentication?
#81569
Author: Antti-Juhani Kaijanaho
Date: Sun, 12 Jul 2009 09:56
28 lines
2126 bytes
Mateusz Viste kirjoitti:
> On Sunday 12 July 2009 00:05, Joshua Cranmer wrote:
>> How many news servers support authenticating with AUTHINFO USER without
>> a subsequent AUTHINFO PASS?
> 
> None should, as such behavior is not RFC compliant... The RFC 2980
> requires the user to send an AUTHINFO USER, wait for a 381 response from
> the server, and then send AUTHINFO PASS.

Um, you're basing that on an informational RFC that is nine years old 
and was never on the standards track when there is a standards-track RFC 
(proposed standard) from 2006 available.  Why?

RFC 4643 (Network News Transfer Protocol (NNTP) Extension for 
Authentication) specifies that AUTHINFO USER can succeed with 281. 
Moreover:

    If the server requires only a username, it MUST NOT give a 381
    response to AUTHINFO USER and MUST give a 482 response to AUTHINFO
    PASS.

(Of course, AUTHINFO USER without AUTHINFO PASS isn't really 
*authentication*,  it's just identification.  But that's beside the point.)

I do not know of any servers that do this.

-- 
Mr. Antti-Juhani Kaijanaho, Jyväskylä, Finland
Re: AUTHINFO USER-only authentication?
#81572
Author: Mateusz Viste
Date: Sun, 12 Jul 2009 14:37
32 lines
2596 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 12 July 2009 11:56, Antti-Juhani Kaijanaho wrote:
> Um, you're basing that on an informational RFC that is nine years old
> and was never on the standards track when there is a standards-track RFC
> (proposed standard) from 2006 available.  Why?

'cause I typed a bit too fast, and dumbly clicked on the first link which
appeared searching for "NNTP RFC" :-P
You're absolutely right. I keep forgetting about RFC 4643...

> I do not know of any servers that do this.

BasicNews does that. ;-)

Best regards,
Mateusz Viste
- -- 
You'll find my public OpenPGP key at
http://www.viste-family.net/mateusz/pub_key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iQEcBAEBAgAGBQJKWfVAAAoJEC30Ty9xnkvbmDAIALlTFUZvtSozKxwYYIWk2Vea
hxf/Cz5mxrT2lE6Qg2kNN+r6tPWfo/Xr/uJidYgmSfWTfGuPnEHBttA/kR1rR0SU
ik8yAT7a0jYZQglC+NU7LrceOBPxOaqs7BcU8tJAyEPrKn/B6JxtqJrQp0Dy7rtK
VzHqJK1ViQDpiwOty4L+njF/S87XacvStVNwPV5YhkltBmPJ4IZWFW1LAbJNdQT5
ku031zLtMFv7TgU/6bfRPhM5khEXB78oJKp0IXpSq6Gk/4240uf1KyoELaBqoQqS
IGE8I0rJplL1z/BRixPMAgPpylYXzryUE/pNXEVbJOei5VKgA4xQWNsgYZaL/MI=
=LHBI
-----END PGP SIGNATURE-----
Re: AUTHINFO USER-only authentication?
#81573
Author: Mateusz Viste
Date: Sun, 12 Jul 2009 14:41
33 lines
2227 bytes
On Sunday 12 July 2009 00:05, Joshua Cranmer wrote:
> How many news servers support authenticating with AUTHINFO USER without
> a subsequent AUTHINFO PASS?

Hi,

It depends what you mean by "news server" ;-)

BasicNews can do the job:

S: 200 Welcome to this BasicNews Server!
C: CAPABILITIES
S: 101 Capability list:
S: VERSION 2
S: READER
S: LIST ACTIVE NEWSGROUPS OVERVIEW.FMT
S: OVER
S: AUTHINFO USER
S: IMPLEMENTATION BasicNews 0.13
S: .
C: AUTHINFO anonim
S: 501 Bad syntax. Should be AUTHINFO USER <user> or AUTHINFO PASS <password>.
C: AUTHINFO USER anonim
S: 281 Authentication accepted. Be my guest!
C: QUIT
S: 205 See you later!

http://www.viste-family.net/mateusz/software/basicnews/

Best regards,
Mateusz Viste
-- 
You'll find my public OpenPGP key at http://www.viste-family.net/mateusz/pub_key
Re: AUTHINFO USER-only authentication?
#81574
Author: Julien ÉLIE
Date: Sun, 12 Jul 2009 20:27
21 lines
2053 bytes
Hi Joshua,

> How many news servers support authenticating with AUTHINFO USER without a subsequent AUTHINFO PASS?

I know you are speaking about news readers (therefore nnrpd for INN) but
I would like to mention that innd (for feeders) currently supports
authentication with AUTHINFO PASS only.

As Antti-Juhani recalled it with RFC 4643, this behaviour is not
RFC-compliant.  INN 2.5.0 discards AUTHINFO USER (it is a no-op)
and only waits for AUTHINFO PASS.  Therefore, it is possible to only
send AUTHINFO PASS.
It will be changed when innd has been reviewed against the new RFCs
(note that innfeed properly sends AUTHINFO USER and AUTHINFO PASS).

-- 
Julien ÉLIE

« C'est la première fois que je vois traiter une affaire avec
  autant de punch ! » (Astérix) 
Re: AUTHINFO USER-only authentication?
#81575
Author: Joshua Cranmer
Date: Mon, 13 Jul 2009 00:36
24 lines
2257 bytes
Julien ÉLIE wrote:
> Hi Joshua,
> 
>> How many news servers support authenticating with AUTHINFO USER 
>> without a subsequent AUTHINFO PASS?
> 
> I know you are speaking about news readers (therefore nnrpd for INN) but
> I would like to mention that innd (for feeders) currently supports
> authentication with AUTHINFO PASS only.

I suppose I should give a little more context:
In discussions about authentication in a certain news client, one of the 
things that came up was the possibility of NNTP to authenticate with 
only a username and without a password (which is permitted under both 
2980 and 4643), which is a feature that had been previously supported 
since at least 1999.

The question I should have perhaps asked instead is how many people 
would be, realistically speaking, adversely affected if this capability 
were removed?

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth
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