Article View: news.software.nntp
Article #86929Re: help please - readers.conf setup + authentication via port 563
From: Avon Kerr
Date: Mon, 31 Aug 2015 07:53
Date: Mon, 31 Aug 2015 07:53
119 lines
5454 bytes
5454 bytes
Hi Julien. On Sun, 30 Aug 2015 15:50:34 +0200, Julien ΓLIE wrote: > Suggestion: > "There are two common ways for a news client to negotiate a TLS > connection: either via the use of the STARTTLS command on the usual > NNTP port (119) or via the now discouraged way (per RFC 4642) to > immediately negotiate an encrypted session upon connection on a > dedicated port (usually 563). As most news clients currently do not use > the STARTTLS command, and instead expect to connect to a separate port > (563) and start a TLS negotiation immediately, it is still useful to > provide a legacy way for these news clients to encrypt the NNTP > session." Yes I think this is a good idea, it reads well. > Suggestions of improvement are welcome on all our documentation, so > please do not hesitate to share your comments! Thank you I will certainly do so as I come across things. >> So the full like should like the following .. >> >> nntps stream tcp nowait news /usr/lib/news/bin/nnrpd -c >> /etc/news/readers- >> ssl.conf -S >> >> Is that correct? > > Hmm... Sound also like there is a typo in the nnrpd documentation > because "nnrpd" appears twice in the line! Yes you are right, that looks like a typo to me also... see we found something together :) > That line looks right to me. Do you confirm it works fine for you? (no > need to add a call to the "tcpd" wrapper before nnrpd? does it work for > both tcp4 and tcp6?) Not sure if you are talking about the original line in the nnrpd document or the one I typed above? If it is the latter then I can't answer that yet as that was a suggested line that I thought I could use if I opted to use a different file such as readers-ssl.conf At present I just use the following that does include the typo but it seems to work in so far as you have connected on port 563 and seen it trying to setup a TLS connection. Perhaps I should amend it? nntps stream tcp nowait news /usr/lib/news/bin/nnrpd nnrpd -S > Yes, though the name "users-ssl" is not the best for that! Indeed :) >> I mean even if you had a filename with user:password in it and the >> password had been encrypted by using something like htpassword would a >> user be able to login using plain unencrypted port 119? > > Yes he would be able to authenticate. OK thanks. >> By adding a line like auth: "ckpasswd -f /home/news/etc/users-ssl" into >> an auth group that didn't have "require_ssl: true" enabled? > > Also. OK. > Anyway, that behaviour depends on the implementation of the news client > software. You can't forbid a client to try to authenticate on an > unencrypted connection... A well-behaved news client could warn that he > did not manage to negotiate a TLS connection and maybe ask whether it > should try to authenticate anyway. What are some examples (in your view) of well behaved clients? At present my testing and user experince extends to NewsXpress, PAN and Thunderbird of which the latter did not seem to work - I think. >> Also do you know if the use of quotation marks is needed when setting a >> key? so is it key: "keyname" or is key: keyname ok to do? > > If there is no space in the string, it is OK not to use quotation marks. Thanks, and afterwards I did find this reference in the docs. Thanks for the confirmation. >> It's all beyond me how to set something like this up but it seems like >> if I want a user to be able to login and create their own account and >> password I would have to set something like this up? > > Not necessarily. You could also automatically add a new "user:pass" or > "user:pass:comment" line at the end of your users file fater the > creation of an account. The thing is I am not a coder nor programmer so I am unsure how to script anything that assists a user or newsadmin create and/or update a user account and password in INN. That would be a helpful utility or suggested few bits of code to include as examples in the INN2 documentation. As always, thanks for taking the time to reply to my queries and for your help which is greatly appreciated. Best, Paul -- Agency News | news.bbs.geek.nz
Technical Details
Message-ID:
<ms1150$j7d$2@news.bbs.geek.nz>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<mrrhtp$ekm$3@news.bbs.geek.nz> <mrsin1$gmg$1@news.trigofacile.com> <mrtm20$nog$1@news.bbs.geek.nz> <mrv1na$89u$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <ms1150$j7d$2@news.bbs.geek.nz> Subject: Re: help please - readers.conf setup + authentication via port 563 Date: Mon, 31 Aug 2015 07:53:04 +0000 From: Avon Kerr <avon@bbs.geek.nz.invalid> References: <mrrhtp$ekm$3@news.bbs.geek.nz> <mrsin1$gmg$1@news.trigofacile.com> <mrtm20$nog$1@news.bbs.geek.nz> <mrv1na$89u$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.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: Agency Usenet News Server - Dunedin, New Zealand Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 31 Aug 2015 07:53:04 +0000 (UTC) Injection-Info: news.bbs.geek.nz; posting-host="S8GrWPmMexyhWcasCjq9VaDqtciLHFVbgDggJyACz1I"; logging-data="19693"; mail-complaints-to="abuse@news.bbs.geek.nz" User-Agent: Pan/0.140 (Chocolate Salty Balls; Unknown) X-Antivirus-Status: Clean X-Antivirus: avast! (VPS 150829-2, 30/08/2015), Outbound message X-Received-Body-CRC: 1436218993 X-Received-Bytes: 5447