🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #70678

configuring innd 2.4.1 with require_ssl and ckpasswd

#70678
From: kmoir
Date: Thu, 03 Feb 2005 13:38
62 lines
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
Technical Details
Message-ID: <1107437897.616602.220180@f14g2000cwb.googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsread.com!news-xfer.newsread.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <1107437897.616602.220180@f14g2000cwb.googlegroups.com>
Subject: configuring innd 2.4.1 with require_ssl and ckpasswd
Date: Thu, 03 Feb 2005 13:38:17 +0000
From: "kmoir" <kmoir@ca.ibm.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsread.com!news-xfer.newsread.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://groups.google.com
Lines: 62
NNTP-Posting-Host: 204.138.97.7
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1107437901 11455 127.0.0.1 (3 Feb 2005 13:38:21
 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 3 Feb 2005 13:38:21 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=204.138.97.7;
 posting-account=2kxgow0AAACubKf8bwrxzIDO2nlPIWLh