Article View: news.software.nntp
Article #85367Re: innd saslauthd auth
From: Flibsy
Date: Mon, 14 Jan 2013 08:30
Date: Mon, 14 Jan 2013 08:30
86 lines
3893 bytes
3893 bytes
On 13-1-2013 20:11, Julien ΓLIE wrote: Hi, thanks for your re! > Flibsy: >> I'd like to authenticate users using saslauthd (used to authenticate users >> for mail) but I do not know how to configure that in the auth: >> specification in readers.conf. > > For SASL authentication, INN currently (at least for 2.5.x versions) > does not use auth blocks. > When AUTHINFO SASL is used, the user name returned after a successful > authentication is directly used when matching access blocks. When you say 'AUTHINFO SASL is used', are you referring to a setting somewhere in INN? Or do you mean the client issuing the command? When I look into the client's debug log, I see no AUTHINFO SASL, just AUTHINFO USER. > > So basically, you just have to properly configure your saslauthd daemon, > and it should be OK. Hm. My SASLAUTHD runs ok for Courier imap/pop3 and POSTFIX with courier-authlib/authdaemond employing userdb: 9428 ?? IsJ 0:00.07 /usr/local/sbin/saslauthd -a rimap -O localhost -r > Another point: INN must have been configured for SASL support. > If you "telnet your.news.server 119", have a look at the > "AUTHINFO USER SASL" line in response to the CAPABILITIES command (after > maybe a MODE READER command): > > 20:06 news@trigo ~% telnet localhost 119 > Trying 127.0.0.1... > Connected to localhost.localdomain. > Escape character is '^]'. > 200 news.trigofacile.com InterNetNews server INN 2.6.0 (20120528 prerelease) ready (transit mode) > MODE READER > 200 news.trigofacile.com InterNetNews NNRP server INN 2.6.0 (20120528 prerelease) ready (posting ok) > CAPABILITIES > 101 Capability list: > VERSION 2 > IMPLEMENTATION INN 2.6.0 (20120528 prerelease) > AUTHINFO USER SASL > HDR > IHAVE > LIST ACTIVE ACTIVE.TIMES COUNTS DISTRIB.PATS DISTRIBUTIONS HEADERS MODERATORS MOTD NEWSGROUPS OVERVIEW.FMT SUBSCRIPTIONS > OVER > POST > READER > SASL GSSAPI OTP PLAIN NTLM LOGIN DIGEST-MD5 CRAM-MD5 > STARTTLS My server's results show include the SASL specs: 200 nltaal.nl InterNetNews NNRP server INN 2.5.2 ready (posting ok) CAPABILITIES 101 Capability list: VERSION 2 IMPLEMENTATION INN 2.5.2 AUTHINFO USER SASL HDR LIST ACTIVE ACTIVE.TIMES DISTRIB.PATS HEADERS NEWSGROUPS OVERVIEW.FMT NEWNEWS OVER POST READER SASL SCRAM-SHA-1 GSSAPI GSS-SPNEGO DIGEST-MD5 OTP CRAM-MD5 NTLM PLAIN LOGIN > > Knowing that fact, is SASL auth now working on your server? Well, as I said, for POSTFIX SMTP and Courier IMAP and POP3 it's working fine, but not for INN NNRP and NNTP. Is this output ok? 200 nltaal.nl InterNetNews NNRP server INN 2.5.2 ready (posting ok) AUTHINFO SASL rimap 503 no mechanism available -- Flibsy
Technical Details
Message-ID:
<50f3c1ee$0$6052$e4fe514c@dreader36.news.xs4all.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border5.a.newsrouter.astraweb.com!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mailReferences:
<1485580280379731397.561900flibsy-nltaal.nl@newszilla.xs4all.nl> <kcv0te$3rg$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <50f3c1ee$0$6052$e4fe514c@dreader36.news.xs4all.nl> Subject: Re: innd saslauthd auth Date: Mon, 14 Jan 2013 09:30:01 +0100 From: Flibsy <flibsy@nltaal.nl> References: <1485580280379731397.561900flibsy-nltaal.nl@newszilla.xs4all.nl> <kcv0te$3rg$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border5.a.newsrouter.astraweb.com!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail User-Agent: Mozilla/5.0 (Windows NT 5.1; MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <kcv0te$3rg$1@news.trigofacile.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 86 NNTP-Posting-Host: 83.163.185.244 X-Trace: 1358152174 dreader36.news.xs4all.nl 6052 83.163.185.244:1507