Thread View: news.software.nntp
5 messages
5 total messages
Started by Christian Hoffmann
Tue, 09 Aug 2005 07:28
need some help with INN authenticication and readers.conf...
Author: Christian Hoffmann
Date: Tue, 09 Aug 2005 07:28
Date: Tue, 09 Aug 2005 07:28
40 lines
2360 bytes
2360 bytes
As INN Newbie I try to setup a simple, purely internal Newsserver based
on INN and SuSE9.2.
But I'v got stuck because I'm not sure about the didactics of the
readers.conf manpage:
-------------------------------------------------------------------
An auth group definition looks like:
auth <name> {
hosts: <host-wildmat>
auth: <auth-program>
res: <res-program>
default: <defuser>
default-domain: <defdomain>
# ...possibly other settings
}
-------------------------------------------------------------------
etc.
Is the meaning of e.g. "<name>" a variable (like e.g. "%U" in smb.conf),
an example (like e.g. "foo.bar") or a placeholder for a variable? Is
<defuser> also a variable/example/variable's placeholder or is it
different?
Perhaps someone could post a link for a sailor-proof howto for setting
up readers.conf (German would be nice also...)
Another question is: When do changes in readers.conf do actually take
effect? I tested some different authenticication methods and I had to
erase my account and make a new one on my Netscape news client?
(restarting INN made no difference?)
Is there a simple out-of-the-box webinterface to manage local users
(create/delete users and change passwords)?
Thanks for any hints you can provide, and best regards!
Christian
Re: need some help with INN authenticication and readers.conf...
Author: Jeffrey M. Vinocur
Date: Tue, 09 Aug 2005 08:56
Date: Tue, 09 Aug 2005 08:56
61 lines
3195 bytes
3195 bytes
In article <3lr48bF13hc32U1@individual.net>,
Christian Hoffmann <brcwcs@gmx.net> wrote:
>
> auth <name> {
> hosts: <host-wildmat>
> auth: <auth-program>
> res: <res-program>
> default: <defuser>
> default-domain: <defdomain>
> # ...possibly other settings
> }
>
>Is the meaning of e.g. "<name>" a variable (like e.g. "%U" in smb.conf),
>an example (like e.g. "foo.bar") or a placeholder for a variable? Is
><defuser> also a variable/example/variable's placeholder or is it
>different?
I'm not quite sure what you mean here. Your system should have
an example readers.conf already installed that's going to be
better than anything I can do off the top of my head.
>Perhaps someone could post a link for a sailor-proof howto for setting
>up readers.conf (German would be nice also...)
I don't know of anything better than the manpage. You can use
Google Groups to search archives of this group for old posts to
use as examples, but that's all I know.
>Another question is: When do changes in readers.conf do actually take
>effect?
That depends how you run nnrpd. If you use the default config
where INN listens on port 119 and spawns nnrpd for each non-peer
connection, changes affect all new connections that occur after
than change. Same goes for starting nnrpd from inetd/xinetd. If
you use nnrpd -D, then you have to restart the daemon for changes
to take effect. You never have to restart all of INN.
>I tested some different authenticication methods and I had to
>erase my account and make a new one on my Netscape news client?
That sounds like a newsreader caching issue.
>Is there a simple out-of-the-box webinterface to manage local users
>(create/delete users and change passwords)?
Nope.
If you want to use a special news passwd file, the format is a
pretty traditional one, so tools like Apache's htpasswd will work
on it. You can probably find a web frontend to that, although
I've never looked for one.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: need some help with INN authenticication and readers.conf...
Author: Christian Hoffmann
Date: Tue, 09 Aug 2005 11:29
Date: Tue, 09 Aug 2005 11:29
74 lines
3283 bytes
3283 bytes
Jeffrey M. Vinocur wrote:
>>
>>Is the meaning of e.g. "<name>" a variable (like e.g. "%U" in smb.conf),
>>an example (like e.g. "foo.bar") or a placeholder for a variable? Is
>><defuser> also a variable/example/variable's placeholder or is it
>>different?
>
>
> I'm not quite sure what you mean here. Your system should have
> an example readers.conf already installed that's going to be
> better than anything I can do off the top of my head.
>
Hi Jeffrey,
Maybe it is too obvious for native speakers, but I'm afraid I need it
more verbose. My problem in understanding the manpage is like some folks
write "... use <name>@<domain>.<tld>" and actually mean "... use
helmut@brcwcs.org". Is e.g. "<FAIL>" reserved somehow or can I also use
"<SOMETHING_ELSE>"?
I would not ask this stupid question if my readers.conf (it's indeed the
modified example, but I try to force users to authenticicate against a
separate password file...) would be working as expected:
---------------------------------------------------------------------
# Default authorization: None
auth "default" {
default: "<FAIL>"
default-domain: "brcwcs.org"
}
# if e.g. helmut tries to login from the physical
# intranet he is assigned the identity "helmut@intranet.brcwcs.org"
auth "intranet" {
hosts: "192.168.110.0/24"
auth: "ckpasswd -d /home/news/readers_intranet.auth"
default: "<FAIL>"
default-domain: "intranet.brcwcs.org"
}
# folks from the intranet are allowed everything
# on all newsgroups
access "intranet" {
users: "*@intranet.brcwcs.org"
newsgroups: "*"
access: "RPA"
{
# all others are allowed nothing
access "fail" {
users: "<FAIL>@*"
newsgroups: "!*"
}
---------------------------------------------------------------------
Result: Helmut is asked for a password. The password is accepted but
helmut is allowed nothing.
I have never been prompted for a password and allowed everything.
What is wrong? Or should I search for a bug somewhere else?
Thank You for all the answers!
Christian
Re: need some help with INN authenticication and readers.conf...
Author: Russ Allbery
Date: Tue, 09 Aug 2005 14:41
Date: Tue, 09 Aug 2005 14:41
77 lines
3908 bytes
3908 bytes
Christian Hoffmann <brcwcs@gmx.net> writes:
> Maybe it is too obvious for native speakers, but I'm afraid I need it
> more verbose. My problem in understanding the manpage is like some folks
> write "... use <name>@<domain>.<tld>" and actually mean "... use
> helmut@brcwcs.org".
This is a good point, and I should perhaps change the readers.conf
examples to use something other than <FAIL>. In general, in all of the
INN documentation, anything in angle brackets is a variable that you
replace with your own value. <FAIL> in the readers.conf documentation,
however, is an explicit string, although it's not special in any way other
than being used in the example. You can replace it with something else
and everything will work the same (provided that you replace both
instances), but the intention is to use a string that will never be used
as a username.
> Is e.g. "<FAIL>" reserved somehow or can I also use
> "<SOMETHING_ELSE>"?
You can also use <SOMETHING_ELSE>.
> I would not ask this stupid question if my readers.conf (it's indeed the
> modified example, but I try to force users to authenticicate against a
> separate password file...) would be working as expected:
> ---------------------------------------------------------------------
> # Default authorization: None
> auth "default" {
> default: "<FAIL>"
> default-domain: "brcwcs.org"
> }
> # if e.g. helmut tries to login from the physical
> # intranet he is assigned the identity "helmut@intranet.brcwcs.org"
> auth "intranet" {
> hosts: "192.168.110.0/24"
> auth: "ckpasswd -d /home/news/readers_intranet.auth"
> default: "<FAIL>"
> default-domain: "intranet.brcwcs.org"
> }
> # folks from the intranet are allowed everything
> # on all newsgroups
> access "intranet" {
> users: "*@intranet.brcwcs.org"
> newsgroups: "*"
> access: "RPA"
> {
> # all others are allowed nothing
> access "fail" {
> users: "<FAIL>@*"
> newsgroups: "!*"
> }
> ---------------------------------------------------------------------
> Result: Helmut is asked for a password. The password is accepted but
> helmut is allowed nothing. I have never been prompted for a password
> and allowed everything.
Hm, I don't see anything obviously wrong with the above, although note
that no one outside of the IP range in intranet will ever be allowed
access.
In particular, I don't see how you would get access to read groups on that
server without specifying a password.
--
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: need some help with INN authenticication and readers.conf...
Author: Christian Hoffmann
Date: Tue, 09 Aug 2005 15:44
Date: Tue, 09 Aug 2005 15:44
101 lines
4081 bytes
4081 bytes
Russ Allbery wrote:
> Christian Hoffmann <brcwcs@gmx.net> writes:
>
>
>>Maybe it is too obvious for native speakers, but I'm afraid I need it
>>more verbose. My problem in understanding the manpage is like some folks
>>write "... use <name>@<domain>.<tld>" and actually mean "... use
>>helmut@brcwcs.org".
>
>
> This is a good point, and I should perhaps change the readers.conf
> examples to use something other than <FAIL>. In general, in all of the
> INN documentation, anything in angle brackets is a variable that you
> replace with your own value. <FAIL> in the readers.conf documentation,
> however, is an explicit string, although it's not special in any way other
> than being used in the example. You can replace it with something else
> and everything will work the same (provided that you replace both
> instances), but the intention is to use a string that will never be used
> as a username.
>
>
>>Is e.g. "<FAIL>" reserved somehow or can I also use
>>"<SOMETHING_ELSE>"?
>
>
> You can also use <SOMETHING_ELSE>.
>
Thank You for this info!
>
>>I would not ask this stupid question if my readers.conf (it's indeed the
>>modified example, but I try to force users to authenticicate against a
>>separate password file...) would be working as expected:
>
>
>>---------------------------------------------------------------------
>># Default authorization: None
>
>
>>auth "default" {
>> default: "<FAIL>"
>> default-domain: "brcwcs.org"
>>}
>
>
>># if e.g. helmut tries to login from the physical
>># intranet he is assigned the identity "helmut@intranet.brcwcs.org"
>
>
>>auth "intranet" {
>> hosts: "192.168.110.0/24"
>> auth: "ckpasswd -d /home/news/readers_intranet.auth"
>> default: "<FAIL>"
>> default-domain: "intranet.brcwcs.org"
>>}
>
>
>># folks from the intranet are allowed everything
>># on all newsgroups
>
>
>>access "intranet" {
>> users: "*@intranet.brcwcs.org"
>> newsgroups: "*"
>> access: "RPA"
>>{
>
>
>># all others are allowed nothing
>
>
>>access "fail" {
>> users: "<FAIL>@*"
>> newsgroups: "!*"
>>}
>>---------------------------------------------------------------------
>
>
>>Result: Helmut is asked for a password. The password is accepted but
>>helmut is allowed nothing. I have never been prompted for a password
>>and allowed everything.
>
>
> Hm, I don't see anything obviously wrong with the above, although note
> that no one outside of the IP range in intranet will ever be allowed
> access.
>
> In particular, I don't see how you would get access to read groups on that
> server without specifying a password.
>
... well, now I know what's gone wrong. Finally I changed and changed a
copy of readers.conf in a wrong directory :-( Too much coffee...
Thank you very much for your help!
Christian
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