doc/hook-perl - response codes for authentication

Julien ÉLIE julien at trigofacile.com
Fri Dec 26 23:05:04 UTC 2008


Hi Russ,

> I think we should fix the code in nnrpd so that it allows 403 in addition
> to 481 and 281 and passes those codes along.

Done for both Perl and Python hooks.

%authcodes = ('allowed' => 281, 'denied' => 481, 'error' => 403);

Alexander will now be able to use:

    return (403, "Can't connect to MY-SQL");

and this exact message will show up.



> I'm not sure what to do about other codes -- it's tempting to map them all
> to 403 (on the grounds that the Perl filter is returning a code that it
> shouldn't)

Done.


> but we may want to keep mapping 502 to 481 for backwards compatibility.

Also kept.

-- 
Julien ÉLIE

« Pour une personne optimiste, le verre est à moitié plein.
  Pour une personne pessimiste, il est à moitié vide.
  Pour l'informaticien, il est deux fois plus grand que nécessaire. » 




More information about the inn-workers mailing list