- correcting old style specific handlers (reinjecting modification from

SpecificHandlers/*.pm)
- adding a comment line to indicate which style is the current specific
handler and how it is supposed to be launched
- adapting DefaultHandler.pm to permit tests passing configuration file parameter
(references #630)
This commit is contained in:
David COUTADEUR 2014-03-20 18:40:26 +00:00
parent 2408e9e4af
commit 1c5d4d8c32
11 changed files with 67 additions and 1 deletions

View File

@ -3,6 +3,10 @@
##@class
# Auth-basic authentication with Lemonldap::NG rights management
# This specific handler is intended to be called by a handler caller
# old working, kept for compatibility with previous 1.4.0 versions
package Lemonldap::NG::Handler::AuthBasic;
use strict;

View File

@ -41,6 +41,10 @@ our $reloadTime;
our $lmConf;
our $localConfig;
my $conf = defined($GLOBAL::testInput)
? $GLOBAL::testInput
: {};
BEGIN {
if ( MP() == 2 ) {
eval {
@ -258,7 +262,7 @@ sub refresh($$) {
return OK;
}
__PACKAGE__->init( {} );
__PACKAGE__->init( $conf );
1;
__END__

View File

@ -5,6 +5,10 @@
# Secure Token
#
# Create a secure token used to resolve user identity by a protected application
# This specific handler is intended to be called by a handler caller
# old working, kept for compatibility with previous 1.4.0 versions
package Lemonldap::NG::Handler::SecureToken;
use strict;
@ -32,6 +36,15 @@ BEGIN {
};
}
## @imethod protected void globalInit(hashRef args)
# Overload globalInit to launch this class defaultValuesInit
# @param $args reference to the configuration hash
sub globalInit {
my $class = shift;
__PACKAGE__->defaultValuesInit(@_);
$class->SUPER::globalInit(@_);
}
## @imethod protected void defaultValuesInit(hashRef args)
# Overload defaultValuesInit
# @param $args reference to the configuration hash

View File

@ -3,6 +3,9 @@
##@class
# Auth-basic authentication with Lemonldap::NG rights management
# This specific handler is intended to be called directly by Apache
package Lemonldap::NG::Handler::SpecificHandlers::AuthBasic;
use strict;

View File

@ -5,6 +5,9 @@
# Secure Token
#
# Create a secure token used to resolve user identity by a protected application
# This specific handler is intended to be called directly by Apache
package Lemonldap::NG::Handler::SpecificHandlers::SecureToken;
use strict;

View File

@ -5,6 +5,9 @@
# Sympa autologin
#
# Build Sympa cookie and send it to Sympa
# This specific handler is intended to be called directly by Apache
package Lemonldap::NG::Handler::SpecificHandlers::SympaAutoLogin;
use strict;

View File

@ -3,6 +3,9 @@
## @class
# Lemonldap::NG special handler
# This specific handler is intended to be called directly by Apache
package Lemonldap::NG::Handler::SpecificHandlers::UpdateCookie;
use strict;

View File

@ -5,6 +5,9 @@
# Zimbra preauthentication
#
# It will build Zimbra preauth URL
# This specific handler is intended to be called directly by Apache
package Lemonldap::NG::Handler::SpecificHandlers::ZimbraPreAuth;
use strict;

View File

@ -5,6 +5,10 @@
# Sympa autologin
#
# Build Sympa cookie and send it to Sympa
# This specific handler is intended to be called by a handler caller
# old working, kept for compatibility with previous 1.4.0 versions
package Lemonldap::NG::Handler::SympaAutoLogin;
use strict;
@ -19,6 +23,15 @@ our $VERSION = '1.1.2';
# Shared variables
our ( $sympaSecret, $sympaMailKey );
## @imethod protected void globalInit(hashRef args)
# Overload globalInit to launch this class defaultValuesInit
# @param $args reference to the configuration hash
sub globalInit {
my $class = shift;
__PACKAGE__->defaultValuesInit(@_);
$class->SUPER::globalInit(@_);
}
## @imethod protected void defaultValuesInit(hashRef args)
# Overload defaultValuesInit
# @param $args reference to the configuration hash

View File

@ -3,6 +3,10 @@
## @class
# Lemonldap::NG special handler
# This specific handler is intended to be called by a handler caller
# old working, kept for compatibility with previous 1.4.0 versions
package Lemonldap::NG::Handler::UpdateCookie;
use strict;

View File

@ -5,6 +5,10 @@
# Zimbra preauthentication
#
# It will build Zimbra preauth URL
# This specific handler is intended to be called by a handler caller
# old working, kept for compatibility with previous 1.4.0 versions
package Lemonldap::NG::Handler::ZimbraPreAuth;
use strict;
@ -20,6 +24,15 @@ our $VERSION = '1.0.0';
our ( $zimbraPreAuthKey, $zimbraAccountKey, $zimbraBy, $zimbraUrl,
$zimbraSsoUrl, $timeout );
## @imethod protected void globalInit(hashRef args)
# Overload globalInit to launch this class defaultValuesInit
# @param $args reference to the configuration hash
sub globalInit {
my $class = shift;
__PACKAGE__->defaultValuesInit(@_);
$class->SUPER::globalInit(@_);
}
## @imethod protected void defaultValuesInit(hashRef args)
# Overload defaultValuesInit
# @param $args reference to the configuration hash