Article View: news.software.nntp
Article #47868Re: nnrpd authentication and ssl
From: Russ Allbery
Date: Tue, 15 Aug 2000 00:00
Date: Tue, 15 Aug 2000 00:00
50 lines
3058 bytes
3058 bytes
As a side note, the SSL support in INN 2.3 BETA should be considered
experimental. It still definitely needs work; it's in there mostly for
people to start playing with and may not do what you want.
jpb <jpb@sprintmail.com> writes:
> I'm trying to find out if anyone is using authentication over ssl with
> INN 2.3 (20000809 prerelease) . Here is what I am trying to set up.
> 1) Any user from *.local.com can read/post over ports 119 and 563.
> 2) Users outside *.local.com must authenticate over ssl (563), no clear
> text auth over 119.
You'll probably need to read two readers.conf files for this and point
nnrpd at two different ones depending on whether it's running under SSL or
not; I don't think nnrpd currently supports selecting different behavior
based on whether the connection came over SSL.
> I've had some luck with nnrpd_auth.pl although I'm not sure what the
> 5'th return value should be. For example return(281,1,1,"*",0), nnrpd
> now return an error if only 4 values are returned. Is there a updated
> perl hook document.
authenticate() should return a five-element array. The first element
is the NNTP response code to return to the client, the second element
is a boolean value indicating whether the client is allowed to read,
the third element is a boolean value indicating whether the client is
allowed to post, the fourth element is a wildmat(3) expression that
says what groups the client is allowed to read, and the fifth element
is the maximum bytes per second a client is permitted to use for
retrieving articles.
In general, you probably want to return 0 for the fifth element unless you
want to do rate limiting.
> Actually I was hoping that I could do all my authentication from
> readers.conf since it would be mostly ip based restriction, only off
> site connections would require ssl. Calling perl every connection seems
> a waste. Using the "auth:" command in readers.conf is not working, only
> the "res:" program appears to be called. Are these programs still
> returning nnrp.access style reply's?
auth: should work fine; the program you want to use to check passwords is
ckpasswd. There's a paucity of documentation, but the examples in the
readers.conf man page should help.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylvgx21gxx.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<3999174C.F82B4031@sprintmail.com>Show Full Headers
Complete Article Headers
Message-ID: <ylvgx21gxx.fsf@windlord.stanford.edu> Subject: Re: nnrpd authentication and ssl Date: Tue, 15 Aug 2000 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <3999174C.F82B4031@sprintmail.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 658631165 Content-Type: text/plain; charset=us-ascii Organization: The Eyrie Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Newsgroups: news.software.nntp