Article View: news.software.nntp
Article #72323Re: Authentication advice
From: John F. Morse
Date: Mon, 26 Sep 2005 14:18
Date: Mon, 26 Sep 2005 14:18
210 lines
9783 bytes
9783 bytes
Jeffrey M. Vinocur wrote: >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? > > 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. The ckpasswd method is the best I have found, and that is what I will use since you also agreed. I didn't mean to imply that I wanted anything rewritten or added. I just wanted to find the best available method for me, which you confirmed with ckpasswd. Please forget this part as it is a non-issue. >>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. > > I understand the IP and FQDN access, and as you correctly noted, I could not use it due to the users spread. Many use a DHCP ISP assignment, and those on DSL and cable are also dynamic, although a cable IP can live for years. 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.)? >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. > > My current RumorMill NNTP server has five groups (plus test, local.test and the control groups). The users were formerly using the Ft. Worth Star-Telegram NNTP server, which closed down in early 2001. Prior to this, the newsmaster who created the FW S-T news server moved to the Dallas Morning News. He was asked and then added one FW S-T group, Brisbee, a virtual city. The DMN ran an HTTP-based forum, and everyone hated it. So I fired up the RumorMill NNTP server, and created four of the old FW S-T groups, plus one from a defunct Kansas City Star NNTP server. The FW S-T and the KC Star are both Knight-Ridder rags, and I think they realized there is no income in NNTP, only expenses in maintaining it. As I previously mentioned, I had to lock down the server a couple of months ago due to abuse (username and password is now required). I have desired for several years to also have a server for the general public to use. It will be based on a ministry that a friend operates. Naturally we don't want to force people to jump through hoops to access whatever religious groups are created. This "open access" area could also be used to announce (in a read-only group) the instructions for accessing the "closed access" portion. Such as who to e-mail with a username and password choice. I ran a multi-node dial-up BBS for about ten years before the Internet took away all the users. <g> In 2001 I closed it down after I had the NNTP server running for a few months. It provided an ANSI graphics "welcome screen" that anyone could read. This gave information on how to obtain an account for access, etc. Since NNTP provides no such welcome (well, you can use telnet and sometimes get some info), I thought a non-authentication, read-only group could be used to supply access instructions. I would prefer one computer, running INN, take care of all NNTP, instead of running multiple computers. If you have a better idea, I'm all ears. <g> >>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.) > > I take this to mean user accounts? No, I don't want to create hundreds of users. <g> 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. 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'll just need to keep an eye (a "feel") on messages, and if I suspect something, I can change the user's password. That would be far easier than trying to configure a FQDN or IP range in readers.conf for a specific user who has a dynamic ISP IP assignment. >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. > > I'll stick in /var/spool/news where Debian created news' home directory. 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. Maybe I'm not understanding it? Does it encrypt everything, or just the password? >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. > > Each problem's solution seems to create two new questions -- at least. I think I'll fix the issues, one by one, instead of starting from scratch, or I may never get it working. <g> >>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. > > I really do appreciate your time. -- John
Technical Details
Message-ID:
<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!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mailReferences:
<2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <dh4dmf$d5u$1@puck.litech.org> <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET> <dh71qj$q1b$3@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net> Subject: Re: Authentication advice Date: Mon, 26 Sep 2005 14:18:10 GMT From: "John F. Morse" <xanadu.bbs@invalid.net> References: <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <dh4dmf$d5u$1@puck.litech.org> <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET> <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!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail Reply-To: xanadu.bbs@invalid.net Organization: Xanadu BBS User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <dh71qj$q1b$3@puck.litech.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 210 NNTP-Posting-Host: 2edd16a494a127a11cfd985db0631294 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1127744290 NNTP-Posting-Date: Mon, 26 Sep 2005 14:18:10 GMT