Thread View: news.software.nntp
15 messages
15 total messages
Started by Iulius
Sun, 18 Mar 2007 17:44
Problem with Approved headers
Author: Iulius
Date: Sun, 18 Mar 2007 17:44
Date: Sun, 18 Mar 2007 17:44
34 lines
1907 bytes
1907 bytes
Hi,
Using INN 2.4.3 (sarge version), I have a little issue with
Approved headers.
I know that there was a problem with 2.3 version but it should not
be here in 2.4.*.
In fact, I have in readers.conf:
auth "ssl-ext" {
hosts: "*"
key: "ldap"
auth: "ckpasswd"
}
access "ssl-ext" {
key: "ldap"
strippath: "true"
newsgroups: "*,!junk,!control.cancel"
access: RP
}
And I still can send approved articles in moderated groups.
Am I missing something?
By the way, if I put « access: R », I cannot post at all (so I believe
the line is well seen and used by INN).
--
Iulius
« Quand on demande aux gens d'observer le silence, au lieu de l'observer
comme on observe une éclipse de lune, ils l'écoutent ! » (Raymond Devos)
Re: Problem with Approved headers
Author: bozweb
Date: Sun, 18 Mar 2007 18:35
Date: Sun, 18 Mar 2007 18:35
37 lines
1893 bytes
1893 bytes
On Sun, 18 Mar 2007 18:44:33 +0100, Iulius
<iulius@nom-de-mon-site.com.invalid> wrote:
>Hi,
>
>Using INN 2.4.3 (sarge version), I have a little issue with
>Approved headers.
>I know that there was a problem with 2.3 version but it should not
>be here in 2.4.*.
>
>In fact, I have in readers.conf:
>
>}
>
>access "ssl-ext" {
> key: "ldap"
> strippath: "true"
> newsgroups: "*,!junk,!control.cancel"
> access: RP
^^^^
>}
>
>
>And I still can send approved articles in moderated groups.
>Am I missing something?
>
>By the way, if I put « access: R », I cannot post at all (so I believe
>the line is well seen and used by INN).
access "ssl-ext" {
> key: "ldap"
> strippath: "true"
> newsgroups: "*,!junk,!control.cancel"
> access: RPA
^^^^^
Re: Problem with Approved headers
Author: Iulius
Date: Sun, 18 Mar 2007 18:52
Date: Sun, 18 Mar 2007 18:52
15 lines
1768 bytes
1768 bytes
En réponse à bozweb : >> access: RPA > ^^^^^ But that is for enabling users to send Approved headers. I wish to do the contrary: not allowing them to do that. --> « And I still can send approved articles in moderated groups. » I do not understand why it does not work in my INN 2.4.3 (whether the flag « A » is here does not seem to change anything) -- Iulius « Ad augusta, per angusta. » (les conjurés de _Hernani_)
Re: Problem with Approved headers
Author: Russ Allbery
Date: Sun, 18 Mar 2007 20:33
Date: Sun, 18 Mar 2007 20:33
35 lines
2131 bytes
2131 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> Using INN 2.4.3 (sarge version), I have a little issue with Approved
> headers. I know that there was a problem with 2.3 version but it should
> not be here in 2.4.*.
There was a problem fixed in 2.4.3, but yes, this should work in 2.4.3.
> In fact, I have in readers.conf:
> auth "ssl-ext" {
> hosts: "*"
> key: "ldap"
> auth: "ckpasswd"
> }
> access "ssl-ext" {
> key: "ldap"
> strippath: "true"
> newsgroups: "*,!junk,!control.cancel"
> access: RP
> }
> And I still can send approved articles in moderated groups. Am I
> missing something?
Not that I can see off-hand, but I also can't see any problems with the
current code here. Are you sure that there aren't any permissions in
readers.conf that are overriding those?
--
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: Problem with Approved headers
Author: Iulius
Date: Sun, 18 Mar 2007 21:00
Date: Sun, 18 Mar 2007 21:00
34 lines
2283 bytes
2283 bytes
En réponse à Russ Allbery : >> Using INN 2.4.3 (sarge version), I have a little issue with Approved >> headers. I know that there was a problem with 2.3 version but it should >> not be here in 2.4.*. > > There was a problem fixed in 2.4.3, but yes, this should work in 2.4.3. Hmmm... Thus the problem should be here. The Sarge news server answers: 200 news.ecp.fr InterNetNews server INN 2.4.3 (20050407 prerelease) ready But ~% apt-cache policy inn2 inn2: Installed: 2.4.2-3 And I see that it is the real 2.4.3 in Etch. Strange there is a difference in what the news server claims to be: INN 2.4.3, prelease or not. > Not that I can see off-hand, but I also can't see any problems with the > current code here. Are you sure that there aren't any permissions in > readers.conf that are overriding those? Everything looks fine. I believe it is a problem of version. Well, I hope stable Etch will release pretty soon :) -- Iulius « -- Attention, vous autres ; le chef a dit de le ramener vivant ! -- Finasser ! Toujours finasser ! » (Astérix)
Re: Problem with Approved headers
Author: Russ Allbery
Date: Sun, 18 Mar 2007 21:05
Date: Sun, 18 Mar 2007 21:05
16 lines
1612 bytes
1612 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> Hmmm...
> Thus the problem should be here.
> The Sarge news server answers:
> 200 news.ecp.fr InterNetNews server INN 2.4.3 (20050407 prerelease) ready
Oh, yes, that pre-release is too old to have this fix. It was committed
in December of 2005.
--
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: Problem with Approved headers
Author: Iulius
Date: Sun, 18 Mar 2007 21:13
Date: Sun, 18 Mar 2007 21:13
15 lines
1763 bytes
1763 bytes
En réponse à Russ Allbery : >> The Sarge news server answers: >> 200 news.ecp.fr InterNetNews server INN 2.4.3 (20050407 prerelease) ready > > Oh, yes, that pre-release is too old to have this fix. It was committed > in December of 2005. All right. Thanks a lot for your having answered that quickly! (and also thank you, bozweb) -- Iulius « Dès l'époque secondaire, les mollusques construisaient leur coquille en suivant les leçons de géométrie transcendante. » (Gaston Bachelard)
Re: Problem with Approved headers
Author: Alexander Bartolich
Date: Sun, 18 Mar 2007 21:51
Date: Sun, 18 Mar 2007 21:51
35 lines
2258 bytes
2258 bytes
Russ Allbery wrote:
> Iulius <iulius@nom-de-mon-site.com.invalid> writes:
>
>> Hmmm...
>> Thus the problem should be here.
>
>> The Sarge news server answers:
>> 200 news.ecp.fr InterNetNews server INN 2.4.3 (20050407 prerelease) ready
>
> Oh, yes, that pre-release is too old to have this fix.
> It was committed in December of 2005.
Too bad. We are using the same version.
And just got in an abuse report. :-(
The workaround is a change to function "filter_post" in
/etc/news/filter/filter_nnrpd.pl
if (exists( $hdr{'Approved'} ))
{
my $pattern = $MODERATOR_USER{$user};
unless(defined($pattern) && $hdr{'Newsgroups'} =~ m/$pattern/)
{
return "You are not allowed to send approved postings to this group."
}
}
where permissions are statically defined, e.g.
our %MODERATOR_USER = (
'alexander.bartolich@gmx.at'
=> '(^|,)(albasani\.|de\.admin\.net-abuse\.announce)',
);
--
Re: Problem with Approved headers
Author: Iulius
Date: Sun, 18 Mar 2007 23:03
Date: Sun, 18 Mar 2007 23:03
24 lines
2108 bytes
2108 bytes
En réponse à Alexander Bartolich :
> Too bad. We are using the same version.
> And just got in an abuse report. :-(
>
> The workaround is a change to function "filter_post" in
> /etc/news/filter/filter_nnrpd.pl
>
> my $pattern = $MODERATOR_USER{$user};
Sure. But there is still possibility to send articles with
your e-mail...
The best is to authenticate. As for one, I do a auth ckpasswd
against a ldap since the readers connect with nntp/ssl and
then say in « readers.conf » which users are allowed to
send approved articles.
I know I can do the same with a perl filter hook, but as
there is no emergency, I will wait for Etch :)
--
Iulius
« Dès l'époque secondaire, les mollusques construisaient leur coquille
en suivant les leçons de géométrie transcendante. » (Gaston Bachelard)
Re: Problem with Approved headers
Author: bozweb
Date: Sun, 18 Mar 2007 23:21
Date: Sun, 18 Mar 2007 23:21
16 lines
1749 bytes
1749 bytes
On Sun, 18 Mar 2007 19:52:00 +0100, Iulius <iulius@nom-de-mon-site.com.invalid> wrote: >En réponse à bozweb : >>> access: RPA >> ^^^^^ > >But that is for enabling users to send Approved headers. >I wish to do the contrary: not allowing them to do that. >--> « And I still can send approved articles in moderated groups. » > >I do not understand why it does not work in my INN 2.4.3 >(whether the flag « A » is here does not seem to change anything) Hm, i can only with my account post approved headers. Test with another account result in posting not allowed .
Re: Problem with Approved headers
Author: Alexander Bartolich
Date: Mon, 19 Mar 2007 07:19
Date: Mon, 19 Mar 2007 07:19
37 lines
2649 bytes
2649 bytes
Iulius wrote:
> En réponse à Alexander Bartolich :
>> Too bad. We are using the same version.
>> And just got in an abuse report. :-(
>>
>> The workaround is a change to function "filter_post" in
>> /etc/news/filter/filter_nnrpd.pl
>>
>> my $pattern = $MODERATOR_USER{$user};
>
> Sure. But there is still possibility to send articles with
> your e-mail...
Inside sub filter_post variable $user holds the authenticated login.
This is completely unrelated to the contents of From: or Reply-To:.
> The best is to authenticate. As for one, I do a auth ckpasswd
> against a ldap since the readers connect with nntp/ssl
I use my own script and MySQL.
> and then say in « readers.conf » which users are allowed to
> send approved articles.
Yeah. Only that it does not work right now.
Anyway, my workaround associates each user with a pattern of allowed
groups. This is more fine-grained control than readers.conf's all-or-
nothing approach.
> I know I can do the same with a perl filter hook, but as
> there is no emergency, I will wait for Etch :)
Well, I just received an abuse report from a moderator ...
--
http://news.albasani.net/
Re: Problem with Approved headers
Author: Iulius
Date: Mon, 19 Mar 2007 09:46
Date: Mon, 19 Mar 2007 09:46
22 lines
2092 bytes
2092 bytes
En réponse à Alexander Bartolich : > Inside sub filter_post variable $user holds the authenticated login. > This is completely unrelated to the contents of From: or Reply-To:. You're right. Thanks for the hint. I will see to it what I can do with that. > Anyway, my workaround associates each user with a pattern of allowed > groups. This is more fine-grained control than readers.conf's all-or- > nothing approach. Well, you can also use « perl_access » in « readers.conf » to achieve that (but without dealing with approved headers!). http://www.eyrie.org/~eagle/software/inn/docs-2.4/hook-perl.html -> Dynamic Generation of Access Groups -- Iulius « Nunc est bibendum. » (Horace)
Re: Problem with Approved headers
Author: Alexander Bartolich
Date: Mon, 19 Mar 2007 21:42
Date: Mon, 19 Mar 2007 21:42
8 lines
1764 bytes
1764 bytes
Iulius wrote: > [...] > Well, you can also use « perl_access » in « readers.conf » to achieve that > (but without dealing with approved headers!). Of course. But that runs into the same bug. --
Re: Problem with Approved headers
Author: Jeffrey M. Vinocur
Date: Tue, 20 Mar 2007 00:49
Date: Tue, 20 Mar 2007 00:49
12 lines
1392 bytes
1392 bytes
In article <etn053$ie7$1@news.albasani.net>, Alexander Bartolich <alexander.bartolich@gmx.at> wrote: > >Of course. But that runs into the same bug. Wait, why are we coming up with workarounds for a bug that was fixed years ago? -- Jeffrey M. Vinocur jeff@litech.org
Re: Problem with Approved headers
Author: Ray Banana
Date: Tue, 20 Mar 2007 05:14
Date: Tue, 20 Mar 2007 05:14
13 lines
2028 bytes
2028 bytes
Thus spake jeff@litech.org (Jeffrey M. Vinocur) > Wait, why are we coming up with workarounds for a bug that was > fixed years ago? Because the fix hasn't yet made it into Debian stable. On the other hand there is http://www.backports.org/ -- Too many ingredients in the soup, no room for a spoon. http://news.motzarella.org
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