Re: Authorization problem

Urs Janßen <[email protected]> Fri, 22 Sep 2006 16:25:41 +0200
Newsgroups gmane.network.tin.user
Message-ID <[email protected]>
On Fri, Sep 22, 2006 at 06:03:51PM +0400, Evgeny Kurbatov wrote:
> No, .newsauth is ok.  And tin prompts username as in that file, I just 
> masked it for security reasons. :)
> 
> Nothing helps: leaving out -A option, renaming .newsauth, nothing. 
> Answer of tin just one each time: Permission denied.  Without .newsauth 
> and with -A it asks for login and password, then rejects.

you can recompile tin with -DDEBUG added to your $CFLAGS (or set in
src/Makefile) and then start tin with

tin -rD 1 [-A]

and have a look at /tmp/NNTP - the file should contain the data tin sends
and the answer from the server (your username and password in plaintext -
remember to mask them before posting the logfile ,-)

	egrep '^[<>]+' /tmp/NNTP | head

should look like

<<<: 20X news.example.org
>>>: LIST EXTENSIONS
<<<: 480 Authentication required for command
>>>: AUTHINFO GENERIC ANY $USER
<<<: 501 user Name|pass Password
>>>: AUTHINFO USER $NEWSAUTHUSER
<<<: 381 PASS required
>>>: AUTHINFO PASS $NEWSAUTHPASSWORD
<<<: 281 Ok
>>>: LIST EXTENSIONS

urs
-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus