Commit 2e8123ab authored by Xavier Guimard's avatar Xavier Guimard

Restore status (#897):

- Use PerlModule instead of PerlRequire (used after Apache fork)
- Initialize handler API for status
parent 59a262aa
......@@ -7,7 +7,7 @@
# Load LemonLDAP::NG Handler
PerlOptions +GlobalRequest
PerlRequire Lemonldap/NG/Handler.pm
PerlModule Lemonldap::NG::Handler
# Common error page and security parameters
ErrorDocument 403 http://auth.__DNSDOMAIN__/?lmError=403
......
......@@ -7,7 +7,7 @@
# Load LemonLDAP::NG Handler
PerlOptions +GlobalRequest
PerlRequire Lemonldap/NG/Handler.pm
PerlModule Lemonldap::NG::Handler
# Common error page and security parameters
ErrorDocument 403 http://auth.__DNSDOMAIN__/?lmError=403
......
......@@ -7,7 +7,7 @@
# Load LemonLDAP::NG Handler
PerlOptions +GlobalRequest
PerlRequire Lemonldap/NG/Handler.pm
PerlModule Lemonldap::NG::Handler
# Common error page and security parameters
ErrorDocument 403 http://auth.__DNSDOMAIN__/?lmError=403
......
......@@ -56,4 +56,5 @@ AddLanguage fr .fr
</IfVersion>
Include conf/manager-apache2.X.conf
Include conf/portal-apache2.X.conf
Include conf/handler-apache2.X.conf
Include conf/test-apache2.X.conf
......@@ -22,6 +22,12 @@ sub logout {
$class->unlog();
}
sub status {
my ( $class, $request ) = ( __PACKAGE__, shift );
Lemonldap::NG::Handler::API->newRequest($request);
$class->SUPER::status();
}
__PACKAGE__->init();
1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment