🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37998

Re: Roaming users

#37998
From: Dan Foster
Date: Sun, 13 Jun 1999 00:00
87 lines
4257 bytes
In article <brad-0906991205260001@brad.techos.skynet.be>,
Brad Knowles <brad@shub-internet.org> wrote:
>In article <7jl9qh$nc7$1@news.inet.tele.dk>, Jan Chrillesen
><chrille@isa.dknet.dk> wrote:
>
>> Does anyone have experience with roaming users and news? Of course my
>> problem is how to authenticate users.
>
>    If they authenticate themselves to the server with a userid &
>password, you could then allow them to have access.
>
>    The trick would be tying in your INN configuration to your RADIUS
>server so that you could authenticate their passwords without them having
>to have accounts or your having to use something bletcherous like NIS on
>your news server.
>
>    I believe that this is possible with INN 2.2-current (what will likely
>turn into 2.3) and the nnrpd.conf configuration file.

Yeah, it's pretty trivial with the more recent 2.2-current snapshots.

Here's how to do it:

1. Get latest 2.2-current snapshot from ISC via CVS (preferred) or via FTP.
   Install it. Perhaps on a test machine? You wouldn't even have to set up
   a news feed to it for just testing authentication, so space/CPU is not
   an issue.

2. Hop onto your RADIUS server, and create an entry in the 'clients' file
   with a separate shared secret (password) and restart daemon.

3. I use /news as the prefix - change to fit your location, of course.

   Create a file in /news/etc/radauth.conf with three items:

   secret: m00s3h3@d
   radhost: my.radius.server
   radport: 1812

   (change my.radius.server to the DNS hostname of your RADIUS server,
   and radport will probably be either 1812 -- official, or the older and
   depreciated 1645. Also, change secret to whatever you use)

4. Now you will want to make sure the entry in readers.conf under appropriate
   section(s) looks something like this:

   auth: "radius -f /news/etc/radauth.conf"

   That says to run the supplied 'radius' binary in /news/bin/auth/passwd/ that
   takes authinfo user/pass info, and turns it into a RADIUS request, and parses
   the RADIUS response, and returns it in form of a numeric code to nnrpd.

   Add the 'auth' line to any stanzas in readers.conf for those that you
   wish to do RADIUS authentication for.

5. Test by doing:

   $ telnet localhost 119
   authinfo user <username>
   authinfo pass <password>
   quit

   You *may* need to use 'mode reader' as the first command *if* you don't
   see the nnrp banner pop up. Also, once nnrpd banner pops up... you have
   10 seconds to enter a command, *any* command before it closes the session.
   Subsequent commands will have 60 seconds by default before idles out, I
   think.

   If successful, it should return a '281 Ok'. If failure, it should return
   a '502 Authentication error'. If you get just numbers (just '281', '502')
   and no text next to it... then you have a problem somewhere with your
   setup.

   And, you would telnet to the appropriate hostname depending on what
   entries in readers.conf you set up RADIUS for. I set up the RADIUS stuff
   under the 'localhost' entry, so I can test with 127.0.0.1 or localhost.

6. Read the docs. There are some more RADIUS-related options, such as 'key',
   that we use because of our local setup (ie tack on a realm). One good place
   would be 'man readers.conf'. Or read the sources. :-)

Good luck. Any problems? Post back to news.software.nntp or join the
inn-workers mailing list.

-Dan

Technical Details
Message-ID: <7juuvd$19vu$1@node17.cwnet.frontiernet.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.mbox.zip!not-for-mail
References: <7jl9qh$nc7$1@news.inet.tele.dk> <brad-0906991205260001@brad.techos.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <7juuvd$19vu$1@node17.cwnet.frontiernet.net>
Subject: Re: Roaming users
Date: Sun, 13 Jun 1999 00:00:00 +0000
From: dsf@frontiernet.net (Dan Foster)
References: <7jl9qh$nc7$1@news.inet.tele.dk> <brad-0906991205260001@brad.techos.skynet.be>
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: 488936162
X-Complaints-To: abuse@frontiernet.net
X-Trace: node17.cwnet.frontiernet.net 929234733 43006 209.130.129.70 (13 Jun 1999 00:45:33 GMT)
Organization: Frontier GlobalCenter
NNTP-Posting-Date: 13 Jun 1999 00:45:33 GMT
Newsgroups: news.software.nntp