🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84788

Re: Python dynamic access

#84788
From: Steve Crook
Date: Wed, 28 Mar 2012 13:50
42 lines
2344 bytes
On Wed, 28 Mar 2012 11:04:26 +0000 (UTC), Steve Crook wrote in
Message-Id: <slrnjn5s1q.upo.steve@news.mixmin.net>:

> adding an auth group to readers.conf of:
>
> auth "dynamic_access" {
>   hosts: "*"
>   python_dynamic: "nnrpd_dynamic"
> }
>
> Running inncheck -pedantic produces no errors at this point and the
> server starts without issues. When a client tries to connect, they get:
>
> $ telnet fleegle.mixmin.net 119
> Trying 81.187.219.202...
> Connected to fleegle.mixmin.net.
> Escape character is '^]'.
> 200 fleegle.mixmin.net InterNetNews server INN 2.6.0 (20120328
> prerelease) ready (transit mode)
> mode reader
> 502 Could not get your access name.  Goodbye!
> Connection closed by foreign host.
>
> At this point, the nnrpd_dynamic.py script is completely unaltered so I
> would expect to see a syslog message as it initializes, but I get
> nothing.  Any suggestions as to what I'm doing wrong?
>
> Steve

To answer my own question, the auth group requires a default.  I'm not
convinced this ever gets used as the dynamic access script should return
something for every scenario.

auth "dynamic_access" {
  hosts: "*"
  python_dynamic: "nnrpd_dynamic"
  default: "<read>"
}


To ask another related question: How does one reinitialize the DYNACCESS
class without restarting the inn server?
Technical Details
Message-ID: <slrnjn65od.upo.steve@news.mixmin.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <slrnjn5s1q.upo.steve@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnjn65od.upo.steve@news.mixmin.net>
Subject: Re: Python dynamic access
Date: Wed, 28 Mar 2012 13:50:05 +0000
From: Steve Crook <steve@mixmin.net>
References: <slrnjn5s1q.upo.steve@news.mixmin.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Injection-Date: Wed, 28 Mar 2012 13:50:05 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="2253"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-26 (Linux)
Lines: 41
X-Original-Bytes: 2052