Thread View: news.software.nntp
5 messages
5 total messages
Started by ciradrak
Mon, 13 Jan 2003 19:19
INN readers.conf
Author: ciradrak
Date: Mon, 13 Jan 2003 19:19
Date: Mon, 13 Jan 2003 19:19
46 lines
2556 bytes
2556 bytes
I'm having a problem setting up access and hope that someone can give me advice.
I set INN up and can post messages to it. I'm trying to get it to
authenticate using a username and password. The problem as I see it is that
when I connect using netscape 4.78 under Win95B it rejects my name/password,
even though typing:
"ClientAuthname: username\r ClientPassword: password\r" to the program
`/usr/bin/auth/passwd/ckpasswd -f /etc/news/newsusers` says my name/password is ok.
To confuse matters further, using netscape 7.0 on MacOS 10.2.3 logs in without
ever querying for username/password and gives me read post access!?! I'm so
confused. I've read the man pages, docs on http://www.eyrie.org/, the NAG on
INN, and a bit of the source code; and it still doesn't make sense why this
isn't working. Do I need to use a difference version of INN? I've got INN-2.3.2
Any help / additional documentation would be appreciated.
Here's my readers.conf file:
auth "localhost" {
hosts: "localhost, 127.0.0.1, stdin"
default: "<localhost>"
}
access "localhost" {
users: "<localhost>"
newsgroups: "*"
access: RPA
}
auth "all" {
hosts: "192.168.0.0/16"
auth: "/usr/bin/auth/passwd/ckpasswd -f /etc/news/newsusers"
default: <FAIL>
}
access "all" {
users: "*, !<FAIL>@*"
newsgroups: "*"
access: RPA
}
-Cira
Re: INN readers.conf
Author: Russ Allbery
Date: Mon, 13 Jan 2003 19:27
Date: Mon, 13 Jan 2003 19:27
26 lines
1910 bytes
1910 bytes
ciradrak <sam_george@attbi.com> writes:
> I'm having a problem setting up access and hope that someone can give me
> advice. I set INN up and can post messages to it. I'm trying to get it
> to authenticate using a username and password. The problem as I see it
> is that when I connect using netscape 4.78 under Win95B it rejects my
> name/password, even though typing:
I thikn you're running into an annoying problem with the current
readers.conf. Here:
> auth "all" {
> hosts: "192.168.0.0/16"
> auth: "/usr/bin/auth/passwd/ckpasswd -f /etc/news/newsusers"
> default: <FAIL>
> }
try using just "ckpasswd -f /etc/news/newsusers". I'm not sure that
absolute paths work.
--
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: INN readers.conf
Author: ciradrak
Date: Tue, 14 Jan 2003 00:18
Date: Tue, 14 Jan 2003 00:18
67 lines
4022 bytes
4022 bytes
Russ Allbery wrote:
> ciradrak <sam_george@attbi.com> writes:
>
>
>>I'm having a problem setting up access and hope that someone can give me
>>advice. I set INN up and can post messages to it. I'm trying to get it
>>to authenticate using a username and password. The problem as I see it
>>is that when I connect using netscape 4.78 under Win95B it rejects my
>>name/password, even though typing:
>
>
> I thikn you're running into an annoying problem with the current
> readers.conf. Here:
>
>
>>auth "all" {
>> hosts: "192.168.0.0/16"
>> auth: "/usr/bin/auth/passwd/ckpasswd -f /etc/news/newsusers"
>> default: <FAIL>
>>}
>
>
> try using just "ckpasswd -f /etc/news/newsusers". I'm not sure that
> absolute paths work.
Indeed that did help! My windows test client now works. But frighteningly, the
MacOSX client is still allowed in with both read and post access without
providing a password.
Perhaps some log data would be helpful? Here is the windows box connecting.
Jan 13 16:49:15 thon nnrpd[1452]: SERVER perl filtering enabled
Jan 13 16:49:15 thon nnrpd[1452]: ? cant gethostbyaddr 192.168.100.196 Unknown
host -- using IP address for access
Jan 13 16:49:15 thon nnrpd[1452]: 192.168.100.196 connect
Jan 13 16:49:23 thon nnrpd[1452]: 192.168.100.196 user cira
Jan 13 16:49:58 thon nnrpd[1452]: 192.168.100.196 group test.newsgroup 0
Jan 13 16:50:03 thon nnrpd[1452]: 192.168.100.196 group test.newsgroup 0
Jan 13 16:50:03 thon nnrpd[1452]: 192.168.100.196 times user 0.020 system 0.020
elapsed 48.416
And now the MacOSX client which seems to get a free ride (look ma no password!)
Jan 13 16:51:41 thon nnrpd[1463]: SERVER perl filtering enabled
Jan 13 16:51:41 thon nnrpd[1463]: ? cant gethostbyaddr 192.168.100.193 Unknown
host -- using IP address for access
Jan 13 16:51:41 thon nnrpd[1463]: 192.168.100.193 connect
Jan 13 16:51:43 thon nnrpd[1463]: 192.168.100.193 group test.newsgroup 0
Jan 13 16:52:07 thon innd: localhost connected 16
Jan 13 16:52:07 thon innd: localhost:16 closed seconds 0 accepted 1 refused 0
rejected 0 duplicate 0 accepted
size 848 duplicate size 0
Jan 13 16:52:07 thon nnrpd[1463]: 192.168.100.193 post ok
<3E2354F3.5020103@attbi.com>
Jan 13 16:52:13 thon nnrpd[1463]: 192.168.100.193 group test.newsgroup 1
Jan 13 16:52:13 thon nnrpd[1463]: 192.168.100.193 exit articles 1 groups 2
Jan 13 16:52:13 thon nnrpd[1463]: 192.168.100.193 posts received 1 rejected 0
Jan 13 16:52:13 thon nnrpd[1463]: 192.168.100.193 times user 0.020 system 0.010
elapsed 32.636
Jan 13 16:52:13 thon nnrpd[1463]: 192.168.100.193 artstats get 1 time 0 size 682
I'll do whatever you need me to to debug this. Should I try for a tcpdump?
Would that be helpful?
-Cira
Re: INN readers.conf
Author: Jeffrey M. Vinocur
Date: Tue, 14 Jan 2003 00:24
Date: Tue, 14 Jan 2003 00:24
33 lines
2055 bytes
2055 bytes
In article <3E235740.2000200@attbi.com>, ciradrak <sam_george@attbi.com> wrote: > >Indeed that did help! My windows test client now works. But >frighteningly, the MacOSX client is still allowed in with both >read and post access without providing a password. Ah ha, I see why: "<FAIL>" does match "*,!<FAIL>@*" because there's no @ sign in "<FAIL>". There are three solutions: - remove the "default: <FAIL>" line entirely - make the wildmat "*,!<FAIL>" or "*,!<FAIL>,!<FAIL>@*" if you prefer - add a "default-domain" parameter to the auth block so that the !<FAIL>@ part matches I think the first one is best. >I'll do whatever you need me to to debug this. Should I try for a tcpdump? >Would that be helpful? The thing that will help the most for these problem is to enable logging (in syslog.conf) of news.debug (in addition to news.crit, news.err, and news.notice). If you had done that, you might have been able to figure this out without help. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN readers.conf
Author: ciradrak
Date: Tue, 14 Jan 2003 04:48
Date: Tue, 14 Jan 2003 04:48
28 lines
1928 bytes
1928 bytes
Jeffrey M. Vinocur wrote: > In article <3E235740.2000200@attbi.com>, > ciradrak <sam_george@attbi.com> wrote: *snip* > The thing that will help the most for these problem is to enable > logging (in syslog.conf) of news.debug (in addition to news.crit, > news.err, and news.notice). If you had done that, you might have > been able to figure this out without help. Humm... *enablessyslog* news.=debug /var/log/news/news.debug *examines news.debug* Oh. Well. I Thank both of you most heartily! <FAIL> does indeed match "*, !<FAIL>@*" That's what happens when one copies without considering what the statement does. I now have authentication working! :) -Cira
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