🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84787

Python dynamic access

#84787
From: Steve Crook
Date: Wed, 28 Mar 2012 11:04
33 lines
1987 bytes
Hi all,

I've installed a fresh inn on a machine to do some testing with the
python_dynamic access hook. The machine was configured with:

./configure --with-python --with-sendmail=/usr/sbin/sendmail

After minimal configuration to get the server up and running, I've tried
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
Technical Details
Message-ID: <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!feeder.erje.net!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrnjn5s1q.upo.steve@news.mixmin.net>
Subject: Python dynamic access
Date: Wed, 28 Mar 2012 11:04:26 +0000
From: Steve Crook <steve@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!feeder.erje.net!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Injection-Date: Wed, 28 Mar 2012 11:04:26 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="16639"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-26 (Linux)
Lines: 32
X-Original-Bytes: 1646