🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80586

Re: basic nntp connections question

#80586
From: Julien ÉLIE
Date: Fri, 17 Apr 2009 18:14
72 lines
3731 bytes
Hi,

> I hit your server (or the server you suggested) about 100 times with no
> problems.  So I think my code is good and being rejected by giganews once in
> a while is normal?

I do not think it is normal.
Oh, I see that Giganews implements CAPABILITIES.  Good news!

% telnet news.giganews.com 119
200 News.GigaNews.Com
CAPABILITIES
101 capability list
VERSION 2
AUTHINFO USER
..

In response to AUTHINFO USER/PASS, here is the meaning of 502:

     502 Command unavailable [2]

     [2] If authentication has already occurred, AUTHINFO USER/PASS are
         not valid commands (see Section 2.2).

   After a successful authentication, the client MUST NOT issue another
   AUTHINFO command in the same session.  A server MUST NOT return the
   AUTHINFO capability in response to a CAPABILITIES command, and a
   server MUST reject any subsequent AUTHINFO commands with a 502
   response.


However, you report that you only see 502 after AUTHINFO PASS.  Very
strange.  It would imply that Giganews does not respect RFC 4643, though
advertising AUTHINFO USER via CAPABILITIES.  Bad news...

With RFC 2980, which may be what Giganews currently implements for AUTHINFO:

    If the combination is not valid, the server will return a
    502 response.

Which is in fact 481 nowadays.
It is strange they think your credentials are invalid.  Unless, as I suggested,
they are counting the number of "simultaneous" connections and wrongly believe
your sequential and close connections are still alive.



> Is that your server? Is it always available for testing?

Yes it is mine.  It is normally always available.  (Well, of course not
when I restart INN, which can happen from time to time.  If it happens,
just wait a little...)

If you need to test AUTHINFO SASL, I have the user test/tester defined:

% perl -MMIME::Base64 -e 'print encode_base64("\0test\0tester");'
AHRlc3QAdGVzdGVy

% telnet news.trigofacile.com 119
200 news.trigofacile.com InterNetNews NNRP server INN 2.5.0 (20090412 prerelease) ready (no posting)
AUTHINFO SASL PLAIN AHRlc3QAdGVzdGVy
281 Authentication succeeded

It is direct!
I accept several mechanisms:
SASL GSSAPI OTP PLAIN NTLM LOGIN DIGEST-MD5 CRAM-MD5

-- 
Julien ÉLIE

« Ave Amiral Cetinconsensus, comme toujours tu as vu juste. » (Astérix) 
Technical Details
Message-ID: <gsah2r$94p$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <gdydnR0nDbBlYXrUnZ2dnUVZ_tKdnZ2d@giganews.com> <gs95ub$165$1@news.trigofacile.com> <E5idnfcWEqrEIHXUnZ2dnUVZ_qydnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <gsah2r$94p$1@news.trigofacile.com>
Subject: Re: basic nntp connections question
Date: Fri, 17 Apr 2009 20:14:50 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gdydnR0nDbBlYXrUnZ2dnUVZ_tKdnZ2d@giganews.com> <gs95ub$165$1@news.trigofacile.com> <E5idnfcWEqrEIHXUnZ2dnUVZ_qydnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 72
NNTP-Posting-Host: aaubervilliers-151-1-59-169.w83-112.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1239992219 9369 83.112.154.169 (17 Apr 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Fri, 17 Apr 2009 18:16:59 +0000 (UTC)
In-Reply-To: <E5idnfcWEqrEIHXUnZ2dnUVZ_qydnZ2d@giganews.com>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049