Article View: news.software.readers
Article #253042Re: [tin] -Z option
From: Urs Janßen
Date: Sat, 29 Dec 2012 17:13
Date: Sat, 29 Dec 2012 17:13
44 lines
3394 bytes
3394 bytes
In <kbmsbj$1ap$1@n102.xanadu-bbs.net>, John F. Morse wrote:
> Apparently when using the -Z option, along with the -A option,
> something is sent to the server after entering the username,
> which in interpreted as an incorrect password.
-Z is a "batch mode" option, you must provide the username /
password via ${TIN_HOMEDIR:-"$HOME"}/.newsauth - there is no
intercative usage. This fixes the username prompting:
--- src/auth.c 2012-12-24 11:22:00.000000000 +0100
+++ src/auth.c 2012-12-29 18:09:46.273302968 +0100
@@ -313,6 +313,10 @@
* that the server doesn't want a password; so only ask for it if needed.
*/
if (force_auth_on_conn_open || !startup) {
+ if (batch_mode) { /* no interactive username/password prompting */
+ error_message(0, _(txt_auth_needed));
+ return (ret == OK_AUTH);
+ }
if (nntp_caps.type != CAPABILITIES || (nntp_caps.type == CAPABILITIES && !nntp_caps.authinfo_state && ((nntp_caps.sasl & SASL_PLAIN) || nntp_caps.authinfo_user || (!nntp_caps.authinfo_user && !(nntp_caps.sasl & SASL_PLAIN))))) {
# ifdef USE_CURSES
int state = RawState();
> An example:
>
> rtin -rAZvg news_server
-A and/or -g implie -r; rtin implies -r, you can leave off the -r:
tin -AZvg news_server
> If the -A is not included. then without authenticating, the
> only groups checked are those not requiring authentication.
how should tin be able to check the groups which do require auth if
auth was not requsted (neither by the server at startup nor by -A to
force auth on startup)?
> That means the -v option doesn't display the other groups.
without authentication there's not much info one could get bout
groups which do require auth (LIST ACTIVE usualy works but is not
very accurate). But the -v stats rely on GROUP/LISTGROUP (wich do not
work without auth if the group is restricted).
Technical Details
Message-ID:
<kbn8ce$he6$1@news.rz.uni-karlsruhe.de>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!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!m1no11644020wiv.0!news-out.google.com!l12ni265267wiv.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!eu.feeder.erje.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mailReferences:
<kbmsbj$1ap$1@n102.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <kbn8ce$he6$1@news.rz.uni-karlsruhe.de>
Subject: Re: [tin] -Z option
Date: Sat, 29 Dec 2012 17:13:51 +0000
From: Urs Janßen <urs@buil.tin.org>
References: <kbmsbj$1ap$1@n102.xanadu-bbs.net>
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!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!m1no11644020wiv.0!news-out.google.com!l12ni265267wiv.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!eu.feeder.erje.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail
X-Received: by 10.180.74.79 with SMTP id r15mr9725274wiv.4.1356801231183;
MIME-Version: 1.0
Newsgroups: news.software.readers
Organization: tin.org
Lines: 44
Sender: Urs Janßen <urs@akk10-int.akk.uni-karlsruhe.de>
NNTP-Posting-Host: akkuser-dmz.akk.uni-karlsruhe.de
X-Trace: news.rz.uni-karlsruhe.de 1356801231 17862 172.22.9.237 (29 Dec 2012
X-Complaints-To: abuse@uni-karlsruhe.de
NNTP-Posting-Date: Sat, 29 Dec 2012 17:13:51 +0000 (UTC)
Cancel-Lock: sha1:lPv1shi10EpSHcxvw+YDYMpWPKg=
X-No-Archive: yes
Archive: no
X-No-HTML: yes
User-Agent: tin/2.1.3-20121224 ("Langholm") (UNIX) (Linux/2.6.24-32-generic
(i686))
X-Original-Bytes: 3189