Combining CDA Handler and ZimbraPreAuth Handler
Hello,
we have a use case where the Zimbra Handler must be called on a vhost on a different domain that the main SSO domain, so we also need the CDA Handler here. But it is not possible to have different Handler types for the same vhost.
The quick and dirty fix is to call the CDA Handler from the Zimbra Handler:
##@file
# Zimbra preauthentication
##@class
# Zimbra preauthentication
#
# It will build Zimbra preauth URL
package Lemonldap::NG::Handler::Lib::ZimbraPreAuth;
use strict;
use Digest::HMAC_SHA1 qw(hmac_sha1_hex);
our $VERSION = '2.0.7';
# Overload main run method
sub run {
my ( $class, $req ) = @_;
# Switch to CDA
my $cdaclass = "Lemonldap::NG::Handler::ApacheMP2::CDA";
eval "require $cdaclass";
die $@ if ($@);
my ( $ret, $session) = $cdaclass->run($req);
# my ( $ret, $session ) = $class->Lemonldap::NG::Handler::Main::run($req);
Do you have an idea on how we could have the same behavior with configuration settings?