🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
8 messages
8 total messages Started by Keenan Clay Wilkie Fri, 11 Feb 2000 00:00
nn with authenticated login?
#9444
Author: Keenan Clay Wilkie
Date: Fri, 11 Feb 2000 00:00
17 lines
1483 bytes
This is probably a stupid question, but I'm trying to configure nn to use
the newsserver news.supernews.com.  The problem is that the newsserver
requires authenticated login, and I can't seem to find information on
using nn with a server like that.  Does anyone know where I would specify
that information (in nntpserver or any other configuration file), or if nn
can even work with an authentication newsserver?

--
         d a r k s t a r @ i g l o u . c o m  |  atheist #29 
"You're a group of Christian-based, conservative organizations with
several million dollars to spend.  Do you: feed the hungry?  Clothe the 
poor?  Don't be so naieve!  You blow the millions on a series of slickly-
worded, logic-bending ads espousing a widely-discredited theory that one
can be 'cured' of homosexuality through counseling and prayer."
  -- MAD Magazine #337, p. 32

Re: nn with authenticated login?
#9445
Author: Michael T Pins
Date: Sat, 12 Feb 2000 00:00
19 lines
1573 bytes
darkstar@shell1.iglou.com (Keenan Clay Wilkie) writes:

>This is probably a stupid question, but I'm trying to configure nn to use
>the newsserver news.supernews.com.  The problem is that the newsserver
>requires authenticated login, and I can't seem to find information on
>using nn with a server like that.  Does anyone know where I would specify
>that information (in nntpserver or any other configuration file), or if nn
>can even work with an authentication newsserver?

nn-6.5 is not capable of working with an authentication newsserver.  Sorry.
nn-7 will be, but it's not done yet....

-- 
**************************************************************************
*     Michael T Pins                 |          mtpins@visi.com          *
*     keeper of the nn sources       |      mtpins@icaen.uiowa.edu       *
*   ftp://ftp.visi.com/users/mtpins  |     #include <std.disclaimer>     *

Re: nn with authenticated login?
#9446
Author: Cameron Kaiser
Date: Sun, 13 Feb 2000 00:00
22 lines
1677 bytes
laird@pier.ecn.purdue.edu (Kyler Laird) writes:

>>nn-6.5 is not capable of working with an authentication newsserver.  Sorry.
>>nn-7 will be, but it's not done yet....

>I've looked for such a thing too.  I've considered making
>an NNTP proxy that would handle the authentication step.
>I'm a bit surprised that someone hasn't already done it.
>Maybe someone has, but I haven't seen it?

I hacked my copy of 6.5.1 to allow AUTHINFO, but it's not a terribly
portable or wonderful hack. I can tell people what the basic idea is
if they want to make similar changes locally, and what files to
modify.

--
  Cameron Kaiser * ckaiser@stockholm.ptloma.edu * posting with a Commodore 128
    personal page: http://calvin.flactem.com:3001/~spectre/  >> temporary <<
  ** Computer Workshops: games, productivity software and more for C64/128! **
                   ** http://www.armory.com/~spectre/cwi/ **

Re: nn with authenticated login?
#9448
Author: Kyler Laird
Date: Sun, 13 Feb 2000 00:00
13 lines
1140 bytes
mtpins@visi.com (Michael T Pins) writes:

>nn-6.5 is not capable of working with an authentication newsserver.  Sorry.
>nn-7 will be, but it's not done yet....

I've looked for such a thing too.  I've considered making
an NNTP proxy that would handle the authentication step.
I'm a bit surprised that someone hasn't already done it.
Maybe someone has, but I haven't seen it?

--kyler

Re: nn with authenticated login?
#9449
Author: those who know me have no need o...
Date: Sun, 13 Feb 2000 00:00
10 lines
1056 bytes
laird@pier.ecn.purdue.edu (Kyler Laird) wrote:
>I've looked for such a thing too.  I've considered making
>an NNTP proxy that would handle the authentication step.

nntpcache is your friend.

-- 
okay, have a sig then

Re: nn with authenticated login?
#9454
Author: Jason Heiss
Date: Sat, 19 Feb 2000 00:00
35 lines
2265 bytes
INN's inews supports authentication, but only via a system-wide
configuration file which allows only one username/password combination
per server.  See the passwd.nntp(5) man page.  Until nn-7 comes out, I
use that along with the auth code from nn-tk patched into standard nn to
scrape by.

Jason

