Thread View: news.software.nntp
7 messages
7 total messages
Started by Steve
Mon, 08 Dec 2003 16:03
Authentication Question
Author: Steve
Date: Mon, 08 Dec 2003 16:03
Date: Mon, 08 Dec 2003 16:03
28 lines
1900 bytes
1900 bytes
Using INN-2.4.0, I'm trying to setup an authentication scenario where
global users have read access to a service, but must authenticate in order
to post.
I used htpasswd to create an authentication file and successfully added a
test user, then used ckpasswd to check it using the following command:
ckpasswd -f /usr/local/news/passwd/innpasswd -u userid -p passwd
Now I need to configure my readers.conf file and I'm having trouble
finding an example that fits my requirement. The excerpt below is from my
current configuration, but doesnt work as I hoped it would.
auth "global" {
default: "<user>@global"
}
auth "trusted" {
auth: "ckpasswd -f /usr/local/news/passwd/innpasswd"
}
access "global" {
users: "<user>@global"
read: "*,!local*,!control*,!junk*"
}
access "trusted" {
newsgroups: "*,!local,!control*,!junk*"
}
Re: Authentication Question
Author: Jeffrey M. Vinocur
Date: Tue, 09 Dec 2003 12:44
Date: Tue, 09 Dec 2003 12:44
14 lines
1590 bytes
1590 bytes
In article <br27ci$3te$1@bananasplit.info>, Steve <steve@nospam-goofer.co.uk> wrote: > >Now I need to configure my readers.conf file and I'm having trouble >finding an example that fits my requirement. The excerpt below is from my >current configuration, but doesnt work as I hoped it would. You've got to be more specific about what you're hoping for the above complaint to be very useful... -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication Question
Author: Steve
Date: Tue, 09 Dec 2003 14:19
Date: Tue, 09 Dec 2003 14:19
47 lines
2537 bytes
2537 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote in
news:br4g34$nsj$3@puck.litech.org:
> In article <br27ci$3te$1@bananasplit.info>,
> Steve <steve@nospam-goofer.co.uk> wrote:
>>
>>Now I need to configure my readers.conf file and I'm having trouble
>>finding an example that fits my requirement. The excerpt below is
>>from my current configuration, but doesnt work as I hoped it would.
>
> You've got to be more specific about what you're hoping for the
> above complaint to be very useful...
Jeffrey,
My sincere apologies if it read as a complaint, I didn't mean it to read
as such.
My goal is to run a server that will allow any user from anywhere to read
all groups, whilst users that authenticate with a userid and password
will also have posting privilages.
Below is the readers.conf configuration I have been trying to use, but I
guess it's incorrect. With this all users have read access as defined in
the "global" sections, but nobody is getting posting access.
Any suggestions as to what I'm doing wrong?
auth "global" {
default: "<user>@global"
}
auth "trusted" {
default: "<user-auth>@global"
auth: "ckpasswd -f /usr/local/news/passwd/innpasswd"
}
access "global" {
users: "<user>@global"
read: "*,!local*,!control*,!junk*"
}
access "trusted" {
users: "<user-auth>@global"
newsgroups: "*,!local,!control*,!junk*"
}
Re: Authentication Question
Author: Jeffrey M. Vinocur
Date: Thu, 11 Dec 2003 05:29
Date: Thu, 11 Dec 2003 05:29
66 lines
3517 bytes
3517 bytes
In article <br4lld$3s9$1@lore.csc.com>,
Steve <steve@nospam-goofer.co.uk> wrote:
>jeff@litech.org (Jeffrey M. Vinocur) wrote in
>news:br4g34$nsj$3@puck.litech.org:
>
>> In article <br27ci$3te$1@bananasplit.info>,
>> Steve <steve@nospam-goofer.co.uk> wrote:
>>>
>>>Now I need to configure my readers.conf file and I'm having trouble
>>>finding an example that fits my requirement. The excerpt below is
>>>from my current configuration, but doesnt work as I hoped it would.
>>
>> You've got to be more specific about what you're hoping for the
>> above complaint to be very useful...
>
>My sincere apologies if it read as a complaint, I didn't mean it to read
>as such.
Oh, I didn't mean it that way (I actually tried to find a better
word than "complaint" but couldn't) -- but it's not a very useful
problem report to say "this doesn't work the way I want it to"
without describing what it is you're expecting it to do.
>Below is the readers.conf configuration I have been trying to use, but I
>guess it's incorrect. With this all users have read access as defined in
>the "global" sections, but nobody is getting posting access.
>
>Any suggestions as to what I'm doing wrong?
Yup. Common confusion. (I ought to dig up the most clear
explanation I've ever written of this and get Russ to put it in
the FAQ, but oh well.)
>auth "global" {
> default: "<user>@global"
>}
>
>auth "trusted" {
> default: "<user-auth>@global"
> auth: "ckpasswd -f /usr/local/news/passwd/innpasswd"
>}
So here's one problem. The second auth group is always going to
match (since there's no hosts: restriction), so an
unauthenticated connection is going to be assigned identity
<user-auth>@global.
>access "trusted" {
> users: "<user-auth>@global"
> newsgroups: "*,!local,!control*,!junk*"
>}
And here's the other. When a user successfully authenticates
with a ckpasswd database, the identity assigned is that of the
username provided during the authentication itself, not the
default in that auth group. (A failed authentication attempt,
like an incorrect password, results in a closed connection with
no further readers.conf processing.)
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication Question
Author: Steve
Date: Thu, 11 Dec 2003 09:43
Date: Thu, 11 Dec 2003 09:43
50 lines
2882 bytes
2882 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote:
> Yup. Common confusion. (I ought to dig up the most clear
> explanation I've ever written of this and get Russ to put it in
> the FAQ, but oh well.)
>
>
>>auth "global" {
>> default: "<user>@global"
>>}
>>
>>auth "trusted" {
>> default: "<user-auth>@global"
>> auth: "ckpasswd -f /usr/local/news/passwd/innpasswd"
>>}
>
> So here's one problem. The second auth group is always going to
> match (since there's no hosts: restriction), so an
> unauthenticated connection is going to be assigned identity
> <user-auth>@global.
Thanks Jeffrey, now I'm beginning to see the light a little! So I could
in fact remove my "global" section completely and change the default
under "trusted" to <user>@global. Unauthenticated users will then be
recognized as <user>@global whilst authenticated user will be assigned
their login name.
>
>
>>access "trusted" {
>> users: "<user-auth>@global"
>> newsgroups: "*,!local,!control*,!junk*"
>>}
>
> And here's the other. When a user successfully authenticates
> with a ckpasswd database, the identity assigned is that of the
> username provided during the authentication itself, not the
> default in that auth group.
So to meet my requirement, I really need a not(!) under users: so that
anything but <user>@global will be assigned rights for an authenticated
user.
> (A failed authentication attempt,
> like an incorrect password, results in a closed connection with
> no further readers.conf processing.)
Based on this, is there ever a purpose for assigning a default after an
auth? If no further processing is performed, the default can never be
acted upon.
Re: Authentication Question
Author: Jeffrey M. Vinocur
Date: Thu, 11 Dec 2003 12:02
Date: Thu, 11 Dec 2003 12:02
36 lines
2381 bytes
2381 bytes
In article <br9e88$o9b$1@lore.csc.com>, Steve <steve@nospam-goofer.co.uk> wrote: >jeff@litech.org (Jeffrey M. Vinocur) wrote: > >> [...] > > [...] Everything you suggested sounds right on. >> (A failed authentication attempt, >> like an incorrect password, results in a closed connection with >> no further readers.conf processing.) > >Based on this, is there ever a purpose for assigning a default after an >auth? If no further processing is performed, the default can never be >acted upon. Well, the default isn't for *after* an the auth -- it's for connections that haven't auth'd yet. Think of it like this: first a matching auth block is chosen based on IP address, and then an identity is assigned based on res:, auth:, and default: lines (whichever of those are applicable). So you definitely need the default for the configuration you're thinking of to work. (Also, ckpasswd always returns an identity -- but I guess you *could* write an authenticator that returned success but didn't assign an identity, and I'm not sure if default: would be used in that case.) -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication Question
Author: Steve
Date: Fri, 12 Dec 2003 11:50
Date: Fri, 12 Dec 2003 11:50
10 lines
987 bytes
987 bytes
Jeffrey M. Vinocur wrote: > In article <br9e88$o9b$1@lore.csc.com>, > > Everything you suggested sounds right on. Thanks very much for your help, think I've now got things working the way I wanted it.
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