🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Andrzej Kwiatkowski Tue, 08 May 2001 16:17
authentication in inn 2.3.1
#52244
Author: Andrzej Kwiatkowski
Date: Tue, 08 May 2001 16:17
30 lines
1596 bytes
I want to have an access from localhost to all groups, and from any other
host other than localhost to all groups except control* and junk.
My readers.conf looks like :

auth "localhost" {
    hosts: "localhost, 127.0.0.1"
    default: "*"
}
access "localhost" {
    newsgroups: "*"
    users: "*"
}
auth "auth1" {
        auth: "ckpasswd -d /usr/local/news/db/newsusers"
        hosts: "*"
        default: "*"
}
access "auth1" {
    users: "*"
    read: "*,!control*,!junk*"
    post: "*,!control*,!junk*"
}


When i connect from localhost i only see these groups : "*,!control*,!junk*"

Have got any idea ?


Re: authentication in inn 2.3.1
#52247
Author: Jeffrey M. Vinocur
Date: Tue, 08 May 2001 19:00
34 lines
1957 bytes
In article <9d966d$bsr$1@news.tpi.pl>,
Andrzej Kwiatkowski <szerpcho@poczta.onet.pl> wrote:
>I want to have an access from localhost to all groups, and from any other
>host other than localhost to all groups except control* and junk.
>My readers.conf looks like :
>
>auth "localhost" {
>    hosts: "localhost, 127.0.0.1"
>    default: "*"
>}

Err, you want something like "default: <localhost>", and then use
"<localhost>" as the users: parameter for that access block.

Note that the names of the blocks (in your example, "localhost"
and "auth1") have absolutely no meaning to the software.


>auth "auth1" {
>        auth: "ckpasswd -d /usr/local/news/db/newsusers"
>        hosts: "*"
>        default: "*"
>}

And here you probably want "default: <fail>", and have an access
block at the bottom of the file with "users: <fail>" and denying
access to everything.  I don't remember what happens with a
failed ckpasswd, but that can't hurt.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: authentication in inn 2.3.1
#52248
Author: Russ Allbery
Date: Tue, 08 May 2001 19:11
60 lines
2441 bytes
Andrzej Kwiatkowski <szerpcho@poczta.onet.pl> writes:

> I want to have an access from localhost to all groups, and from any
> other host other than localhost to all groups except control* and junk.
> My readers.conf looks like :

> auth "localhost" {
>     hosts: "localhost, 127.0.0.1"
>     default: "*"
> }

This assigns the literal identity string "*" to localhost connections.

> access "localhost" {
>     newsgroups: "*"
>     users: "*"
> }

This lets everyone read everything, but it's then overridden by your later
access stanza.

First point:  Later entries that match the same thing as earlier entries
override them.

Second point:  The bit in quotes after "auth" or "access" is for
documentation purposes only and isn't used by INN at all.

Third point:  The default: parameter sets the literal user identity
string; it isn't a wildmat expression.

Something very close to what you want is already in the man page for
readers.conf, but what you want is probably:

auth localhost {
    hosts: "localhost, 127.0.0.1"
    default: <localhost>
}

auth users {
    hosts: *
    auth: "ckpasswd -d /usr/local/news/db/newsusers"
}

access users {
    users: *
    read: "*,!control*,!junk*"
    post: "*,!control*,!junk*"
}

access localhost {
    users: <localhost>
    newsgroups: *
}

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: authentication in inn 2.3.1
#52250
Author: franconews
Date: Tue, 08 May 2001 21:23
9 lines
1419 bytes
Jeffrey M. Vinocur wrote:
> And here you probably want "default: <fail>", and have an access
> block at the bottom of the file with "users: <fail>" and denying
> 
> I don't remember what happens with a  failed ckpasswd, but that can't 
hurt.

The connection to the server is closed.
Re: authentication in inn 2.3.1
#52256
Author: those who know me have no need o...
Date: Wed, 09 May 2001 00:31
11 lines
1077 bytes
<ylg0efslkk.fsf@windlord.stanford.edu> divulged:

>Third point:  The default: parameter sets the literal user identity
>string; it isn't a wildmat expression.

the label is less than intuitive.  still, if one actually read the
documentation that would become apparent.

-- 
okay, have a sig then
Re: authentication in inn 2.3.1
#52251
Author: Jeffrey M. Vinocur
Date: Wed, 09 May 2001 00:39
27 lines
1976 bytes
In article <tfh3u79a03fmbf@news.supernews.com>,
those who know me have no need of my name <not-a-real-address@usa.net> wrote:
><ylg0efslkk.fsf@windlord.stanford.edu> divulged:

>>Third point:  The default: parameter sets the literal user identity
>>string; it isn't a wildmat expression.
>
>the label is less than intuitive.  still, if one actually read the
>documentation that would become apparent.

Hmm.  I'm not sure it's that bad.  It certainly makes perfect
sense if you grok that the mechanism is "auth groups assign user
IDs, access groups give permission based on user ID"; and if you
don't you're going to have trouble using readers.conf at all.

(Clearly, by the number of questions, there is some problem in
general with people understanding readers.conf; I don't know what
to really -- the introductory portion of the manpage is really
quite clear if you sit down and read it.)




-- 
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