Article View: news.software.nntp
Article #70430Re: Help/Consultation with INN Solution
From: Jeffrey M. Vinocur
Date: Tue, 14 Dec 2004 00:10
Date: Tue, 14 Dec 2004 00:10
48 lines
3321 bytes
3321 bytes
In article <cpkj5s$b52$1@news.loxinfo.co.th>, Brandon T. <spamthisallyouwant@pysquared.com> wrote: > >We have an educational website (much like an online university). We need the >ability for teachers to be able to create newsgroups (5 groups per class) >from the website (php / MySQL). Then each student who enrolls in the class, >needs read access to 4 of those groups and write-only to the 5th. INN would >need to be able to send an automatic email to the teacher when a student >posts in the write-only group. We would also need it so that the students >can only read from the groups of the classes they are enrolled in. And the >teachers only able to read/write to the groups of the classes they are >teaching. I can probably create PHP scripts to edit the readers.conf or >other conf files and restart the INN server when needed. I just want to make >sure INN is capable of such a task before trying to implement. Really >appreciate your help, thanks! I'd say this is within INN's capability. You shouldn't need to have the web server alter any INN configuration files; and I think doing so would be unwise. The only direct interaction the web server should have with INN should be to create the new groups (with `ctlinnd newgroup`). The web server should also maintain a database of which classes each student/teacher is associated with. You could do this as a bunch of text files, but if you're comfortable using MySQL, that would be fine. Then you'd make a relatively simple readers.conf that authenticates the user, and then uses perl_access or python_access (your choice, depending on which language you prefer) to examine the MySQL database and determine the user's access rights. The automatic email can be easily done, for example, with `newsmail` (used from the newsfeeds file). All in all, I'd say it's a reasonably straightforward task for someone accustomed to INN. But I should caution you that it often takes new people multiple days of reading and configuring to get a "normal" news server running, and what you're considering is somewhat more complex than that. -- Jeffrey M. Vinocur jeff@litech.org
Technical Details
Message-ID:
<cplb0o$dbv$1@puck.litech.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news.litech.org!not-for-mailReferences:
<cpjr6o$47a$1@news.loxinfo.co.th> <mn.6b5c7d4ca2029e7f.22232@nospam.com> <cpkj5s$b52$1@news.loxinfo.co.th>Show Full Headers
Complete Article Headers
Message-ID: <cplb0o$dbv$1@puck.litech.org> Subject: Re: Help/Consultation with INN Solution Date: Tue, 14 Dec 2004 00:10:00 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <cpjr6o$47a$1@news.loxinfo.co.th> <mn.6b5c7d4ca2029e7f.22232@nospam.com> <cpkj5s$b52$1@news.loxinfo.co.th> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 48 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1102983000 13695 66.218.0.75 (14 Dec 2004 00:10:00 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Tue, 14 Dec 2004 00:10:00 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)