Article View: news.software.nntp
Article #72326Re: Authentication advice
From: Jeffrey M. Vinocur
Date: Mon, 26 Sep 2005 21:10
Date: Mon, 26 Sep 2005 21:10
135 lines
6130 bytes
6130 bytes
In article <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>I was saying that I thought I had read where readers.conf could be
>configured with a username and password (or a list of them), in multiple
>access stanzas. I thought that if this type of access "list" were used,
>it would be a nightmare to keep current.
What you describe may be nnrp.access, which is the old system
that readers.conf replaced for the reasons you note.
>I didn't mean to imply that I wanted anything rewritten or added.
I didn't think you did :-)
I was offering it as a hypothetical to help me figure out your
needs. (I find that sometimes people don't understand INN well
enough to ask for the right sort of help.) But it seems we've
got it straightened out.
>I saw the radius method, and thought it might work. The Debian Synaptic
>package manager shows several radius servers are available (freeradius,
>radiusd-cistron, radiusd-livingston, xradius, yardradius).
>
>Did you recommend ckpasswd over radius for any particular reason
>(simplicity, speed, familiarity, etc.)?
All of the above :-)
Radius support exists in INN for a specific use, namely ISP
outsourcing. It works like this: ISPs A, B, and C are too small
to run their own fullfeed NNTP servers, but want to offer their
users Usenet access. They arrange for a third-party NNTP
reseller X to provide this service to their users. But the ISPs
each have their own password databases, and X has to be able to
verify passwords against them. So the way it works is, each ISP
runs a radius server. When a client appearing to be from ISP A
connects to X's server, the server takes the client username and
password and asks A's radius server if they are correct.
Similarly for clients from B and C.
So while you -could- use radius for your personal server, it is
unlikely to be worth your while. As Bill points out, if you were
running multiple servers all with the same user database, it
could be useful, but for a single server, there's really no
point.
>My current RumorMill NNTP server has [...]
Ah ha!
Your conceptualization sounds great, and you can easily do this
with INN.
>I take this to mean user accounts? No, I don't want to create hundreds
>of users. <g>
I didn't think so!
>However I do want to use SSL to protect the user's passwords from
>possible sniffers. They should have no trouble with SSL if they use a
>modern news client. Those which do not support SSL can be passed through
>Stunnel.
Okay...you can take this route if you like, but I think you'll be
surprised at how few clients have adequate SSL support.
(Hopefully this will change in the future as standards in this
area are published.)
For what it's worth, as long as you caution users not to use the
same passwords for this as any other service, I think it's not
unreasonable to allow unencrypted connections. (Consider that if
you used mailing lists instead of newsgroups, all the messages
would be sent unencrypted across the network, subscriptions would
take place using passwords send in plaintext email, etc.)
>Another thought I've had is the possibility of a user being hacked (most
>run M$ Windoze, so this is not unlikely). A hacker could steal account
>information, then create problems while impersonating a real user.
I've never heard of this happening. I suppose it's possible that
someone would set out to purposefully target one of your users,
but I wouldn't spend too much time preparing for it.
>I have the file set up as "username:password:Real Name" now, but I don't
>understand how to encrypt it with htpasswd -- as a single batch. I sure
>wouldn't want to retype all of the entries. The man htpasswd does not
>explain how to do the encryption on a textfile, nor can I figure out how
>it would know to only encrypt the data after the first colon, and stop
>at the second colon.
Right, htpasswd doesn't take a file like that as input. The
"normal" use is to add users one at a time on a commandline. And
you're right, I don't think it knows about extra fields on the
end, although many people find them useful.
But hey, you use unix, so no harm done. Here's a little script
that will take the file you have now, encrypt each password, and
output the result:
#!/usr/bin/perl -w
use strict;
while( <> ) {
chomp;
if( my ($user,$pass,$rest) = /([^:]*):([^:]*)(:?.*)/ ) {
my $out = `htpasswd -ndb $user $pass`;
$out =~ s/\s*$//;
print "$out$rest\n";
} else {
warn "Unable to parse: \"$_\"";
}
}
>I really do appreciate your time.
Glad to be of service.
I hang out here specifically to answer questions, and you're
clearly putting in your share of effort, so it's a pleasure to
help.
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<dh9o4t$jmk$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!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!news.glorb.com!news.litech.org!not-for-mailReferences:
<2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET> <dh71qj$q1b$3@puck.litech.org> <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net>Show Full Headers
Complete Article Headers
Message-ID: <dh9o4t$jmk$1@puck.litech.org> Subject: Re: Authentication advice Date: Mon, 26 Sep 2005 21:10:53 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET> <dh71qj$q1b$3@puck.litech.org> <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!news.glorb.com!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 135 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1127769053 20180 66.218.0.75 (26 Sep 2005 21:10:53 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Mon, 26 Sep 2005 21:10:53 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)