Cord Beermann wrote:
> 
> In <zZ1p4.3008$8p3.401782@ptah.visi.com> mtpins@visi.com (Michael T Pins) writes:
> 
> >darkstar@shell1.iglou.com (Keenan Clay Wilkie) writes:
> 
> >>This is probably a stupid question, but I'm trying to configure nn to use
> >>the newsserver news.supernews.com.  The problem is that the newsserver
> >>requires authenticated login, and I can't seem to find information on
> >>using nn with a server like that.  Does anyone know where I would specify
> >>that information (in nntpserver or any other configuration file), or if nn
> >>can even work with an authentication newsserver?
> 
> >nn-6.5 is not capable of working with an authentication newsserver.  Sorry.
> >nn-7 will be, but it's not done yet....
> 
> There is a Q&D-Hack for this made by Heiko W. Rupp.
> 
> It enables nn to use 'Original' Authinfo, for READING. If you want to post,
> you'll have to add the authentication to inews or mini-inews. which isn't done
> yet.
> 
> If you want the patch, drop me a note.
> 
> Cord

Re: nn with authenticated login?
#9456
Author: Tim Skirvin
Date: Sun, 20 Feb 2000 00:00
30 lines
2409 bytes
tskirvin@killfile.org (Tim Skirvin) writes:

>	The following script oughta work (I haven't tested it or anything,
>at least not the authorization part) and be fairly compatible with nn's
>interaction with the mini-inews.  It does, of course, require News::Article, 
>available at a CPAN mirror near you (perl -MCPAN -e shell), is a little short 
>on error messages, and isn't quite as user configurable as I'd like (but
>anything more would take some configuration line parsing).

	I didn't like this much, so spent some time cleaning up the code a
little bit and writing some more, too...  It's now available at <URL:http://
www.killfile.org/~tskirvin/software/inews>.  Note the complete lack of 
documentation and such...

	The biggest change I made there (over the last hour or so) was
support for semi-good authentication by user.  It now loads up the file
~/.nntpauth, which consists of lines like this:

news.server.com		username	password

	Then, if both a username and password exist, it automatically uses
them.  If not, then too bad.  I dropped the command line options too, since 
it's hard to make inews use them by default...

			    - Tim Skirvin (tskirvin@killfile.org)
-- 
<URL:http://www.killfile.org/~tskirvin/> Skirv's Homepage <FISH><
<URL:http://www.killfile.org/dungeon/>	 The Killfile Dungeon <*>

Re: nn with authenticated login?
#9457
Author: Tim Skirvin
Date: Sun, 20 Feb 2000 00:00
75 lines
3579 bytes
Cord Beermann <cord@Wunder-Nett.org> writes:

>It enables nn to use 'Original' Authinfo, for READING. If you want to post,
>you'll have to add the authentication to inews or mini-inews. which isn't done
>yet.

	On my work system, I got sick of being unable to get nn6.5.5 to
compile but needed an updated inews.  And so I figured out that there was
really little reason I couldn't do it all in perl...  Anyway, News::Article 
is a wonderful thing, and does support authentication.  

	The following script oughta work (I haven't tested it or anything,
at least not the authorization part) and be fairly compatible with nn's
interaction with the mini-inews.  It does, of course, require News::Article, 
available at a CPAN mirror near you (perl -MCPAN -e shell), is a little short 
on error messages, and isn't quite as user configurable as I'd like (but
anything more would take some configuration line parsing).

	Usage: inews [-h] [-u user] [-p pass] [-s server] [file]
All options are optional; if no file is offered, then it reads from STDIN.

			    - Tim Skirvin (tskirvin@killfile.org)
-- 
<URL:http://www.killfile.org/~tskirvin/> Skirv's Homepage <FISH><
<URL:http://www.killfile.org/dungeon/>	 The Killfile Dungeon <*>


#!/usr/bin/perl

use News::Article;
use Getopt::Std;
use strict;
use vars qw ($user $server $nntpuser $nntppass $opt_h $whoami 
	     $opt_u $opt_p $opt_s);

getopts('hu:p:s:');	

### Variables to set before using ########################################
$whoami = "/usr/ucb/whoami";	# The location of your 'whoami' binary.
$server = $ENV{'NNTPSERVER'} || "insert.default.here";
# $nntpuser = "DEFAULT"   # Uncomment these and set them to something real
# $nntppass = "DEFAULT"	  # if you want to use authentication by default
##########################################################################

$user = (`$whoami`);	
chomp($user);

$nntpuser = $opt_u if $opt_u;
$nntppass = $opt_p if $opt_p;
$server   = $opt_s if $opt_s;

my $article = new News::Article;
if (@ARGV) {
  my $file = shift;
  unless (-r $file) {
    print "No such file $file\n";
    exit;
  }
  $article->read($file);
} else {
  $article->read(\*STDIN);
}

$article->drop_headers("date");
$article->add_date;
$article->add_message_id ( "$user-" )  ;
$article->set_headers("X-Inews", "Skirv's Little nn inews replacement");

my $NNTP = Net::NNTP->new($server);
exit "Couldn't connect to server $server" unless $NNTP;
$NNTP->authinfo($nntpuser, $nntppass) 
	if ( defined($nntpuser) && defined($nntppass) );
$article->post($NNTP);

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads