[Mailman-Developers] [ mailman-Bugs-620208 ] authinfo before mode reader needed

noreply@sourceforge.net noreply@sourceforge.net
Tue, 08 Oct 2002 12:13:38 -0700


Bugs item #620208, was opened at 2002-10-08 09:00
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=620208&group_id=103

Category: nntp/news
Group: 2.0.x
>Status: Open
Resolution: Out of Date
Priority: 5
Submitted By: Scott Lipcon (slipcon)
Assigned to: Nobody/Anonymous (nobody)
Summary: authinfo before mode reader needed

Initial Comment:
My ISP just switched to giganews for NNTP service, and
my gate_news script stopped working - complaining about
authentication needed.  I tracked it down to the fact
that giganews' server gives a 480 authentication needed
error on the 'mode reader' command which mailman tries
to send before authentication.  

I solved the problem for myself by editing
Mailman/pythonlib/nntplib.py  and changing the NNTP
constructor.   I simply moved the block that sends the
authinfo commands in front of the block that sends the
'mode reader' command, and everything worked.   

I assume this is not the correct fix for this problem,
as other servers may not like the authinfo command
before the mode reader command.    Perhaps giganews'
server is broken, but it would be nice to work around
it.  Perhaps the authentication should be broken in to
its own subroutine, and have the code try
authentication whenever it gets a 480 authentication
required error.

I'm running mailman 2.0.13 on OpenBSD, with python
1.5.2, if it matters.  

Thanks,

Scott


----------------------------------------------------------------------

>Comment By: Scott Lipcon (slipcon)
Date: 2002-10-08 15:13

Message:
Logged In: YES 
user_id=91258

I think you misunderstood my bug report.  I have
NNTP_USERNAME and NNTP_PASSWORD set in mm_cfg.py, and that
was working for many months with my ISP's old new server.  I
believe they used supernews.    Last week, they switched to
using giganews, and my news gating stopped working.  

The code in nntplib.py attempts to issue a "mode reader"
command before doing any authentication.  Apparently
supernews' server dealt with that fine - perhaps 'mode
reader' is an unpriviledged command?    However, giganews'
server responds to the 'mode reader' command with a 480
authentication required error, which causes a stack trace in
gate_news.    

Like I said, I was able to change nntplib.py to do the
authentication BEFORE the mode reader command, and
everything works now.

If this still isn't clear, lets take this to email - I'm not
on any of the mailman lists, so email
slipcon@users.sourceforge.net if you need any more details
or logs.

Thanks,

Scott

----------------------------------------------------------------------

Comment By: Barry A. Warsaw (bwarsaw)
Date: 2002-10-08 15:05

Message:
Logged In: YES 
user_id=12800

Look for NNTP_USERNAME and NNTP_PASSWORD in the Defaults.py
file.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=620208&group_id=103