Thread View: news.software.readers
5 messages
5 total messages
Started by Boris Vallejo
Sat, 24 Feb 1996 00:00
using authentication with tin
Author: Boris Vallejo
Date: Sat, 24 Feb 1996 00:00
Date: Sat, 24 Feb 1996 00:00
16 lines
1131 bytes
1131 bytes
I'm interested in a news server called 'alt.net', and am having trouble even testing the test account they provide. I'm using tin with the env var set NNTPSERVER=news.alt.net and a .newsauth entry of 'news.alt.net altnet' (according to the man page, .newsauth is 'nntpserver password' pairs, though I have no clue where the account name (testnntp for the test login) fits in. Using this, I just get nearly immediate server timeouts and associated y/n requestor. If anyone out there has successfully used tin on this service, I'd especially appreciate your insights. Thx, =boris=
Re: using authentication with tin
Author: Jerry Leslie
Date: Sat, 24 Feb 1996 00:00
Date: Sat, 24 Feb 1996 00:00
27 lines
1670 bytes
1670 bytes
Boris Vallejo (boris@hondo.cyberverse.com) wrote: : I'm interested in a news server called 'alt.net', and am having trouble : even testing the test account they provide. I'm using tin with the env : var set NNTPSERVER=news.alt.net and a .newsauth entry of 'news.alt.net : altnet' (according to the man page, .newsauth is 'nntpserver password' : pairs, though I have no clue where the account name (testnntp for the : test login) fits in. : Using this, I just get nearly immediate server timeouts and associated : y/n requestor. : If anyone out there has successfully used tin on this service, I'd : especially appreciate your insights. Your unix or OpenVMS account name must match the trial account set up by alt.net. Have your system administrator set up an account that has the same name as the one provided by 'alt.net', or have them set up a trial account to match your unix or OpenVMS account --Jerry, Gerald (Jerry) R. Leslie jleslie@dmccorp.com gleslie@isvsrv.enet.dec.com Dynamic Matrix Control Corporation (my opinions are my own)
Re: using authentication with tin
Author: Rene A. DEVICHI
Date: Sat, 24 Feb 1996 00:00
Date: Sat, 24 Feb 1996 00:00
22 lines
1511 bytes
1511 bytes
Le 24 Feb 1996 17:03:06 GMT, Boris Vallejo <boris@hondo.cyberverse.com> ecrivait: > var set NNTPSERVER=news.alt.net and a .newsauth entry of 'news.alt.net > altnet' (according to the man page, .newsauth is 'nntpserver password' > pairs, though I have no clue where the account name (testnntp for the > test login) fits in. The account name is your login name ! In your case, it's certainly ``boris''. You've to modify tin sources in you want to change this. It's not really difficult to put in the .newsauth the three nntpserver / account / password per line. > Using this, I just get nearly immediate server timeouts and associated > y/n requestor. news.alt.net is terribly overloaded... No surprise if you get a timeout (even your access is authentificated) ! -- | Rene A. DEVICHI - Antony, France - Email: devichi@worldnet.fr | | "Le pouvoir, c'est la liberte de penser pour soi-meme." |
Re: using authentication with tin - patch to tin included
Author: Gordon Moffett
Date: Mon, 26 Feb 1996 00:00
Date: Mon, 26 Feb 1996 00:00
86 lines
3340 bytes
3340 bytes
In article <4gngca$sti@rodelo.cyberverse.com>,
Boris Vallejo <boris@hondo.cyberverse.com> wrote:
> I'm interested in a news server called 'alt.net', and am having trouble
> even testing the test account they provide. I'm using tin with the env
> var set NNTPSERVER=news.alt.net and a .newsauth entry of 'news.alt.net
> altnet' (according to the man page, .newsauth is 'nntpserver password'
> pairs, though I have no clue where the account name (testnntp for the
> test login) fits in.
>
> Using this, I just get nearly immediate server timeouts and associated
> y/n requestor.
>
> If anyone out there has successfully used tin on this service, I'd
> especially appreciate your insights.
>
> Thx, =boris=
I wasn't able to use alt.net until 1): he created a id for me, or 2) I
patched tin to allow for 'nntpserver userid password' format (as well
as the current default).
In any case, I found that alt.net didn't have a full feed of articles,
and have found a better service in net-link.com, which lets me use trn.
the patch to tin-122 to allow for the 'nntpserver userid password'
in .newsauth is included below.
It also fixes a bug in tin that uses "sizeof(server)" where 'server'
is declared as 'char *' -- the server name is matched only on the first
four characters ....
*** /tmp/da004Hz Wed Dec 31 16:00:00 1969
--- open.c Fri Feb 9 17:33:39 1996
***************
*** 957,966 ****
--- 957,970 ----
{
char authfile[PATH_LEN];
char authpass[PATH_LEN];
+ char authhost[PATH_LEN]; /* 1st string in .newsauth line */
+ char arg2[PATH_LEN]; /* 2nd string in .newsauth line */
+ char arg3[PATH_LEN]; /* 3rd string in .newsauth line (optional) */
char line[NNTP_STRLEN];
char buf[PATH_LEN], *ptr;
int found = FALSE;
FILE *fp;
+ int w; /* # of fields found in .newsauth line */
/*
* Check if running via NNTP
***************
*** 986,991 ****
--- 990,998 ----
* File has format: 'nntp-server' 'password'
*/
while (fgets (buf, sizeof (buf), fp) != (char *) 0) {
+ w = sscanf(buf, "%s %s %s", authhost, arg2, arg3);
+ if (strncmp(authhost, server, strlen(server)) == 0) {
+ #ifdef undef
/*
* Get server from 1st part of the line
*/
***************
*** 1006,1011 ****
--- 1013,1027 ----
if (ptr != (char *) 0) {
*ptr = '\0';
}
+ found = TRUE;
+ }
+ #endif
+ if (w == 2) { /* 2nd arg is passwd */
+ strcpy(authpass, arg2);
+ found = TRUE;
+ } else if (w == 3) {
+ authuser = arg2;
+ strcpy(authpass, arg3);
found = TRUE;
}
break;
--
Gordon Moffett
Portland, Oregon
Re: using authentication with tin
Author: Greg Berigan
Date: Tue, 27 Feb 1996 00:00
Date: Tue, 27 Feb 1996 00:00
26 lines
1836 bytes
1836 bytes
boris@hondo.cyberverse.com (Boris Vallejo) wrote:
>I'm interested in a news server called 'alt.net', and am having trouble
>even testing the test account they provide. I'm using tin with the env
>var set NNTPSERVER=news.alt.net and a .newsauth entry of 'news.alt.net
>altnet' (according to the man page, .newsauth is 'nntpserver password'
>pairs, though I have no clue where the account name (testnntp for the
>test login) fits in.
The account name is the same as your login name on the machine you run
tin. Tin doesn't have any method of changing this. If they don't match,
ask your news administrator to create you an NNTP server account with your
system's user name ("boris").
If you have multiple accounts with different usernames, all of which you'd
like to use tin to connect to the same authenticating server, have the
server's news administrator create multiple accounts with each username.
--
_-<#)-=# http://cse.unl.edu/~gberigan/ (Greg Berigan)
___/___
_-~_--<###) $250,000 and two-year prison terms for using "obscene, lewd,
<~c>' __--< lascivious, filthy, or indecent" language on the Internet in a
\_--=____#) manner intended to annoy or harass? Watch those flames!
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