Thread View: news.software.nntp
9 messages
9 total messages
Started by Benedict White
Mon, 28 Nov 2005 22:26
The use of ckpasswd in readers.conf
Author: Benedict White
Date: Mon, 28 Nov 2005 22:26
Date: Mon, 28 Nov 2005 22:26
55 lines
2543 bytes
2543 bytes
Hi, I am having a little trouble seeing why nothing I try is working in
the way of authorisation.
Every config file is as it is out of the box, bar a minimum of changes
which work.
I obviously have edited readers.conf a bit to the following:
auth "localhost" {
hosts: "localhost, 127.0.0.1, stdin"
default: "<localhost>"
}
access "localhost" {
users: "<localhost>"
newsgroups: "*"
access: RPA
}
auth "local" {
hosts: "192.168.2.*"
auth: "ckpasswd -f /etc/shadow"
default: "<local>@somedomain.co.uk"
}
access "local" {
users: "<local>@somedomain.co.uk"
newsgroups: "*"
}
Now, I have tried various things on the auth line, including just
"ckpasswd" "ckpasswd -S" and the line above, but nothing challenges me
for a password.
That said I also have an account with the same username and password on
the server if Mozilla is capable of just picking up my shadow entry?
--
Kind regards
Benedict White
Please note that my email address is not checked regularly and will be used for
harvesting UCE. If you want to email me work out my address from the following,
my first name at law 4 free daht org daht uk. If this cause accessibility problems
to those who are blind etc., please post a follow up, and I will try and improve
the situation.
Re: The use of ckpasswd in readers.conf
Author: Jeffrey M. Vinocur
Date: Mon, 28 Nov 2005 23:33
Date: Mon, 28 Nov 2005 23:33
53 lines
3060 bytes
3060 bytes
In article <dmg07f$req$2$8302bc10@news.demon.co.uk>,
Benedict White <benedict_white@uk2.net> wrote:
>Hi, I am having a little trouble seeing why nothing I try is working in
>the way of authorisation.
You haven't told us any actual error messages or provided log
entries, so I can't tell what the true problem is. But here are
some things I would change...
>auth "local" {
> hosts: "192.168.2.*"
> auth: "ckpasswd -f /etc/shadow"
> default: "<local>@somedomain.co.uk"
>}
I don't recommend using "ckpasswd -f /etc/shadow" -- if you want
to use system passwords, use "ckpasswd -s" instead. Either way
is a potential security hole, but if you're sure you know what
you're doing, it should work provided you've given the ckpasswd
binary appropriate permissions.
You have another problem, which is that when a user connects from
a host in that range, the assigned identity will be
"<local>@somedomain.co.uk" -before- authentication (for anyone
coming from that netblock, which may not be what you want).
Afterwards it will be whatever the user authenticated with -- and
you don't have an access group that would match any other
identity.
>Now, I have tried various things on the auth line, including just
>"ckpasswd" "ckpasswd -S" and the line above, but nothing challenges me
>for a password.
Yes, if you provide a default: line, you won't be challenged for
a password, because INN is going to allow you the permissions
determined by the default identity. If you want the ability to
assign default permissions like this, then you need to configure
your newsreader to "always send password" or "authenticate
without prompting" or whatever it may be called in your software.
If not, you can simply remove the default: line from that block.
>That said I also have an account with the same username and password on
>the server if Mozilla is capable of just picking up my shadow entry?
Only if you use "ckpasswd -s".
--
Jeffrey M. Vinocur
jeff@litech.org
Re: The use of ckpasswd in readers.conf
Author: Benedict White
Date: Tue, 29 Nov 2005 01:04
Date: Tue, 29 Nov 2005 01:04
83 lines
4434 bytes
4434 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote:
> In article <dmg07f$req$2$8302bc10@news.demon.co.uk>,
> Benedict White <benedict_white@uk2.net> wrote:
>>Hi, I am having a little trouble seeing why nothing I try is working in
>>the way of authorisation.
>
> You haven't told us any actual error messages or provided log
> entries, so I can't tell what the true problem is. But here are
> some things I would change...
>
>
>>auth "local" {
>> hosts: "192.168.2.*"
>> auth: "ckpasswd -f /etc/shadow"
>> default: "<local>@somedomain.co.uk"
>>}
>
> I don't recommend using "ckpasswd -f /etc/shadow" -- if you want
> to use system passwords, use "ckpasswd -s" instead. Either way
> is a potential security hole, but if you're sure you know what
> you're doing, it should work provided you've given the ckpasswd
> binary appropriate permissions.
>
Neither do I, but I am just trying to understand how to get it working
the way I want, so am starting with something so simple I should be able
to get it to work, and then make it more complecated as I go.
> You have another problem, which is that when a user connects from
> a host in that range, the assigned identity will be
> "<local>@somedomain.co.uk" -before- authentication (for anyone
> coming from that netblock, which may not be what you want).
> Afterwards it will be whatever the user authenticated with -- and
> you don't have an access group that would match any other
> identity.
>
>
>>Now, I have tried various things on the auth line, including just
>>"ckpasswd" "ckpasswd -S" and the line above, but nothing challenges me
>>for a password.
>
> Yes, if you provide a default: line, you won't be challenged for
> a password, because INN is going to allow you the permissions
> determined by the default identity. If you want the ability to
> assign default permissions like this, then you need to configure
> your newsreader to "always send password" or "authenticate
> without prompting" or whatever it may be called in your software.
> If not, you can simply remove the default: line from that block.
>
OK, it seems to not demand a password if I have a default line, and
demands one when I don't.
I do need it to demand the password so the default line presumably needs
to go.
So the next question is how do I get access groups to work to allow
different access for different classes of people.
As I understand it the name of the auth block and access block are not
related, so if someone auths one way it does not imply they will get
access from an access group of the same name.
So how does one set that up?
If I want to set access on the basis of user login but have no reliable
way of determening where they come from, how can I can control access
and limit it for some users but allow it for others?
--
Kind regards
Benedict White
Please note that my email address is not checked regularly and will be used for
harvesting UCE. If you want to email me work out my address from the following,
my first name at law 4 free daht org daht uk. If this cause accessibility problems
to those who are blind etc., please post a follow up, and I will try and improve
the situation.
Re: The use of ckpasswd in readers.conf
Author: Christian Hoffmann
Date: Tue, 29 Nov 2005 07:57
Date: Tue, 29 Nov 2005 07:57
53 lines
2139 bytes
2139 bytes
Benedict White wrote:
> If I want to set access on the basis of user login but have no reliable
> way of determening where they come from, how can I can control access
> and limit it for some users but allow it for others?
>
Hello Benedict,
...maybe this is what you want?
# either the client requests authenticication...
auth "admin" {
key: special
auth: "ckpasswd -d /home/news/readers.auth"
default-domain: "foo.bar"
}
# ... or not.
auth "default" {
hosts: "*"
default: "user"
default-domain: "foo.bar"
}
#
# clients which request authenticication,
# are "admin" and have another access group...
#
access "default" {
users: "*"
read: "test,foo.*,!foo,!junk,!control,!control.*"
post: "test,foo.*,!foo,!foo.admin,!junk,!control,!control.*"
}
access "admin" {
users: "benson@*,hedges@*,harley@*,davidson@*"
key: special
newsgroups: "*"
access: RPIANL
}
Regards,
Christian
Re: The use of ckpasswd in readers.conf
Author: Jeffrey M. Vinocur
Date: Tue, 29 Nov 2005 12:57
Date: Tue, 29 Nov 2005 12:57
28 lines
2138 bytes
2138 bytes
In article <dmg9ef$5uq$2$8302bc10@news.demon.co.uk>, Benedict White <benedict_white@uk2.net> wrote: > >So the next question is how do I get access groups to work to allow >different access for different classes of people. > >As I understand it the name of the auth block and access block are not >related, so if someone auths one way it does not imply they will get >access from an access group of the same name. > >So how does one set that up? That's what the key: parameter does, but I suggest that you don't actually want to do that. If you describe the configuration you're trying to achieve in more detail, there's probably a better way that doesn't require the key: parameter. >If I want to set access on the basis of user login but have no reliable >way of determening where they come from, how can I can control access >and limit it for some users but allow it for others? Can you be a little more descriptive here? -- Jeffrey M. Vinocur jeff@litech.org
Re: The use of ckpasswd in readers.conf
Author: Benedict White
Date: Tue, 29 Nov 2005 13:46
Date: Tue, 29 Nov 2005 13:46
59 lines
3199 bytes
3199 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote: > In article <dmg9ef$5uq$2$8302bc10@news.demon.co.uk>, > Benedict White <benedict_white@uk2.net> wrote: >> >>So the next question is how do I get access groups to work to allow >>different access for different classes of people. >> >>As I understand it the name of the auth block and access block are not >>related, so if someone auths one way it does not imply they will get >>access from an access group of the same name. >> >>So how does one set that up? > > That's what the key: parameter does, but I suggest that you don't > actually want to do that. If you describe the configuration > you're trying to achieve in more detail, there's probably a > better way that doesn't require the key: parameter. > > >>If I want to set access on the basis of user login but have no reliable >>way of determening where they come from, how can I can control access >>and limit it for some users but allow it for others? > > Can you be a little more descriptive here? > > Well, here is the scenario: I want people to be able to access a private server carrying a number of different groups. I do not know where on the net they will come from. Some groups I may want accessable to all regardless. Otherw I will want read/write access for particular people who have been issued with passwords. Also there may be some other groups to which they can have only read access. Then there will be people who want read/write ato all, based again on usernames and paswords. Hopefully that is clearer. -- Kind regards Benedict White Please note that my email address is not checked regularly and will be used for harvesting UCE. If you want to email me work out my address from the following, my first name at law 4 free daht org daht uk. If this cause accessibility problems to those who are blind etc., please post a follow up, and I will try and improve the situation.
Re: The use of ckpasswd in readers.conf
Author: Jeffrey M. Vinocur
Date: Tue, 29 Nov 2005 20:29
Date: Tue, 29 Nov 2005 20:29
57 lines
2899 bytes
2899 bytes
In article <dmhm3o$7bn$1$8302bc10@news.demon.co.uk>,
Benedict White <benedict_white@uk2.net> wrote:
>
>I want people to be able to access a private server carrying a number of
>different groups. I do not know where on the net they will come from.
>
>Some groups I may want accessable to all regardless.
>
>Otherw I will want read/write access for particular people who have been
>issued with passwords. Also there may be some other groups to which they
>can have only read access.
>
>Then there will be people who want read/write ato all, based again on
>usernames and paswords.
Okay, I think I understand now. If you're going to be
authenticating everyone based on usernames and passwords, you
don't have to care where they come from.
Here's what I would do (untested):
auth worldwide {
hosts: "*"
auth: "ckpasswd -f newsaccounts" # or ckpasswd -s, or whatever
default: <unauthenticated>
}
access authenticated { # people with passwords
users: "*"
read: "!*,local.*"
post: "!*,local.*"
}
access special { # people with extra access
users: "benedict,james,marilyn"
newsgroups: "*"
}
access unauthenticated { # people without passwords
users: "<unauthenticated>"
read: "!*,local.public.*"
post: "!*,local.public.everyone"
}
I hope it's clear how this works -- an unauthenticated user will
always end up in the "unauthenticated" access group;
authenticated users will end up in either "authenticated" or
"special" depending on their username.
Does this meet your needs?
--
Jeffrey M. Vinocur
jeff@litech.org
Re: The use of ckpasswd in readers.conf
Author: Benedict White
Date: Thu, 01 Dec 2005 12:23
Date: Thu, 01 Dec 2005 12:23
34 lines
2389 bytes
2389 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote: > In article <dmhm3o$7bn$1$8302bc10@news.demon.co.uk>, > Benedict White <benedict_white@uk2.net> wrote: >> > > > I hope it's clear how this works -- an unauthenticated user will > always end up in the "unauthenticated" access group; > authenticated users will end up in either "authenticated" or > "special" depending on their username. > > Does this meet your needs? U have not had the chance to test it yet, but it looks like it. I will have a play and come back to you. So the value after default, <unauthenticaed> is assigned on failure. Is there anyway to asign a some kind of default ID to a successful authentication that would be something else if authentication failed? -- Kind regards Benedict White Please note that my email address is not checked regularly and will be used for harvesting UCE. If you want to email me work out my address from the following, my first name at law 4 free daht org daht uk. If this cause accessibility problems to those who are blind etc., please post a follow up, and I will try and improve the situation.
Re: The use of ckpasswd in readers.conf
Author: Jeffrey M. Vinocur
Date: Thu, 01 Dec 2005 12:50
Date: Thu, 01 Dec 2005 12:50
18 lines
1643 bytes
1643 bytes
In article <dmmpvb$qsk$1$830fa795@news.demon.co.uk>, Benedict White <benedict_white@uk2.net> wrote: > >So the value after default, <unauthenticaed> is assigned on failure. No. The default: value is assigned for clients that have not supplied a username and password. Failed authentication results in immediate disconnection of the client. Always. You don't need to have any block in readers.conf to handle users taht fail authentication. -- 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