🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
17 messages
17 total messages Started by Rebecca Ore Sat, 17 Mar 2001 03:52
I can make passwords, now...
#51287
Author: Rebecca Ore
Date: Sat, 17 Mar 2001 03:52
31 lines
1733 bytes
I'm having a bit of trouble figuring out the order given what I want
to do.  I have users who won't be coming in from a fixed domain and I
want to allow those to come in and read one set of groups and yet give
permission to read and post to other groups to other people.

Given what I'm already using, how would I modify this, say, to have
the person log in with user name and password and read the same
restricted 

auth "user" {
        hosts: "*example.invalid"
        default: "user@example.invalid"
}

access "user" {
        users: "usrs@example.invalid"
        newsgroups: "net.*,alt.*,rec.*,news.*,!restricted.*"
        access: "Read Post"

And then how would I allow a second user to have access to a different
set of groups?





-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: I can make passwords, now...
#51288
Author: Jeffrey M. Vinocur
Date: Sat, 17 Mar 2001 04:24
100 lines
4478 bytes
In article <m33dcdyrvf.fsf@pyrophore.ogoense.net>,
Rebecca Ore  <rebecca@ogoense.net> wrote:
>
>Given what I'm already using, how would I modify this, say, to have
>the person log in with user name and password and read the same
>restricted 

I had an awful readers.conf to start, until I finally grokked
that auth blocks and access blocks need not (and probably should
not) correspond one-to-one.  You want to assign an incoming
connection a user id, using whatever means is appropriate -- the
idea is that a given user gets the same id regardless of
connection method.  Then you assign access based on user id.  

In a sane scheme, the sets of people you want to put in different
reader brackets will have distinguishable user ids.  Note that
the password file can have fully-qualified (i.e., user@host)
names which is very useful.

I've got something like this, where the idea is that users with
shell accounts get essentially full access no matter how they
choose to connect, and some other users get access only to a
local hierarchy "foo".  (This is easy because the foo users all
have easily-recognized identities -- if they didn't we would put
the "ckpasswd -f foo_users" in a separate block and use "key:" to
make the foo access block matched them and only them.)

(Russ...is this a useful example?  I can stick it on the web
or whatever.)

---BEGIN---
# This gets the generic inbound connections.
auth "foreign" {
    hosts: *
    auth: "ckpasswd -f /usr/local/news/db/newsusers"
    auth: "ckpasswd -f /usr/local/news/db/foo_users"
    default: "<FAIL>"
}

# This matches trusted hosts, we try to resolve them using
# `ident` first, if that fails or they want to use another
# account, they can send username/password to be validated
# against several databases until one matches.  Since we trust
# the wires, we allow cleartext authentication against the system
# password database using Graeme Mathieson's `pamckpasswd`.
auth "internalnet" {
    hosts: "192.168.0.0/16,marduk.litech.org"
    res: "ident -t"
    auth: "pamckpasswd"
    auth: "ckpasswd -f /usr/local/news/db/newsusers"
    auth: "ckpasswd -f /usr/local/news/db/foo_users"
    default: "<FAIL>"
    default-domain: "litech.org"
}

# At this point user ids are assigned correctly.  Some users have
# their @litech.org identity, others got an identity based on the
# password files (in the "newsusers" password file, some users
# have a random identity and some have user@litech.org associated
# with a plaintext/news-only password for coming in over insecure
# networks).

# Get the random other users first
access "nonlitech" {
    users: "*"
    newsgroups: "!foo.*,*"
}

# People for private hierarchy
access "foo" {
    users: "*@foo.example.com"
    virtualhost: "true"
    pathhost: foo.example.com
    newsgroups: "!*,foo.*"
}

# Trap failures
access "fail" {
    users: "<FAIL>,<FAIL>@litech.org"
    read: "!*,litech.test"
    post: "!*"
}

---END---


>        access: "Read Post"

FYI, access: is deprecated...if you use newsgroups: you get
reading and posting, if you want to separate that functionality
you can use read: and post: with different patterns.  Really the
only thing access: ought to be used for is the other flags (for
newnews and Approved headers).



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: I can make passwords, now...
#51289
Author: Rebecca Ore
Date: Sat, 17 Mar 2001 05:33
140 lines
5701 bytes
jmv16@cornell.edu (Jeffrey M. Vinocur) writes:

> In article <m33dcdyrvf.fsf@pyrophore.ogoense.net>,
> Rebecca Ore  <rebecca@ogoense.net> wrote:
> >
> >Given what I'm already using, how would I modify this, say, to have
> >the person log in with user name and password and read the same
> >restricted 
> 
> I had an awful readers.conf to start, until I finally grokked
> that auth blocks and access blocks need not (and probably should
> not) correspond one-to-one.  You want to assign an incoming
> connection a user id, using whatever means is appropriate -- the
> idea is that a given user gets the same id regardless of
> connection method.  Then you assign access based on user id.  

Um, here one would be able to have different newsreaders files in
/news/db?  The perl script could be modified to generate different
files for each auth. set.  Say all readers of x set of hieararchies,
then another file for all readers of y set of hiearchies?


> 
> In a sane scheme, the sets of people you want to put in different
> reader brackets will have distinguishable user ids.  Note that
> the password file can have fully-qualified (i.e., user@host)
> names which is very useful.

Okay, like using Megapop, to a certain extent.

> 
> I've got something like this, where the idea is that users with
> shell accounts get essentially full access no matter how they
> choose to connect, and some other users get access only to a
> local hierarchy "foo".  (This is easy because the foo users all
> have easily-recognized identities -- if they didn't we would put
> the "ckpasswd -f foo_users" in a separate block and use "key:" to
> make the foo access block matched them and only them.)

key would be for this block of users who can only read these
hieararchies?  


> (Russ...is this a useful example?  I can stick it on the web
> or whatever.)
> 
> ---BEGIN---
> # This gets the generic inbound connections.
> auth "foreign" {
>     hosts: *
>     auth: "ckpasswd -f /usr/local/news/db/newsusers"
>     auth: "ckpasswd -f /usr/local/news/db/foo_users"
>     default: "<FAIL>"
> }

If I understand this, if the person coming in from a foreign server
failed to be in any of the known newsusers password files, then he or
she wouldn't go further?



> # This matches trusted hosts, we try to resolve them using
> # `ident` first, if that fails or they want to use another
> # account, they can send username/password to be validated
> # against several databases until one matches.  Since we trust
> # the wires, we allow cleartext authentication against the system
> # password database using Graeme Mathieson's `pamckpasswd`.

In my case, then nobody who has a shell account on one machine should
use the same password for authenticating to the news server since all
the users are coming from elsewhere (and the logins on my shell
machine are all ssh).


> auth "internalnet" {
>     hosts: "192.168.0.0/16,marduk.litech.org"
>     res: "ident -t"
>     auth: "pamckpasswd"
>     auth: "ckpasswd -f /usr/local/news/db/newsusers"
>     auth: "ckpasswd -f /usr/local/news/db/foo_users"
>     default: "<FAIL>"
>     default-domain: "litech.org"
> }

But this could work for account on pyrophore going to paradoxa, if I
wanted to do that, right?

> # At this point user ids are assigned correctly.  Some users have
> # their @litech.org identity, others got an identity based on the
> # password files (in the "newsusers" password file, some users
> # have a random identity and some have user@litech.org associated
> # with a plaintext/news-only password for coming in over insecure
> # networks).
> 
> # Get the random other users first
> access "nonlitech" {
>     users: "*"
>     newsgroups: "!foo.*,*"
> }

Exclusions first?  Or does this matter?


> # People for private hierarchy
> access "foo" {
>     users: "*@foo.example.com"
>     virtualhost: "true"
>     pathhost: foo.example.com
>     newsgroups: "!*,foo.*"
> }
> 
> # Trap failures
> access "fail" {
>     users: "<FAIL>,<FAIL>@litech.org"
>     read: "!*,litech.test"
>     post: "!*"
> }


You put fail at the end?  And this would cover all the categories that
didn't authenticate to one or another list?




> ---END---
> 
> 
> >        access: "Read Post"
> 
> FYI, access: is deprecated...if you use newsgroups: you get
> reading and posting, if you want to separate that functionality
> you can use read: and post: with different patterns.  Really the
> only thing access: ought to be used for is the other flags (for
> newnews and Approved headers).

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: I can make passwords, now...
#51321
Author: Jeffrey M. Vinocur
Date: Mon, 19 Mar 2001 18:00
111 lines
4731 bytes
In article <m3snkdt0wy.fsf@pyrophore.ogoense.net>,
Rebecca Ore  <rebecca@ogoense.net> wrote:
>jmv16@cornell.edu (Jeffrey M. Vinocur) writes:
>
>Um, here one would be able to have different newsreaders files in
>/news/db?  The perl script could be modified to generate different
>files for each auth. set.  Say all readers of x set of hieararchies,
>then another file for all readers of y set of hiearchies?

To clarify:  you want to have a little script that generates a
set of password files, and then give access based on which file
the user was found in?

Two problems:
- "Generate" might be a bit hard, because you need to assign
  passwords.
- You're missing the point -- unless there is no pattern to your
  userids, even when fully-qualified, you want to use that as the
  basis for authentication.  You assign an identity, and then
  have access blocks that match different groups of users.


>Okay, like using Megapop, to a certain extent.

...no idea...
 

>key would be for this block of users who can only read these
>hieararchies?  

Err...is the manpage really that bad?  key: is used to make sure
that a given auth block and access block correspond.  That is, an
access block with key: foo is only considered for matching a
given incoming connection iff the auth block that assigned the
identity had key: foo. (The idea, though, is to avoid it if at
all possible.)


>> auth "foreign" {
>>     hosts: *
>>     auth: "ckpasswd -f /usr/local/news/db/newsusers"
>>     auth: "ckpasswd -f /usr/local/news/db/foo_users"
>>     default: "<FAIL>"
>> }
>
>If I understand this, if the person coming in from a foreign server
>failed to be in any of the known newsusers password files, then he or
>she wouldn't go further?

Mmm, I believe that he would be assigned the identity "<FAIL>"
which we then trap later on.


>In my case, then nobody who has a shell account on one machine should
>use the same password for authenticating to the news server since all
>the users are coming from elsewhere (and the logins on my shell
>machine are all ssh).

Well, you can use SSL to encrypt the connections, and have nnrpd
with a separate config file on the nntps port (563).


>> auth "internalnet" {
>>     hosts: "192.168.0.0/16,marduk.litech.org"
>>     res: "ident -t"
>>     auth: "pamckpasswd"
>>     auth: "ckpasswd -f /usr/local/news/db/newsusers"
>>     auth: "ckpasswd -f /usr/local/news/db/foo_users"
>>     default: "<FAIL>"
>>     default-domain: "litech.org"
>> }
>
>But this could work for account on pyrophore going to paradoxa, if I
>wanted to do that, right?

What?


>>     newsgroups: "!foo.*,*"
>
>Exclusions first?  Or does this matter?

Hmm.  Looking at the code, I think it's
first-matching-pattern-found.  That is, if there are several
patterns separated by commas, it tries them in order looking for
one which matches, and then says yes/no based on whether there
was a ! preceding.


>> access "fail" {
>>     users: "<FAIL>,<FAIL>@litech.org"
>>     read: "!*,litech.test"
>>     post: "!*"
>> }
>
>You put fail at the end?  And this would cover all the categories that
>didn't authenticate to one or another list?

Auth blocks and access blocks are quite separate.  First we
assign an identity using the auth blocks.  If someone failed to
authenticate, the default identity of <FAIL> kicked in.  Then we
find the matching access block, starting from the bottom.  So the
fail group matches the user <FAIL>, but any other user continues
up to be matched against the other blocks.



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: I can make passwords, now...
#51328
Author: Rebecca Ore
Date: Mon, 19 Mar 2001 22:32
48 lines
2693 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:

> In article <m3snkdt0wy.fsf@pyrophore.ogoense.net>,
> Rebecca Ore  <rebecca@ogoense.net> wrote:
> >jmv16@cornell.edu (Jeffrey M. Vinocur) writes:
> >
> >Um, here one would be able to have different newsreaders files in
> >/news/db?  The perl script could be modified to generate different
> >files for each auth. set.  Say all readers of x set of hieararchies,
> >then another file for all readers of y set of hiearchies?
> 
> To clarify:  you want to have a little script that generates a
> set of password files, and then give access based on which file
> the user was found in?

I'm using the one in the manual page that Russ suggested a couple of
days or a week or so earlier.  The script asks for name, then
password.  The result of the script is newsusers.db and "less" says
it's a binary.


> 
> Two problems:
> - "Generate" might be a bit hard, because you need to assign
>   passwords.

Well, yes.  Generating the database; assigning user names and
passwords.  

(Snips)

> 
> Err...is the manpage really that bad?  key: is used to make sure
> that a given auth block and access block correspond.  That is, an
> access block with key: foo is only considered for matching a
> given incoming connection iff the auth block that assigned the
> identity had key: foo. (The idea, though, is to avoid it if at
> all possible.)

Manpages are harder to understand for me, than looking at enough
samples, or finding some simplier explanation in _Unix in a Nutshell_.
Not just this one.


-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: I can make passwords, now...
#51331
Author: Russ Allbery
Date: Mon, 19 Mar 2001 23:40
23 lines
1997 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> Rebecca Ore  <rebecca@ogoense.net> wrote:
>> jmv16@cornell.edu (Jeffrey M. Vinocur) writes:

>>>     newsgroups: "!foo.*,*"

>> Exclusions first?  Or does this matter?

> Hmm.  Looking at the code, I think it's first-matching-pattern-found.
> That is, if there are several patterns separated by commas, it tries
> them in order looking for one which matches, and then says yes/no based
> on whether there was a ! preceding.

Ick.  I'd call that a bug; that's different than the way wildmat works
everywhere else.  We're going to need to fix that and put a huge warning
in the upgrade instructions at some point.

-- 
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: I can make passwords, now...
#51333
Author: Rebecca Ore
Date: Tue, 20 Mar 2001 00:02
31 lines
2242 bytes
Russ Allbery <rra@stanford.edu> writes:

> Jeffrey M Vinocur <jeff@litech.org> writes:
> > Rebecca Ore  <rebecca@ogoense.net> wrote:
> >> jmv16@cornell.edu (Jeffrey M. Vinocur) writes:
> 
> >>>     newsgroups: "!foo.*,*"
> 
> >> Exclusions first?  Or does this matter?
> 
> > Hmm.  Looking at the code, I think it's first-matching-pattern-found.
> > That is, if there are several patterns separated by commas, it tries
> > them in order looking for one which matches, and then says yes/no based
> > on whether there was a ! preceding.
> 
> Ick.  I'd call that a bug; that's different than the way wildmat works
> everywhere else.  We're going to need to fix that and put a huge warning
> in the upgrade instructions at some point.

I'm doing "okhier1.*,okhiear2.*, !not-okhier.*"

Sometime later in the week, I'm going to sit down and see what I
really need to do to get it to work the way I want, with some users
having password and others who come in on static IPs not having
passwords, with various mixes of groups for all, not based on what
their IPs are.

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: I can make passwords, now...
#51332
Author: Jeffrey M. Vinocur
Date: Tue, 20 Mar 2001 00:11
28 lines
2037 bytes
In article <m3hf0pcno7.fsf@pyrophore.ogoense.net>,
Rebecca Ore  <rebecca@ogoense.net> wrote:
>
>I'm doing "okhier1.*,okhiear2.*, !not-okhier.*"



>Sometime later in the week, I'm going to sit down and see what I
>really need to do to get it to work the way I want, with some users
>having password and others who come in on static IPs not having
>passwords, with various mixes of groups for all, not based on what
>their IPs are.

To summarize my other posts:  you need to assign an identity
(user@host) to each incoming connection (people with static IPs
get assigned their identity without a password, etc.), and then
give access based on those identities.  The goal is for the
access decision to have nothing to do with what sort of
connection/authentication is being used (but rather be based only
on the identity, however it was discovered).




-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: I can make passwords, now...
#51335
Author: Jeffrey M. Vinocur
Date: Tue, 20 Mar 2001 00:51
28 lines
1959 bytes
In article <996775$n1l$1@marduk.litech.org>,
Jeffrey M. Vinocur <jeff@litech.org> wrote:
>In article <m3hf0pcno7.fsf@pyrophore.ogoense.net>,
>Rebecca Ore  <rebecca@ogoense.net> wrote:
>>
>>I'm doing "okhier1.*,okhiear2.*, !not-okhier.*"

Whoops, forgot to respond to that the first time.

The order only matters if you have overlapping patterns.  So
(this is what Russ said was a bug) "!*,comp.*" does _not_ have
the intuitive effect of allowing access only to comp.* (in denies
all access).

Actually, wait a second.  That's exactly backwards of what it
should be...yup.

*sigh*

I'm dumb.  The list must get reversed someplace before being
passed into the function that actually does matching.  Russ, nix
that bug report.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: I can make passwords, now...
#51355
Author: Jeffrey M. Vinocur
Date: Wed, 21 Mar 2001 03:30
45 lines
2902 bytes
In article <m3vgp5crub.fsf@pyrophore.ogoense.net>,
Rebecca Ore  <rebecca@ogoense.net> wrote:
>
>I'm using the one in the manual page that Russ suggested a couple of
>days or a week or so earlier.  The script asks for name, then
>password.  The result of the script is newsusers.db and "less" says
>it's a binary.

Oh.  You're using `ckpasswd -d`.  Gotcha.  (If you've got a
relatively small number of users you might just use passwd-style
text files with `ckpasswd -f`; plaintext is nice sometimes.)  The
file you've got has the same essence.


