how to debug auth - hooks

Julien ÉLIE julien at
Fri Jun 6 18:18:08 UTC 2008

Hi David,

> Hello, how to debug authentification hooks
> for example perl or python ( or to see full
> error traceback of these scripts when they are called from readers.conf ??

As for your Python issues, did you read these documentation pages?

Especially the part:

When writing and testing your Python filter, don't be afraid to make
use of try:/except: and the provided INN.syslog() function.
stdout and stderr will be disabled, so your filter will die silently otherwise.

Also, remember to try importing your module interactively before loading it,
to ensure there are no obvious errors. One typo can ruin your whole filter.
A dummy module is provided to facilitate testing outside the server.
To test, change into your filter directory and use a command like:

    python -ic 'import INN, filter_innd'

The best of luck,

Julien ÉLIE

« Mon père, ce héros au sourire si doux. » (Victor Hugo) 

More information about the inn-workers mailing list