Thread View: news.software.nntp
3 messages
3 total messages
Started by kmoir
Thu, 03 Feb 2005 13:38
configuring innd 2.4.1 with require_ssl and ckpasswd
Author: kmoir
Date: Thu, 03 Feb 2005 13:38
Date: Thu, 03 Feb 2005 13:38
62 lines
2910 bytes
2910 bytes
Hi
I'm having problems getting password authentication to work with inn
2.4.1 and openssl. I compiled innd 2.4.1 from source using the
--with-openssl option.
I would like to force all users to be authenticated with ckpasswd over
ssl. I'm running nntps through stunnel using the following
configuration.
cat /etc/xinetd.d/nntps
service nntps
{
flags = REUSE NAMEINARGS
socket_type = stream
protocol = tcp
wait = no
user = news
server = /usr/sbin/stunnel
server_args = stunnel /etc/stunnel/stunnel.conf
}
/etc/stunnel/stunnel.conf looks like this
# Comment it out on Win32
cert = /usr/lib/news/lib/cert.pem
chroot = /usr/var/run/stunnel/
# PID is created inside chroot jail
pid = /stunnel.pid
setuid = nobody
setgid = nogroup
[innds]
accept = 563
connect = 119
My readers.conf looks like this
auth all {
require_ssl: "true"
auth: "ckpasswd -f /etc/news/newsusers"
}
access all {
newsgroups: *
}
If I disable the require_ssl: true clause, I can connect to the server
using regular nntp and am challenged for a username and password.
However, if I try to connect using a ssl connection, the news.notice
log reports "no_permission".
If I telnet to port 563 on the server, I am immediately disconnected.
The problem seems similar to the one described in this thread but none
of the solutions proposed there work for me.
http://groups-beta.google.com/group/news.software.nntp/browse_frm/thread/69ace00a76310e4c/85c4e477f1c6763f?tvc=1&q=require_ssl+nntp&_done=%2Fgroups%3Fq%3Drequire_ssl+nntp%26qt_s%3DSearch+Groups%26&_doneTitle=Back+to+Search&scrollSave=&&d#85c4e477f1c6763f
Any suggestions?
Thanks
Kim
Re: configuring innd 2.4.1 with require_ssl and ckpasswd
Author: Szymon Sokół
Date: Thu, 03 Feb 2005 14:33
Date: Thu, 03 Feb 2005 14:33
46 lines
2856 bytes
2856 bytes
kmoir <kmoir@ca.ibm.com> wrote:
>
> I'm having problems getting password authentication to work with inn
> 2.4.1 and openssl. I compiled innd 2.4.1 from source using the
> --with-openssl option.
Thus, nnrpd is doing SSL itself, using the OpenSSL library and
eliminating the need for stunnel.
> I would like to force all users to be authenticated with ckpasswd over
> ssl. I'm running nntps through stunnel using the following
> configuration.
What you do is essentially like putting a box in a barnyard, then
wondering why the box's key does not open the barnyard's gate. You want
your newsreader to talk SSL to nnrpd, NOT to any intermediaries (stunnel
in this case).
> server = /usr/sbin/stunnel
> server_args = stunnel /etc/stunnel/stunnel.conf
Change this to:
server = /usr/bin/nnrpd (or wherever you put your nnrpd)
server_args = nnrpd -S
-S is important, see
http://www.eyrie.org/~eagle/software/inn/docs/nnrpd.html#S4
> My readers.conf looks like this
> auth all {
> require_ssl: "true"
> auth: "ckpasswd -f /etc/news/newsusers"
> }
>
>
> access all {
> newsgroups: *
> }
This looks OK.
--
Szymon Sokół (SS4004,SS316-RIPE) -- Network Manager B
Computer Center, University of Mining and Metallurgy, Cracow, Poland. O
http://2510053385/~szymon/ PGP key id: RSA: 0x61094A7D, DSS: 0xF9289982 F
Free speech includes the right not to listen, if not interested -- Heinlein H
Re: configuring innd 2.4.1 with require_ssl and ckpasswd
Author: kmoir
Date: Thu, 03 Feb 2005 16:08
Date: Thu, 03 Feb 2005 16:08
4 lines
1370 bytes
1370 bytes
Thanks very much. This solved my problem. Kim
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