>Well, yes.  Generating the database; assigning user names and
>passwords.  

Ah, ok.  Sure, you can write several different databases (like
the two password files in my example back a ways).  But, again,
you want to avoid this if you can.  The point of putting the
users in separate files is presumably so you can define access
based on which file contains them[1] by using key:.  But then you
have to do other things (like static IP access) separately.  If
instead you have identities with enough information in them[2],
then you can throw them all in the same password database, have
static IPs assign the appropriate identity, and then give access
based only on having things match the users: field of different
blocks.


[1] If you're doing it for efficiency or organization or
    something, there's some merit there.  But I don't think
    that's your thought.

[2] E.g., everybody at one domain gets a certain type of access,
    everybody at another some different access, and everybody
    else some sort of default.  (Or even make up identities with
    the right information -- nobody says the identity can't be
    user@somethingartificialhere.)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: I can make passwords, now...
#51356
Author: Rebecca Ore
Date: Wed, 21 Mar 2001 04:32
80 lines
4396 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:

> In article <m3vgp5crub.fsf@pyrophore.ogoense.net>,
> Rebecca Ore  <rebecca@ogoense.net> wrote:
> >
> >I'm using the one in the manual page that Russ suggested a couple of
> >days or a week or so earlier.  The script asks for name, then
> >password.  The result of the script is newsusers.db and "less" says
> >it's a binary.
> 
> Oh.  You're using `ckpasswd -d`.  Gotcha.  (If you've got a
> relatively small number of users you might just use passwd-style
> text files with `ckpasswd -f`; plaintext is nice sometimes.)  The
> file you've got has the same essence.

