Article View: news.software.nn
Article #9067Re: Using nn with a server that requires a username/password
From: Jason Heiss
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
51 lines
2990 bytes
2990 bytes
nn-tk has very basic support for reading news from a server that requires authentication with the authinfo method. (See the send_user_info function in nntp.c.) nn-tk doesn't support posting to a server with authentication though. I did modify the nn-tk code a little bit so that it prompts you for a password. Otherwise you have to hardcode the password in ~/.nn/authinfo. I looked into adding support for posting to a server with authentication but it gets messy because nn calls its aux script which in turn calls inews from the inn package. inews also has basic support for authentication but in a braindead way that references a system wide configuration file for the username and password to use. See the passwd.nntp(5) manpage and lib/sendpass.c in the inn package. I'm not sure how "standard" the authinfo method of authentication is. The passwd.nntp manpage says "The ``authinfo'' command is a common extension to RFC 977." Basically I decided that the best way to add such support was to abandon the aux script and inews and include the code to post articles in nn. Otherwise you have to modify inews and somehow attempt to securely pass a password through the aux shell script to inews. Or force the user to hardcode his password in a configuration file. Neither of which seemed like particularly attractive options. Jason mtpins@visi.com (Michael T Pins) writes: >Chris Mattern <matternc@mattern.alexandria.va.us> writes: >>Is this possible? If so, how do you do it? >At the moment, no, it's not. >I've never needed it, and, in fact, I've never seen a spec for it. >If there is some kind of "standard" for how it works, and someone sends it >to me, I'll hack together a fix for it. >-- >************************************************************************ >* Michael T Pins | mtpins@visi.com * >* keeper of the nn sources | mtpins@isca.uiowa.edu * >* ftp.isca.uiowa.edu | #include <std.disclaimer> * -- # Jason Heiss # Pencom Systems Administration # # Voice: 310-364-5895 # Onsite at Hughes Space and # # Pager: 800-759-8888 pin 879-9457 # Communications in El Segundo, CA # # jheiss@psa.pencom.com jheiss@ugcs.caltech.edu jheiss@hsc.hac.com #
Technical Details
Message-ID:
<72da91$itu@gap.cco.caltech.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailReferences:
<724m6g$7i0$1@usenet45.supernews.com> <4xw12.1195$i63.4040532@ptah.visi.com>Show Full Headers
Complete Article Headers
Message-ID: <72da91$itu@gap.cco.caltech.edu> Subject: Re: Using nn with a server that requires a username/password Date: Thu, 12 Nov 1998 00:00:00 +0000 From: jheiss@ugcs.caltech.edu (Jason Heiss) References: <724m6g$7i0$1@usenet45.supernews.com> <4xw12.1195$i63.4040532@ptah.visi.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 410908928 Organization: California Institute of Technology, Pasadena Newsgroups: news.software.nn