Article View: news.software.nntp
Article #85366Re: innd saslauthd auth
From: Flibsy
Date: Mon, 14 Jan 2013 08:48
Date: Mon, 14 Jan 2013 08:48
114 lines
4853 bytes
4853 bytes
On 14-1-2013 9:30, Flibsy wrote: > 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 Can anything be concluded from this: From the debug.log, resulting from a failed session: Jan 14 09:31:23 herelder nnrpd[26774]: Reading access from /usr/local/news/etc/readers.conf Jan 14 09:31:23 herelder nnrpd[26774]: Auth strategy 'localhost' does not match client. Removing. Jan 14 09:31:23 herelder nnrpd[26774]: herelder.xs4all.nl res <anyone>@anyhost Jan 14 09:31:23 herelder nnrpd[26774]: herelder.xs4all.nl match_user <anyone>@anyhost <anyone>@anyhost Jan 14 09:31:24 herelder last message repeated 7 times Jan 14 09:31:24 herelder nnrpd[26774]: DIGEST-MD5 common mech free The clients debug log shows: GROUP ->480 Authentication required ... AUTHINFO USER ... ->381 Enter password AUTHINFO PASS ... ->481 Authentication failed -- Flibsy
Technical Details
Message-ID:
<50f3c63b$0$6095$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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mailReferences:
<1485580280379731397.561900flibsy-nltaal.nl@newszilla.xs4all.nl> <kcv0te$3rg$1@news.trigofacile.com> <50f3c1ee$0$6052$e4fe514c@dreader36.news.xs4all.nl>Show Full Headers
Complete Article Headers
Message-ID: <50f3c63b$0$6095$e4fe514c@dreader36.news.xs4all.nl> Subject: Re: innd saslauthd auth Date: Mon, 14 Jan 2013 09:48:22 +0100 From: Flibsy <flibsy@nltaal.nl> References: <1485580280379731397.561900flibsy-nltaal.nl@newszilla.xs4all.nl> <kcv0te$3rg$1@news.trigofacile.com> <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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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: <50f3c1ee$0$6052$e4fe514c@dreader36.news.xs4all.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 114 NNTP-Posting-Host: 83.163.185.244 X-Trace: 1358153276 dreader36.news.xs4all.nl 6095 83.163.185.244:1522 X-Original-Bytes: 4630