I want to have things set up so they can scale sensibly.  I don't have
people with shell accounts on the news machine so I could possibly get
away with that, which might make debugging easier.


> 
> 
> >Well, yes.  Generating the database; assigning user names and
> >passwords.  
> 
> Ah, ok.  Sure, you can write several different databases (like
> the two password files in my example back a ways).  But, again,
> you want to avoid this if you can.  The point of putting the
> users in separate files is presumably so you can define access
> based on which file contains them[1] by using key:.  But then you
> have to do other things (like static IP access) separately.  If
> instead you have identities with enough information in them[2],
> then you can throw them all in the same password database, have
> static IPs assign the appropriate identity, and then give access
> based only on having things match the users: field of different
> blocks.

Um, but then they'd have to use user names and passwords, wouldn't
they?

At this point, everyone reads rec.*, news.* and net.*, but not
everyone reads The Other Place and not everyone reads my local groups
(very few people read both).


> 
> [1] If you're doing it for efficiency or organization or
>     something, there's some merit there.  But I don't think
>     that's your thought.

I want to be able to develop a system that let me wholesale private
groups with very limited access along side text Usenet.


> [2] E.g., everybody at one domain gets a certain type of access,
>     everybody at another some different access, and everybody
>     else some sort of default.  (Or even make up identities with
>     the right information -- nobody says the identity can't be
>     user@somethingartificialhere.)

