🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Elizabeth Zaenger Wed, 28 Nov 2001 19:47
PW Auth, Inn 2.3.2
#55391
Author: Elizabeth Zaenger
Date: Wed, 28 Nov 2001 19:47
91 lines
3680 bytes
I am struggling with password authentication in INN 2.3.2.  I currently
allow read/post to all users coming from certain domains, without any
authentication.  I want to continue doing this, but also allow anyone coming 
from any other place not mentioned in the specific domains the chance to 
authenticate first,  and then read/post.

Here is my current readers.conf:


       auth "eecs.umich.edu" {
            key: umich
            hosts: "*.eecs.umich.edu"
            default: "<user>"
            default-domain: "eecs.umich.edu"
        }

...<several more domains listed exactly like this with key: umich >

        auth "192.138.*" {
            key: outside
            hosts: "*.kettering.edu"
            default: "<user>"
            default-domain: "kettering.edu"
        }

...<several more domains listed exactly like this with key: outside >

        access "inside-umich" {
            key: umich
            users: *
            newsgroups: "*"
            access: "RP"
        }

        access "outside-umich" {
            key: outside
            users: *
            newsgroups: "*,!fedreg,!clari"
            access: "RP"
        }


For the password access, I've added this:
 
       auth "users-outside" {
        key: pw-access
        auth: "ckpasswd -f /news/etc/password/news-passwords"
        }

        access "users-outside" {
        key:  pw-access
        newsgroups: *
        access: "RP"
        virtualhost: true
        pathhost: news.eecs.umich.edu
        domain: eecs.umich.edu
        }

When I had the auth block for "pw-access" at the bottom of the auth list, it
wasn't prompting for passwords, but was open to all machines, both inside
the domain and outside the domain.  

When I had the auth block for "pw-access" at the top of the auth list,
the news reader from an outside machine said 

"503 NNTP server unavailable. Try later."

and my logs said 

"domain parameter(users-outside) in readers.conf must be different from the one in inn.conf"  

If the outside machine connected directly to port 119, it was open 
for read/post w/o authentication, however.  I also got this message in my 
logs from some random machine trying to connect, which makes me think the 
authentication was working on some level:

"nnrpd[3326]: i110-187.nv.iinet.net.au connect
nnrpd[3326]: i110-187.nv.iinet.net.au auth_err ckpasswd: user guest does not exist.
nnrpd[3326]: i110-187.nv.iinet.net.au bad_auth"

So, after reading the man page several times and going thru the "example" file,
I'm stumped.  What are the magic incantations to make this work?

-- 
Elizabeth Zaenger, Unix Support
Departmental Computing Organization
University of Michigan, Electrical Engineering and Computer Science Dept.


Re: PW Auth, Inn 2.3.2
#55440
Author: Jeffrey M. Vinocur
Date: Sun, 02 Dec 2001 22:33
95 lines
3830 bytes
In article <watoflmu174.fsf@che.eecs.umich.edu>,
Elizabeth Zaenger  <liz@eecs.umich.edu> wrote:
>
>I am struggling with password authentication in INN 2.3.2.

:-)  Yeah, it happens.  If you work on it long enough,
enlightenment will come.  (You'll know because you don't feel the
need to use key: for everything.)

But in the meantime, let's see if we can help you...


>        auth "192.138.*" {

You know that the string after auth is just a comment, right?


>            access: "RP"

You don't need to do this; read and post is the default if you
use newsgroups: (instead of separate read: and post: lines).  In
fact, access: is deprecated.


>            newsgroups: "*,!fedreg,!clari"

Uh, this needs to be "*,!fedreg.*,!clari.*" for it to do what you
want it to.


>       auth "users-outside" {
>        key: pw-access
>        auth: "ckpasswd -f /news/etc/password/news-passwords"
>        }

Ok, that looks fine, I think.

I can never remember what behavior you get on a failed
authentication, so I do "default: <FAIL>" and have an access
block with the same key, "users: <FAIL>", and "newsgroups: !*",
just in case.  (That goes at the end of the file.)


>        access "users-outside" {
>        key:  pw-access
>        newsgroups: *
>        access: "RP"
>        virtualhost: true
>        pathhost: news.eecs.umich.edu
>        domain: eecs.umich.edu
>        }

Uh, do you need to use virtualhost here?  It sounds like those
are your regular pathhost and domain.


>When I had the auth block for "pw-access" at the bottom of the auth list, it
>wasn't prompting for passwords, but was open to all machines, both inside
>the domain and outside the domain.  

Are you sure?  (I mean, I believe you; are you sure that's all
that you changed?)  It should be at the top, anyway; although it
doesn't really matter since that's the only block with an auth:
line.


>"domain parameter(users-outside) in readers.conf must be different from
>the one in inn.conf"  

Yeah, that's your virtualhosting, I think.


>If the outside machine connected directly to port 119, it was open 
>for read/post w/o authentication, however.

Hrmrm.  No arrangement of the blocks you gave should let that
happen.


>So, after reading the man page several times and going thru the "example" file,
>I'm stumped.  What are the magic incantations to make this work?

Hehe.  You're in the right place.  The reason the responses are
slow is because readers.conf is relatively write-only -- once you
grok it, you can write one that's likely to work.  (I
accidentally deleted mine -- which is relatively complicated --
once, and was able to recreate without any trouble.)  But it's
really hard to look at a readers.conf and figure out what it
actually does.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads