Article View: news.software.nntp
Article #67757Re: [mutt-nntp/NNTPPost] Replacement with authentification (long)
From: J.B. Moreno
Date: Sat, 24 Jan 2004 20:18
Date: Sat, 24 Jan 2004 20:18
51 lines
2390 bytes
2390 bytes
Andre Berger <andre.berger@web.de> wrote: > * Jeffrey M. Vinocur <jeff@litech.org>, 2004-01-24 19:15 +0100: -snip need to authenticate- > > Alternatively, it probably wouldn't be too hard to patch > > NNTPPost. > > Want to give it a try? That would be very nice, since I am by no > means a programmer... > nntppost.c comes here (264 lines): -snip- > s_printf (sd, "MODE READER\r\n"); > > s_gets (sd, buf, sizeof (buf)); > > if (atol (buf) != 200) > return (-1); > return (sd); > } Basically you want to add: s_printf (sd, "authinfo user USERNAME\r\n"); s_printf (sd, "authinfo pass PASSWORD\r\n"); and some error checking between "return (-1);" and the "return(sd);", do you have enough programming experience to do the error checking? Here's a transcript of my logging and authenticating into a couple of servers I use... 200 tango - NewsReader.Com NNTP Server (authentication required) authinfo user XXXXX 381 PASS required authinfo pass ZZZZZ 281 Ok quit 205 Bye! 200 The server welcomes dns-info. Authorization required for... authinfo user XXXX 381 PASS required authinfo pass ZZZZ 281 Authentication accepted. (UID=#####) quit 205 . -- JBM "Everything is futile." -- Marvin of Borg
Technical Details
Message-ID:
<1g82m55.1ime0omammrt6N%planB@newsreaders.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!ppp-198.person.NET!not-for-mailReferences:
<20040124085405.GA1794@hvk.local> <buu51v$hcf$2@puck.litech.org> <20040124184513.GC5906@hvk.local>Show Full Headers
Complete Article Headers
Message-ID: <1g82m55.1ime0omammrt6N%planB@newsreaders.com> Subject: Re: [mutt-nntp/NNTPPost] Replacement with authentification (long) Date: Sat, 24 Jan 2004 15:18:48 -0500 From: planB@newsreaders.com (J.B. Moreno) References: <20040124085405.GA1794@hvk.local> <buu51v$hcf$2@puck.litech.org> <20040124184513.GC5906@hvk.local> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!ppp-198.person.NET!not-for-mail Newsgroups: news.software.nntp,news.software.readers Organization: NetNews BOFH wannabe Lines: 51 NNTP-Posting-Host: ppp-198.person.net (166.82.184.198) X-Trace: news.uni-berlin.de 1074975524 22027808 166.82.184.198 ([22426]) X-Orig-Path: planB User-Agent: MacSOUP/2.5 (Mac OS X version 10.3)