There's *no* connection between coming in from a shell account inside
ogoense.net and coming in from outside and the groups I'm making
accessible to each reader.

My shellers don't have access to all of the same groups; my outside nntp
users don't have access to all of the same groups.  The people with dedicated
lines are more likely to have access to all groups, but I don't think
they will always necessarily be in that category.

I was hoping not to have to make the dedicated line people have to
have a user name and password, and I really want to check where people
are coming from in almost all cases so that if a password was
compromised, the person who is listed as coming in from aol (example)
can't start coming in from netcom (example) without any problems at
all.

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: I can make passwords, now...
#51358
Author: Jeffrey M. Vinocur
Date: Wed, 21 Mar 2001 04:59
80 lines
4086 bytes
In article <m3zoefrbbe.fsf@pyrophore.ogoense.net>,
Rebecca Ore  <rebecca@ogoense.net> wrote:
>
>I want to have things set up so they can scale sensibly.  I don't have
>people with shell accounts on the news machine so I could possibly get
>away with that, which might make debugging easier.

Shell shouldn't matter -- unlike the system passwd file, the news
user databases need not (and should not) be world readable.

I have no idea how many users you'd need before text databases
would slow you down significantly.


>> instead you have identities with enough information in them[2],
>> then you can throw them all in the same password database, have
>> static IPs assign the appropriate identity, and then give access
>> based only on having things match the users: field of different
>> blocks.
>
>Um, but then they'd have to use user names and passwords, wouldn't
>they?

