Thread View: news.software.nntp
7 messages
7 total messages
Started by Paul Tomblin
Mon, 13 Oct 2003 15:44
Allowing moderators?
Author: Paul Tomblin
Date: Mon, 13 Oct 2003 15:44
Date: Mon, 13 Oct 2003 15:44
34 lines
2325 bytes
2325 bytes
I just upgraded my RedHat 7.3 server to RedHat 9, and it upgraded from inn
2.3.2 to 2.3.4. Even though the readers.conf doesn't appear to have
changed, it won't allow me to approve posts for a moderated group.
auth "localhost" {
hosts: "127.0.0.1, 192.168.0.0/16"
default: "<localhost>"
}
# Grant that specific identity access to read and post to any newsgroup
# and allow it to post articles with Approved: headers to moderated
# groups.
access "localhost" {
users: "<localhost>"
newsgroups: "*"
access: RPA
}
I also have a nnrpd_auth.pl so that remote readers can authenticate (I'm
planning to switch to a ckpasswd authentication in readers.conf as soon as
I figure out how). Could that be interfering?
I checked the archives and see that 2.3.4 had a problem with posts with a
followup-to pointing to a moderated group, but that shouldn't be relevant
here. I know Russ and Jeff will immediately tell me to upgrade to 2.4.0,
but I'd rather leave rpm in charge of upgrading my software.
--
Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/
http://www.pointlesswasteoftime.com/film/50reasons.html
"Apparently they made the beasts [Uruk Hai] by crossing Orcs, Goblins and
the French."
Re: Allowing moderators?
Author: Jeffrey M. Vinocur
Date: Mon, 13 Oct 2003 17:10
Date: Mon, 13 Oct 2003 17:10
51 lines
2900 bytes
2900 bytes
In article <bmeh8l$6ce$1@allhats.xcski.com>,
Paul Tomblin <ptomblin@xcski.com> wrote:
>I just upgraded my RedHat 7.3 server to RedHat 9, and it upgraded from inn
>2.3.2 to 2.3.4. Even though the readers.conf doesn't appear to have
>changed, [...]
If you check NEWS, you'll see that the restriction on approval
was added in 2.3.3 (even though it was documented in 2.3.2, the
patch wasn't actually applied).
>I also have a nnrpd_auth.pl so that remote readers can authenticate (I'm
>planning to switch to a ckpasswd authentication in readers.conf as soon as
>I figure out how). Could that be interfering?
...with the "old" Perl auth hooks, readers.conf is entirely
ignored. There is, of course, support for what you want to do in
2.4.
This is admittedly a deficiency in 2.3.x -- I don't think we'd
thought about the Perl hooks when the "access: A" feature was
added -- but that tree is no longer under development. So your
options are (unless I've forgotten something):
- switch to using a readers.conf-based mechanism (even if
ckpasswd doesn't work for you, you can still call out to a Perl
script as long as you don't need to dynamically generate access
groups -- check the external-auth documentation[1])
- patch the source (which kind of kills your RPM hopes)
- upgrade to 2.4
>but I'd rather leave rpm in charge of upgrading my software.
In this case, it really is a mistake. I don't think there's a
single person who's spoken in favor of the way Redhat packages
INN, let alone the fact that it's chronically out of date. But I
can't force you.
[1] I didn't write this documentation until fairly recently, but
it's applicable to 2.3.x nonetheless:
http://www.eyrie.org/~eagle/software/inn/docs-2.4/external-auth.html
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Allowing moderators?
Author: Paul Tomblin
Date: Mon, 13 Oct 2003 17:32
Date: Mon, 13 Oct 2003 17:32
39 lines
2571 bytes
2571 bytes
In a previous article, jeff@litech.org (Jeffrey M. Vinocur) said:
>
>>I also have a nnrpd_auth.pl so that remote readers can authenticate (I'm
>>planning to switch to a ckpasswd authentication in readers.conf as soon as
>>I figure out how). Could that be interfering?
>
>- switch to using a readers.conf-based mechanism (even if
> ckpasswd doesn't work for you, you can still call out to a Perl
> script as long as you don't need to dynamically generate access
> groups -- check the external-auth documentation[1])
Actually, ckpasswd would probably be adequate if I could just figure out
what I'm doing wrong. I've now modified readers.conf as follows:
auth "everybodyelse" {
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/remote_passwords"
}
auth "localhost" {
hosts: "127.0.0.1, 192.168.0.0/16"
default: "<all_access>"
}
access "all_access" {
users: "*"
newsgroups: "*"
access: RPA
}
And I can connect from the local network ok. But when I try a remote
connection, as soon as I do the authinfo pass, it exits immediately,
whether I give a valid password or not. Is there a log file I can see
what's going on? It's not logging anything to news.err.
--
Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/
ALL programs are poems, it's just that not all programmers are poets.
-- Jonathan Guthrie in the scary.devil.monastery
Re: Allowing moderators?
Author: Paul Tomblin
Date: Mon, 13 Oct 2003 17:38
Date: Mon, 13 Oct 2003 17:38
18 lines
1936 bytes
1936 bytes
In a previous article, ptomblin@xcski.com (Paul Tomblin) said:
>Actually, ckpasswd would probably be adequate if I could just figure out
>what I'm doing wrong. I've now modified readers.conf as follows:
>
>auth "everybodyelse" {
> auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/remote_passwords"
>}
Ok, never mind. Added "nntplinklog: true" in inn.conf, saw that I didn't
need the full path to ckpasswd, and now it's working. Not sure why it
wasn't working before I added the path stuff. Oh well.
--
Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/
Sign on door of computing lecturer: "If your project is 90% right,
I have to give you a distinction, your employer will fire you."
-- Zebee
Re: Allowing moderators?
Author: Russ Allbery
Date: Mon, 13 Oct 2003 18:20
Date: Mon, 13 Oct 2003 18:20
14 lines
1777 bytes
1777 bytes
Paul Tomblin <ptomblin@xcski.com> writes:
> Ok, never mind. Added "nntplinklog: true" in inn.conf, saw that I
> didn't need the full path to ckpasswd, and now it's working. Not sure
> why it wasn't working before I added the path stuff. Oh well.
Ack, you actually use nntplinklog? I was going to remove that option, so
it's good that I saw this. What do you use it for?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Allowing moderators?
Author: Paul Tomblin
Date: Mon, 13 Oct 2003 18:39
Date: Mon, 13 Oct 2003 18:39
19 lines
2152 bytes
2152 bytes
In a previous article, Russ Allbery <rra@stanford.edu> said:
>Paul Tomblin <ptomblin@xcski.com> writes:
>> Ok, never mind. Added "nntplinklog: true" in inn.conf, saw that I
>> didn't need the full path to ckpasswd, and now it's working. Not sure
>> why it wasn't working before I added the path stuff. Oh well.
>
>Ack, you actually use nntplinklog? I was going to remove that option, so
>it's good that I saw this. What do you use it for?
I dunno - I hadn't seen anything in the logs before, so I thought maybe it
was what caused the messages to appear. Or maybe it was because
beforehand I was expecting the errors to appear in news.err but I actually
found them in news.notice. So maybe it did nothing.
--
Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/
Reliability went through the floor, tunnelled its way to the centre of
the Earth, and perished in the magma.
-- Saundo
Re: Allowing moderators?
Author: Russ Allbery
Date: Mon, 13 Oct 2003 18:44
Date: Mon, 13 Oct 2003 18:44
16 lines
1912 bytes
1912 bytes
Paul Tomblin <ptomblin@xcski.com> writes:
> I dunno - I hadn't seen anything in the logs before, so I thought maybe
> it was what caused the messages to appear. Or maybe it was because
> beforehand I was expecting the errors to appear in news.err but I
> actually found them in news.notice. So maybe it did nothing.
Ah, okay. nntplinklog just adds the storage API token to the news log
(not news.notice or news.err), so it probably isn't what you actually
want.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads