python auth support is broken?

Jason Dillon jason at boldfish.com
Sat Oct 6 07:28:21 UTC 2001



On Sat, 6 Oct 2001, greg andruk wrote:

> On Fri, Oct 05, 2001 at 09:22:37PM -0700, Jason Dillon wrote:
> >
> > Hello, I just started playing with the python auth support, to query a mysql
> > database for auth, but it looks like it is really broken.
>
> I see stuff lifted from the innd k0dez that won't really help nnrpd but that
> does make it harder to understand & debug.

Not really sure what you mean by this.

> > 	attr['type'] = attributes['hostname'];
> > 	attr['pass'] = attributes['newsgroup'];
> > 	attr['user'] = attributes['pass'];
> > 	attr['hostname'] = attributes['user'];
> > 	attr['ipaddress'] = attributes['interface'];
> > 	attr['interface'] = None;
> > 	attr['newsgroup'] = None;
> >
> > 	return attr;
> >
> > just to get 'type' working correctly.  by default there is no 'type' key,
> > which breaks the example completely.
>
> Smells like an off-by-1 error in the dict assignment.  I'm surprised you're
> not crashing.
>
> What version of INN is this?

news.jboss.org InterNetNews NNRP server INN 2.3.2 ready (no posting).

RH 7.0, compiled from 7.1 src rpm (with no errors).  I did have to turn on
python support though.

Any insight would really be helpful.  Do you know if the perl integration is
more robust?

You can look at the server at news.jboss.org:119 if you like.

Thanks for the quick reply,

--jason



More information about the inn-bugs mailing list