No.  You would have an auth block like 

auth "joe" {
    hosts: "joe.example.com
    default: "joe@fullaccess"
}

so any connection from that IP would be tagged as
"joe@fullaccess" and then you could optionally put an entry for
"joe@fullaccess" in the password database as well.  Then in the
access blocks, you would have one for "users: *@fullaccess".


>I want to be able to develop a system that let me wholesale private
>groups with very limited access along side text Usenet.

The real question is whether there will be many private
hierarchies and if so if the readerships are mostly disjoint.  If
so, then you would have one password file and one access block in
readers.conf for each hierarchy, which isn't too bad.


>There's *no* connection between coming in from a shell account inside
>ogoense.net and coming in from outside and the groups I'm making
>accessible to each reader.

The identities used for authenticating to news do not need to
corresponding to anything in the real world (unless you have
nnrpdauthsender turned on in inn.conf, in which case they will
show up in posts).  So you can assign them any way you want.


>I was hoping not to have to make the dedicated line people have to
>have a user name and password,

That's not hard for a relatively small number, you just give each
an auth block (see example above).  


>I really want to check where people
>are coming from in almost all cases so that if a password was
>compromised, the person who is listed as coming in from aol (example)
>can't start coming in from netcom (example) without any problems at
>all.

*blink*  I think that's kinda silly, to be honest.  But if you
really want to, then you need to sit down and roll your own with
perlhooks.  Make up some kind of variation on passwd files, say,
with additional fields for remote addresses and groups-to-be
read, and a bit of Perl to talk to nnrpd about the contents of
the file.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: I can make passwords, now...
#51371
Author: Russ Allbery
Date: Wed, 21 Mar 2001 22:13
13 lines
1586 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:

