I want to control the behaviour (enabling/disabling) of the authentication based on dynamic variables in the Perl code, that's why I really can't use it as it is. I guess I can use mod_perl in some way, but the environment for this specific task is very strict - I really can't install mod_perl in the target environment.