🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #10630

Re: [solved?] Problem with NN and /etc/nntpserver

#10630
From: Michael T Pins
Date: Sat, 05 Mar 2005 06:33
54 lines
2871 bytes
Neil W Rickert <rickert+nn@cs.niu.edu> writes:

>Michael T Pins <mtpins@nndev.org> writes:
>>Neil W Rickert <rickert+nn@cs.niu.edu> writes:

>>>>set nntp-user joebob
>>>>set nntp-password badpass

>>>I tried that yesterday.  It didn't work.  Or is this for the next
>>>version?

>>That code hasn't changed since I added username/password support back in
>>nn-6.6.0.  Is it still prompting you for you username and password?

>I just tried again.

>Yes, it still prompts.  Clearly init is being read *after* authentication.
>Defining those on the command line is currently the only way to have
>it work (apart from typing them in each time).

>Fortunately, I am the only user of this system, so I don't have to
>worry about the output of "ps" giving away the password.  Still, it
>would be nice if this could be done in init.

And I was wrong, I did fix this in nn-6.7.  Oops.  The problem with running
your own beta code is you tend to forget what hasn't been fixed in the main
codebase yet.

As a quick workaround for anyone that wants this before nn-6.7 is released,
find the following code in nn.c around line 858:

#ifdef NNTP
    if (who_am_i != I_AM_VIEW)
        nntp_check();
#endif


Change it to:

#ifdef NNTP
    if (who_am_i != I_AM_VIEW) {
        visit_init_file(0, argv[1]);
        nntp_check();
    }
#endif


Which should do the trick.

-- 
Michael T Pins              |	"It is not knowable how long that conflict
mtpins@nndev.org            |	(Iraq) would last.  It could last, you know,
keeper of the nn sources    |	six days, six weeks.  I doubt six months"
ftp://ftp.nndev.org/pub     |	- Donald Rumsfeld, Feb 7, 2003
Technical Details
Message-ID: <422952cc$1@aspen>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.gamma.ru!Gamma.RU!news-hog.berkeley.edu!ucberkeley!news.colorado.edu!aspen!mtpins
References: <d0a3lo$s9b$1@usenet.cso.niu.edu> <4228ad45$1@aspen> <pY7Wd.476$ZB6.468@newssvr19.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <422952cc$1@aspen>
Subject: Re: [solved?] Problem with NN and /etc/nntpserver
Date: Sat, 05 Mar 2005 06:33:48 +0000
From: Michael T Pins <mtpins@nndev.org>
References: <d0a3lo$s9b$1@usenet.cso.niu.edu> <4228ad45$1@aspen> <pY7Wd.476$ZB6.468@newssvr19.news.prodigy.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.20140326.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.gamma.ru!Gamma.RU!news-hog.berkeley.edu!ucberkeley!news.colorado.edu!aspen!mtpins
Newsgroups: news.software.nn
Organization: University of Colorado, Boulder
Lines: 54
NNTP-Posting-Host: aspen.earthnet.net
X-Trace: peabody.colorado.edu 1110004432 3977 66.151.173.2 (5 Mar 2005
X-Complaints-To: abuse@colorado.edu
NNTP-Posting-Date: 5 Mar 2005 06:33:52 GMT
User-Agent: nn/6.7.0
X-Original-NNTP-Posting-Host: 65-103-96-65.dsl.earthnet.net
X-Original-Trace: 4 Mar 2005 23:33:48 -0700, 65-103-96-65.dsl.earthnet.net