Thread View: news.software.nntp
2 messages
2 total messages
Started by bill davidsen
Tue, 06 Jul 1999 00:00
reader.conf docs?
Author: bill davidsen
Date: Tue, 06 Jul 1999 00:00
Date: Tue, 06 Jul 1999 00:00
20 lines
1553 bytes
1553 bytes
Is there some way I'm missing to disable this reader.conf garbage in in 2.3 and return to something sane? The overhead of parsing hundreds or thousands of lines of config, and the lack of simple working examples (as opposed to "here are tricky things") makes this look like a nightmare compared to nnrp.access. Writing a stanza per IP address is totally impractical, I'm sure someone just didn't get to documenting the real way this works, including which fields are requires and which optional. I can make it work in a very ugly way, but no one could really have had this in mind in a real situation with several hundred CIDR blocks to auth. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc The Internet is not the fountain of youth, but some days it feels like the fountain of immaturity.
Re: reader.conf docs?
Author: Aidan Cully
Date: Wed, 07 Jul 1999 00:00
Date: Wed, 07 Jul 1999 00:00
72 lines
2787 bytes
2787 bytes
If you'd like specific help with your readers.conf, please reply to me
in e-mail.
In news.software.nntp, davidsen@tmr.com (bill davidsen) wrote:
> Is there some way I'm missing to disable this reader.conf garbage in in
> 2.3 and return to something sane?
The nnrpd perl authenticator provided with INN parses the old
nnrp.access file. (or at least it did.. I haven't looked in a while.)
> The overhead of parsing hundreds or
> thousands of lines of config, and the lack of simple working examples
> (as opposed to "here are tricky things") makes this look like a
> nightmare compared to nnrp.access.
I'm working on a new config engine which will eliminate the overhead
(after startup) when running nnrpd in daemon mode.
> Writing a stanza per IP address is totally impractical, I'm sure someone
> just didn't get to documenting the real way this works, including which
> fields are requires and which optional.
You should not need to write a stanza per IP address.. Assuming that
all your users can read the same newsgroups, the following would work
(for example):
auth "foobar" {
hosts: "10.0.0.1, 10.0.0.2,
10.0.0.3, &c."
default: "<internal-network>"
}
access "internal" {
users: "<internal-network>"
newsgroups: "*"
access: "Read Post"
}
If each IP address has a different remote user associated with it, then
you can still write a really simple authenticator which will retrieve
the user from an external database for you:
auth "foobar" {
hosts: "same as above"
auth "ipdb /news/etc/customers"
}
...
#!/usr/local/bin/perl
while (<STDIN>) {
chop;
chop if ($_ =~ /\r$/);
if ($_ =~ /^Client-IP: /) {
$ip = $_;
$ip =~ s/^Client-IP: //;
}
}
dbmopen(%hash, "$ARGV[0]", 0600);
if (defined($hash{$ip}) {
print "user:" . $hash{$ip} . "\r\n";
} else {
print STDERR "Unknown IP address $ip\r\n";
exit 1;
}
dbmclose(%hash);
HTH,
--aidan
--
Aidan Cully "Umm.. Could you call back? My house is on fire."
Panix Staff --Tom Waits
aidan@panix.com
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