> I have no idea how many users you'd need before text databases would
> slow you down significantly.

At a rough guess, I'd say something like a thousand.

-- 
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: I can make passwords, now...
#51374
Author: Rebecca Ore
Date: Wed, 21 Mar 2001 23:41
50 lines
2610 bytes
Russ Allbery <rra@stanford.edu> writes:

> Jeffrey M Vinocur <jeff@litech.org> writes:
> 
> > I have no idea how many users you'd need before text databases would
> > slow you down significantly.
> 
> At a rough guess, I'd say something like a thousand.


At this point, I've separated out the auth stanzas from the access
stanzas.  While I can still log on from my account on pyrophore, I get
messages that all the groups are bogus:

Group rec.arts.disney.announce is bogus,  Ignoring it.
Group rec.arts.drwho.info is bogus,  Ignoring it.
Group rec.arts.erotica is bogus,  Ignoring it.
Group rec.travel.europe is bogus,  Ignoring it.

As here.

When I switch back to the earlier readers.conf, I don't get that
message when I use slrn.

I ended the auth stanzas with this:

auth "foreign" {
        hosts: *
        auth: "ckpasswd -f /news/db/newsusers"
        default: "<FAIL>"
}

then put this as the last access stanza:

access fail {
        newsgroups: !*
}


