🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55757

Re: Best way to determine if login is required?

#55757
From: Dirk Nimmich
Date: Thu, 27 Dec 2001 19:15
28 lines
2400 bytes
Bill Kearney wrote:
> What's considered the 'best practice' for determining if a client needs to
> log into a server?  I'm assuming the server is going to be supporting the
> AUTHINFO commands.  How should one 'feel out' the server to see if it wants
> authentication?

Unfortunately, there is no best practice.

Sometimes you can just send your authentication data before
anything else and it will do. But some servers don't like this.
(Microsoft's NNTP server seems to stay in an endless loop after
this, for example.)

Most servers respond with a 480 code if they expect authentication.
Unfortunately you don't know what type of authentication (AUTHINFO
GENERIC or USER/PASS) they want, but using AUTHINFO USER/PASS seems
to be ok most of the time. Furthermore, some servers only give you
access to some (default) groups unless you authenticate the user,
so legitimate users have to provide their authentication data
without such a request by the server to get full access.

Therefore, tin for example only sends authentication data upon
request of the server (480 response code). (It first tries AUTHINFO
GENERIC, then AUTHINFO USER/PASS.) But there is an command line
option to authenticate the user at connection startup to help those
users reading from a server that only gives full access after
pro-active login.
Technical Details
Message-ID: <a0fs04$epi$06$1@news.t-online.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <WbIW7.880$5c4.125016@newsread1.prod.itd.earthlink.net>

Show Full Headers
Complete Article Headers
Message-ID: <a0fs04$epi$06$1@news.t-online.com>
Subject: Re: Best way to determine if login is required?
Date: Thu, 27 Dec 2001 20:15:17 +0100
From: Dirk Nimmich <nimmich@muenster.de>
References: <WbIW7.880$5c4.125016@newsread1.prod.itd.earthlink.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!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.nntp
Organization: T-Online
Lines: 27
Sender: Dirk Nimmich <dirk@roxel.ms.sub.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1009480517 06 15154 8giYTysbSMA--4 011227 19:15:17
X-Complaints-To: abuse@t-online.com
X-Sender: 340032227593-0001@t-dialin.net