nnrpd bug

Ken Bass kbass at kenbass.com
Sat Feb 12 03:23:38 UTC 2005


In 2.4.2 -

   If inn is compiled with both PERL and PYTHON support (which according 
to some readme file is perfectly fine to use both - perhaps perl for 
article filtering and python for authentication) nnrpd does something 
stupid.

  nnrpd stupidly attempts to load whatever script is specified 
regardless of its language. Perhaps the problem is the parsing switch 
statment in perms.c. If both DO_PERL and DO_PYTHON are defined, it 
passes whatever python script is given in readers.conf 'python_auth' 
statement to perl! Result is a syntax error of the perl parser and 
filtering being disabled.

Feb 11 22:05:41 athlon nnrpd[2584]: SERVER perl filtering enabled
Feb 11 22:05:41 athlon nnrpd[2584]: SERVER perl loading 
/usr/lib/news/bin/filter/nnrpd_auth.py failed: syntax error at 
/usr/lib/news/bin/filter/nnrpd_auth.py line 68, near "class AUTH:"
Feb 11 22:05:41 athlon nnrpd[2584]: SERVER perl filtering disabled

The readers.conf snippet is:
auth "full-access" {
    hosts: *
    python_auth: "/usr/lib/news/bin/filter/nnrpd_auth.py"
    default: <full-access>
}



More information about the inn-bugs mailing list