While I can connect to the server from my shell machine, which I
couldn't do before putting the "ckpasswd" stanza last among the auth
stanzas, what's likely to be causing this error message?

It's as though I wasn't getting permission to read any of the groups.


-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: I can make passwords, now...
#51376
Author: Rebecca Ore
Date: Thu, 22 Mar 2001 00:14
45 lines
2260 bytes
Rebecca Ore <rebecca@ogoense.net> writes:

(snips)

> 
> 
> While I can connect to the server from my shell machine, which I
> couldn't do before putting the "ckpasswd" stanza last among the auth
> stanzas, what's likely to be causing this error message?
> 
> It's as though I wasn't getting permission to read any of the groups.

Ha, I got it to work by using the key variable and moving things
around.

auth "all" {
        auth: "ckpasswd -f /news/db/newsusers"
        auth: "ckpasswd -s"
        key: password
}

and then this for the two access stanzas:

access fail {
        key: password
        newsgroups: !*
} 

at the beginning of the access stanzas, and this at the end:

access "foreignokay" {
        key: password
        users: *        
        newsgroups: "*,!xxxx.*,!xxx.*"
}


For remote users who do have permission to read xxxx.* and xxx.*,
should I set up two different stanzas for access and give their user
names, or set up two different password databases?

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: I can make passwords, now...
#51377
Author: Jeffrey M. Vinocur
Date: Thu, 22 Mar 2001 01:20
23 lines
1716 bytes
In article <m3itl21wy6.fsf@pyrophore.ogoense.net>,
Rebecca Ore  <rebecca@ogoense.net> wrote:
>Rebecca Ore <rebecca@ogoense.net> writes:
>
>> It's as though I wasn't getting permission to read any of the groups.

Yes, that's because your "fail" group needs to have 
"users: <FAIL>" (as it was, it was matching everything, including
successful authenticates).


>Ha, I got it to work by using the key variable and moving things
>around.

*sigh*  Rebecca, are you reading my posts?  You don't want to use
key: if at all possible.  It tends to make for very ugly
configurations.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: I can make passwords, now...
#51383
Author: Rebecca Ore
Date: Thu, 22 Mar 2001 02:54
36 lines
2282 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:

> In article <m3itl21wy6.fsf@pyrophore.ogoense.net>,
> Rebecca Ore  <rebecca@ogoense.net> wrote:
> >Rebecca Ore <rebecca@ogoense.net> writes:
> >
> >> It's as though I wasn't getting permission to read any of the groups.
> 
> Yes, that's because your "fail" group needs to have 
> "users: <FAIL>" (as it was, it was matching everything, including
> successful authenticates).

Okay, that appears to be fixed now.

 
> 
> >Ha, I got it to work by using the key variable and moving things
> >around.
> 
> *sigh*  Rebecca, are you reading my posts?  You don't want to use
> key: if at all possible.  It tends to make for very ugly
> configurations.

My users who are testing the suggestions you made find them to be
working okay.

Long run, I have some other concerns, and I suspect that I'm going to
have to learn to some perl to make everything work as I want it to
work, but we're all happy now, it appears, and I didn't need key after
all.


-- 
Rebecca Ore
http://www.ogoense.net/rebecca
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