Article View: news.software.nntp
Article #72321Re: Authentication advice
From: Jeffrey M. Vinocur
Date: Sun, 25 Sep 2005 20:37
Date: Sun, 25 Sep 2005 20:37
92 lines
5072 bytes
5072 bytes
In article <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >I believe I read that readers.conf can authenticate a password, but I >said it would be a headache because many different usernames and >passwords would be better implemented by some other authentication method. Hmm. I'm not sure I follow here. Perhaps you could describe a hypothetical system that would be ideal for you, if you were hiring a consultant to rewrite INN to meet your needs? >My situation will be changing. Right now I'm testing with the existing >server(s), but soon I plan on providing open access for one, maybe more >access groups, then authenticated access for one or more access groups, >while maintaining multiple slave servers. > >Does your statement still hold to use ckpasswd as the best choice should >I grow? I think so. Let me explain further. The paradigm used by readers.conf is to separate (1) determining the identity of the user connecting from (2) determing what groups a given user should have access to. Understanding this paradigm is what gives people the most trouble. With regard to #1, there are several ways (which can be mixed) for determining a user's identity, including: you can assign it based on incoming IP address, you can query that source machine for ident information if you trust the answer you will receive, or you can prompt for username/password. If you go with username/password, then you have several options for determing if the supplied password is correct, including: looking it up in the unix system's password database as if it were an incoming ssh connection, looking it up in a separately-maintained file, and handing it off to a preexisting standalone radius server. For you, it sounds like your users are too spread out to be able to use IP address or ident information useful, so usernames and passwords are appropraite. The option that most closely approximates your previous software is to use ckpasswd to look them up in a separately-maintained file. None of this impacts #2, although I don't quite understand who you want to give "open access" to. >This looks very simple, but who should own this file, what access >permissions (note ckpasswd(5) -s setgid security warning), and in what >directory should it reside (where should "user-database" be)? You aren't using -s, so those warnings don't apply. (That's only if you want to use the regular system database to store your users, e.g. to have people using the same passwords for ssh and news access, which isn't anything you seem interested in.) So the file needs to be readable by the news user, and not readable by other people. You can store it anywhere you like -- the only thing INN cares about is that you specify the path in the ckpasswd command in readers.conf. So if you want to put it in ~news/etc/, that's reasonable, but you can put it anywhere your local system configuration dictates. >MD5 with PAM, or crypt? crypt. >Jeff, I have all of these docs and man pages. I've read them over and >over for the last 10 days, until I'm blue in the face. The Debian 3.1r0a >Synaptic install of INN 2.4.2-3 does not put some files in the >directories that match those in the various docs. I have to fly by the >seat of my pants, often trying my best guess several different ways. Yes, unfortunately some distributions repackage INN with files in atypical locations and then do not update the documentation. I have no good advice to offer for this case, except to say that you're free to ditch the package and compile from source. >Please bear with me while I ask for and receive good advice. This will >help me learn the many pieces of INN so I can reconfigure it in the >future. It will also prepare me to help others. No problem. -- Jeffrey M. Vinocur jeff@litech.org
Technical Details
Message-ID:
<dh71qj$q1b$3@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!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!news.glorb.com!news.litech.org!not-for-mailReferences:
<2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <dh4dmf$d5u$1@puck.litech.org> <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET>Show Full Headers
Complete Article Headers
Message-ID: <dh71qj$q1b$3@puck.litech.org> Subject: Re: Authentication advice Date: Sun, 25 Sep 2005 20:37:39 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <dh4dmf$d5u$1@puck.litech.org> <e90d4$4335d25a$4097152a$3064@EVERESTKC.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!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!news.glorb.com!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 92 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1127680659 26667 66.218.0.75 (25 Sep 2005 20:37:39 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Sun, 25 Sep 2005 20:37:39 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)