Article View: news.software.nntp
Article #84814Re: Python dynamic access
From: Steve Crook
Date: Fri, 06 Apr 2012 14:51
Date: Fri, 06 Apr 2012 14:51
26 lines
2369 bytes
2369 bytes
On Sun, 01 Apr 2012 23:49:47 +0200, Julien ΓLIE wrote in Message-Id: <9ts0rrFrtvU1@mid.individual.net>: > I believe the right fix would be to treat auth groups with Python > dynamic generation of access groups differently than other auth groups. > A username is probably not required for them. > Either we do that (and allow the absence of a username) or we mention > that a username is mandatory when dynamic hooks are used. (The username > can be found out by the news server, or set to a default one when not > guessed.) Hi Julien, I got around it by specifying a default. It then behaved as I expected it to. Since then I've been playing with it on a test box and everything worked well. Unfortunately when I tried it on a live server, with users, I encountered another issue. It seems that the DYNACCESS class reinitializes with each new user connection. Using the standard nnrpd_dynamic.py module I get the following log messages on each connection:- Apr 6 13:46:33 news nnrpd[15462]: python: nnrpd dynamic access class instance created Apr 6 13:46:33 news nnrpd[15462]: python: dynamic access module successfully hooked into nnrpd
Technical Details
Message-ID:
<slrnjnu0mk.ddu.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!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mailReferences:
<slrnjn5s1q.upo.steve@news.mixmin.net> <slrnjn65od.upo.steve@news.mixmin.net> <9trvgcFiejU1@mid.individual.net> <9ts0rrFrtvU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnjnu0mk.ddu.steve@news.mixmin.net> Subject: Re: Python dynamic access Date: Fri, 06 Apr 2012 14:51:00 +0000 From: Steve Crook <steve@mixmin.net> References: <slrnjn5s1q.upo.steve@news.mixmin.net> <slrnjn65od.upo.steve@news.mixmin.net> <9trvgcFiejU1@mid.individual.net> <9ts0rrFrtvU1@mid.individual.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!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail Newsgroups: news.software.nntp Organization: Mixmin Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 6 Apr 2012 14:51:00 +0000 (UTC) Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4"; logging-data="30669"; mail-complaints-to="abuse@mixmin.net" User-Agent: slrn/pre1.0.0-26 (Linux) Lines: 25 X-Original-Bytes: 2046