Thread View: news.software.nntp
4 messages
4 total messages
Started by Antonio
Tue, 30 Sep 2003 17:35
Problem using reject_with: in access block
Author: Antonio
Date: Tue, 30 Sep 2003 17:35
Date: Tue, 30 Sep 2003 17:35
48 lines
2609 bytes
2609 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi. I am trying to add new functionality to my readers.conf file (I'm
using inn 2.4) by using the reject_with: feature in one of my access
blocks.
Well, every user conecting to my server must provide a suitable
user/pass pair; otherwise he won't be able to read/post at all. I
have created several user/pass databases so that each user is matched
to one of several existing "auth:" blocks and given different access
rights to the server by means of corresponding "access:" blocks.
Now I'd like to match all users failing to provide a valid user/pass
to a new auth/acess block pair so that they are automatically terminated
with a "Permission denied" message plus a "reason". I understand this
can be accomplished by using a "reject as:" line in the new access block.
However the new auth/acess blocks I've added doesn't seem to work. These
are the new blocks:
auth "<unidentified>" {
key: unindentified
hosts: "*"
}
access "unidentified" {
key: unidentified
reject_with: "My reason message"
}
Should these two new blocks be first of last in the file?
What am I doing wrong?
- --
Un saludo.
Antonio <antonio@escomposlinux.org>
Clave pública gnupg en pgp.escomposlinux.org
Usuario Linux registrado nº 189536
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/eb7i2t+2vrJ8PLURAiHtAJ90ai+Zuajrd3dDdvJPmgc47ztU2wCeOMBq
YqCLJRObmNsktKpr/k4vLHM=
=YTwH
-----END PGP SIGNATURE-----
Re: Problem using reject_with: in access block
Author: Jeffrey M. Vinocur
Date: Wed, 01 Oct 2003 10:35
Date: Wed, 01 Oct 2003 10:35
31 lines
2329 bytes
2329 bytes
In article <blcet1$jkl$1@antonio.escomposlinux.org>, Antonio <antonio@escomposlinux.org> wrote: > >Hi. I am trying to add new functionality to my readers.conf file (I'm >using inn 2.4) by using the reject_with: feature in one of my access >blocks. Keep in mind that most clients are prepared to handle a 480 authentication required message (which they will get if all of your auth blocks have an auth line and no res line) by prompting the user for appropriate information. You probably want to save reject_with for when you want to permanently deny someone for some reason. >Well, every user conecting to my server must provide a suitable >user/pass pair; otherwise he won't be able to read/post at all. I >have created several user/pass databases so that each user is matched >to one of several existing "auth:" blocks and given different access >rights to the server by means of corresponding "access:" blocks. Ah ha, here's your problem. If all of the password databases apply to all IP addresses, you need to put them all in a single auth block. (You can have multiple lines in an auth block.) Note that you probably don't want to be using the key: parameter. -- Jeffrey M. Vinocur jeff@litech.org
Re: Problem using reject_with: in access block
Author: Antonio
Date: Wed, 01 Oct 2003 17:39
Date: Wed, 01 Oct 2003 17:39
59 lines
2994 bytes
2994 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
El Wed, 1 Oct 2003 10:35:41 +0000 (UTC), a
Jeffrey M. Vinocur <jeff@litech.org> le dio por escribir:
> Ah ha, here's your problem. If all of the password databases
> apply to all IP addresses, you need to put them all in a single
> auth block. (You can have multiple lines in an auth block.)
Ok, so you suggest having multiple "auth:" lines within the same auth
block instead of having several auth blocks (which would greatly
simplify my present scheme). The problem is I am granting my users
different access rights as their authentication data match one out of
three existing databases and don't know what an access block for such
auth block as you propose would look like.
This would be the auth block you propose, with several auth lines:
auth "whatever" {
hosts: "*"
auth: "authenticator_1"
auth: "authenticator_2"
auth: "authenticator_3"
}
So we have three groups of users matching three different databases. How
can I give them different access rights?
Could I give each "auth:" line a "default:" value and them write an
access block for each? Like this:
auth "whatever" {
auth: "authenticator_1"
default: "group_1"
auth: "authenticator_2"
default: "group_2"
auth: "authenticator_3"
default: "group_3"
}
and then have three access blocks assigning each group different rights
(access "group_1", access "group_2" and access "group_3")?
Thanks in advance ;-)
- --
Un saludo.
Antonio <antonio@escomposlinux.org>
Clave pública gnupg en pgp.escomposlinux.org
Usuario Linux registrado nº 189536
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/exFv2t+2vrJ8PLURAqU7AJ9aWEX07GGcjqqTCDhb5d21tVs+fACbBdkw
IPFCxBKRDfe9ztZSfC7yjjc=
=/5IW
-----END PGP SIGNATURE-----
Re: Problem using reject_with: in access block
Author: Jeffrey M. Vinocur
Date: Wed, 01 Oct 2003 20:13
Date: Wed, 01 Oct 2003 20:13
30 lines
2031 bytes
2031 bytes
In article <blf3hf$bk7$1@antonio.escomposlinux.org>,
Antonio <antonio@escomposlinux.org> wrote:
>
>auth "whatever" {
> hosts: "*"
> auth: "authenticator_1"
> auth: "authenticator_2"
> auth: "authenticator_3"
>}
>
>So we have three groups of users matching three different databases.
You *must* do it this way. Remember how readers.conf works --
only *one* auth block is used (whichever one has the last
matching hosts: line), and then all of the res: and auth: lines
in that auth block are consulted.
>Could I give each "auth:" line a "default:" value and them write an
>access block for each? Like this:
Keep in mind that default: is never applied to the result of
authenticating, because an identity is returned by the
authenticator. You need access groups that will differentiate
your users based on their identities.
--
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