πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #85435

Re: pnews auth_method nntp fails on local server

#85435
From: Flibsy
Date: Sat, 09 Feb 2013 20:40
33 lines
2377 bytes
On 02/09/2013 04:43 PM, Flibsy wrote:
> On 02/09/2013 04:09 PM, Julien Γ‰LIE wrote:
>> Hi Flibsy,
>>
>>> But when I configure localhost or a domain name of my server for
>>> authentication in Pnews, it fails, no messages in the news.notice
>>> log. It doesn't get there obviously.
>>
>> Are you sure nnrpd gets the connection or is it only handled by innd?
>> Maybe innd believes the connection comes from a peer, and Pnews does not
>> sends the MODE READER command.

That's it.

I found out that for the session itself, Pnews indeed opens the session 
and sends the MODE READER command, followed by the AUTHINFO sequence.
When connecting for authentication only, it did not,  the mode is not 
switched to nnrp, and the server throws a 502 Authentication will fail 
error after the AUTHINFO USER command.

So I changed the nntp-authentication module of Pnews to start by issuing 
the MODE READER command, and it works.


This means I can stop running an open server - as I want my local groups 
protected by Login for Posting policy.

Thanks again for helping me out.


-- 
Flibsy
Technical Details
Message-ID: <5116b42e$0$584$e4fe514c@dreader34.news.xs4all.nl>
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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail
References: <928093368382035317.617883flibsy-nltaal.nl@newszilla.xs4all.nl> <kf5ors$o7p$1@news.trigofacile.com> <51166eae$0$26894$e4fe514c@dreader37.news.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <5116b42e$0$584$e4fe514c@dreader34.news.xs4all.nl>
Subject: Re: pnews auth_method nntp fails on local server
Date: Sat, 09 Feb 2013 21:40:13 +0100
From: Flibsy <flibsy@nltaal.nl>
References: <928093368382035317.617883flibsy-nltaal.nl@newszilla.xs4all.nl> <kf5ors$o7p$1@news.trigofacile.com> <51166eae$0$26894$e4fe514c@dreader37.news.xs4all.nl>
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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <51166eae$0$26894$e4fe514c@dreader37.news.xs4all.nl>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 33
NNTP-Posting-Host: 83.163.185.244
X-Trace: 1360442414 dreader34.news.xs4all.nl 584 83.163.185.244:48177
X-Original-Bytes: 2197