LLNG provides Perl libraries that can be easily used by inheritance. So you can write your own handlers but you need first to understand Handler architecture
Wrapper usually look at this:
package Lemonldap::NG::Handler::ApacheMP2::MyType;
use base 'Lemonldap::NG::Handler::ApacheMP2::Main', 'Lemonldap::NG::Handler::Lib::MyType';
1;
Your wrappers must be named “Lemonldap::NG::Handler::<platform>::<type>” where <platform> is the target (ApacheMP2 or Server) and <type> is the name you’ve chosen.
You can enable it either:
PerlSetVar VHOSTTYPE <type>
in the Apache
configuration filefastcgi_param VHOSTTYPE <type>
in the Nginx
configuration filevhostType
“select”
declaration (file
lemonldap-ng-manager/lib/Lemonldap/NG/Build/Attributes
) and
rebuild LLNGNote that configuration parameter can be set only in lemonldap-ng.ini configuration file (section Handler).
LLNG provides 3 platforms:
If you want to add another, you must write:
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/ApacheMP2
file for
example)Lemonldap::NG::Handler::MyPlatform::Main
) that provides required
method (see lemonldap-ng-handler/lib/Lemonldap/NG/Handler/*/Main
for examples) and inherits from Lemonldap::NG::Handler::Main
Wrapper usually look at this:
package Lemonldap::NG::Handler::MyPlatform::AuthBasic;
use base 'Lemonldap::NG::Handler::MyPlatform::Main', 'Lemonldap::NG::Handler::Lib::AuthBasic';
1;
Attention
There is no need to use this feature now. It is kept for compatibility.
Three actions are needed:
LLTYPE=<name>;
in the
location = /lmauth {...}
paragraph