python auth support is broken?
gja at meowing.net
Sat Oct 6 07:24:08 UTC 2001
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.
> 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
What version of INN is this?
More information about the inn-bugs