🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55763

Re: Best way to determine if login is required?

#55763
From: Andrew - Supernews
Date: Fri, 28 Dec 2001 00:51
58 lines
3909 bytes
In article <5B1BB2EE7B245B3C.BB02DD5EEF21BD78.75A5618A870ED179@lp.airnews.net>,
Frank Durda IV wrote:
[snip lots of stuff about authentication] 
> We also fought the problem of the standard greeting response code, 200/201.**
> We found that Agent and other newsreaders that were confronted with a 201
> on initial connect would never allow posting, (wouldn't even issue a post
> command), even if they authenticated (via authinfo) and would be allowed to
> post once authenticated.  This was kind of dumb anyway, because the server
> 99% of the time wouldn't know if the customer was going to be allowed to post
> at the time the greeting banner is displayed anyway.
> 
> So, to this day we have to lie and greet everybody with 200 regardless of
> whether posting is allowed or not.  The client finds out when they run into
> a 480 or some other restricting response.

We send 200 if either we know that the user can post, or we don't yet know
enough about who the user is to decide either way. We only send 201 if there
is no way that this connection is ever going to be able to post.

>    We even changed the "help" output at one point to only show the commands
>    that were available prior to authenticating, and doing this broke the
>    Agent newsreaders.  Seems some Agent versions issued a "help" command 
>    immediately after connecting and prior to authenticating, then analyzed
>    the "help" output to figure out what commands were available on the
>    server and would use or not use the available commands accordingly.
>    This is so non-RFC-ish, something you think Microsoft might come up
>    with!  :-(
> 
>    So a tip: don't output a shorter list of help commands prior to
>    authenticating, or change their order or spacing in the help display from
>    what appears in stock INN, or else some Agent newsreaders will think
>    that they have no or few commands to work with.

Hmm.

Our help output has looked like this for some years now:

100 help follows
Supported commands: 
  ARTICLE     AUTHINFO    BODY        DATE        GROUP       HDR       
  HEAD        HELP        LAST        LIST        LISTGROUP   MODE      
  NEWGROUPS   NEWNEWS     NEXT        OVER        PAT         POST      
  QUIT        SLAVE       STAT        XGTITLE     XHDR        XOVER     
  XROVER      XPAT        
For further information contact <news@supernews.com>

I don't recall any reports of problems with this. We did, however, at one
point discover that some Agent versions get confused if the HELP output
arrives split across multiple segments (tsk, very sloppy programming there);
if you have Agent's "keepalives" setting enabled, it issues regular HELP
commands to avoid having the connection time out (also an exceptionally bad
idea), and it would get permanently out of sync with the responses if they
did not arrive as single segments.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Technical Details
Message-ID: <slrna2ngfl.1grc.andrew+nonews@trinity.supernews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <WbIW7.880$5c4.125016@newsread1.prod.itd.earthlink.net> <5B1BB2EE7B245B3C.BB02DD5EEF21BD78.75A5618A870ED179@lp.airnews.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrna2ngfl.1grc.andrew+nonews@trinity.supernews.net>
Subject: Re: Best way to determine if login is required?
Date: Fri, 28 Dec 2001 00:51:01 -0000
From: andrew+nonews@supernews.com (Andrew - Supernews)
References: <WbIW7.880$5c4.125016@newsread1.prod.itd.earthlink.net> <5B1BB2EE7B245B3C.BB02DD5EEF21BD78.75A5618A870ED179@lp.airnews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Posted via Supernews, http://www.supernews.com
Reply-To: andrew@supernews.com
User-Agent: slrn/0.9.7.1 (FreeBSD)
X-Complaints-To: newsabuse@supernews.com
Lines: 57