🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63985

Re: inn 2.3.4, nnrpd_auth hook bypassed when newsgroup is moderated?

#63985
From: Erik Klavon
Date: Mon, 10 Feb 2003 19:53
23 lines
2042 bytes
This is also true in ValidNewsgroups(). I guess the intent here was to 
allow the moderator to perform their own authorization. Maybe the right 
thing would be to call the python hook in these cases with an additional 
type attribute to inform the script that the group is moderated.

Erik

Daniel wrote:
> inn 2.3.4, using nnrpd_auth.py hooks for a standalone news server. 
> Read and Write permissions vary among users/newsgroups.
> 
> In nnrpd/post.c, it looks like the python authorize hook (called for
> read or post) is not called for moderated newsgroups
> (NF_FLAG_MODERATED), only when NF_FLAG_OK.  The post is mailed
> directly to the moderator without any chance of it first being denied
> by PY_authorize.  Was this intended?  Any plans to make this
> configurable?
> 
> 
> Thanks for letting me know,
> ~ Daniel

Technical Details
Message-ID: <b29001$g56$1@geode.berkeley.edu>
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!newsfeed.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!geode.berkeley.edu!not-for-mail
References: <1d4cf4c3.0302101137.14293da4@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <b29001$g56$1@geode.berkeley.edu>
Subject: Re: inn 2.3.4, nnrpd_auth hook bypassed when newsgroup is moderated?
Date: Mon, 10 Feb 2003 11:53:13 -0800
From: Erik Klavon <erik@nospam.agate.berkeley.edu>
References: <1d4cf4c3.0302101137.14293da4@posting.google.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!newsfeed.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!geode.berkeley.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: University of California, Berkeley
Lines: 22
NNTP-Posting-Host: nofx.net.berkeley.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: geode.berkeley.edu 1044906817 16550 128.32.155.7 (10 Feb 2003 19:53:37 GMT)
X-Complaints-To: usenet@agate.berkeley.edu
NNTP-Posting-Date: Mon, 10 Feb 2003 19:53:37 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021208
X-Accept-Language: en-us, en