Thread View: news.software.nntp
2 messages
2 total messages
Started by Thomas -Balu- Walter
Tue, 10 Apr 2001 12:50
radius-authentication fails
Author: Thomas -Balu- Walter
Date: Tue, 10 Apr 2001 12:50
Date: Tue, 10 Apr 2001 12:50
66 lines
2843 bytes
2843 bytes
Actually I have a problem to authenticate my users via radius. Biggest
problem is - is it a problem with radius, with inn or with my client?
I've set up the following readers.conf:
# Was activated by default, might remove it later
auth "localhost" {
hosts: "localhost, 127.0.0.1, stdin"
default: "<localhost>"
}
access "localhost" {
users: "<localhost>"
newsgroups: "*"
}
# authenticate with radius
auth radius {
auth: "radius"
default: <fail>
default-domain: radius.fh-muenster.de
}
access radius {
users: *@radius.fh-muenster.de
newsgroups: "*, !junk, !control, !control.*"
}
access faileduser {
users: <fail>@*
newsgroups: !*
}
In addition I have set up radius.conf to include my radhost, lochost
and secret - the radius-server was configured to accept this client with
this secret.
When I try to connect to the newsserver with slrn news.notice logs the
following:
Apr 10 05:36:56 newstest nnrpd[3000]: 193.174.90.124 connect
Apr 10 05:36:56 newstest nnrpd[3000]: 193.174.90.124 \
bad_hook program caught signal 11
Apr 10 05:36:56 newstest nnrpd[3000]: 193.174.90.124 bad_auth
Apr 10 05:36:56 newstest nnrpd[3000]: 193.174.90.124 \
times user 0.070 system 0.040 elapsed 0.274
This signal 11 confused me and I tried to call the programm
bin/auth/passwd/radius manually which gave me a segfault?
The radius-server did not log any attempt in its radius.log
Is there a way to check if the authentication itself works (by calling
the ckpasswd/radius manually and giving username + password)?
I have also tried to replace auth: radius with
auth: "ckpasswd -f /usr/local/news/newsusers"
and created that file including username:cryptpw I got from a shadow of
another system. (the newsserver itself uses md5 - no chance ;)
That works.
Base system of the newsserver is a debian-2.2r2
If you need more information, please contact me...
Balu
Re: radius-authentication fails
Author: Thomas -Balu- Walter
Date: Tue, 10 Apr 2001 13:25
Date: Tue, 10 Apr 2001 13:25
35 lines
2228 bytes
2228 bytes
In article <slrn9d60kk.f6l.netnews@itreff.de>, Thomas -Balu- Walter wrote:
[problems with radius-authentication]
>This signal 11 confused me and I tried to call the programm
>bin/auth/passwd/radius manually which gave me a segfault?
>
>The radius-server did not log any attempt in its radius.log
This was the problem - I've just put out the rest of my c-knowledge,
installed strace and played with "bin/auth/passwd/radius" when I finally
figured out that it has problems to open the radius.conf-file.
Looking through the C-source of radius.c gave me an option "-f" which
looks like a way to specify the radius.conf - tested manually -> no
segfault, tested in readers.conf - worked.
So - in short: auth: "radius -f /usr/local/news/etc/radius.conf" and
YAY! ;-)
>Is there a way to check if the authentication itself works (by calling
>the ckpasswd/radius manually and giving username + password)?
deep crawling through the source gave me the answer too:
bin/auth/passwd/radius -f etc/radius.conf
ClientAuthname: balu
ClientPassword: password
<ctrl>-<d>
User:balu
Sometimes you just have to ask others to find a solution yourself ;)
Ba-happy-lu
--
"Linux is like a fractal: No matter how deep you go, there's always
more!" [Casey Bralla, 24.01.2001 in lfs-discuss@linuxfromscratch.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