20 lines
760 B
Plaintext
20 lines
760 B
Plaintext
{
|
|
|
|
my $auth = $domain->prop('Authentication') || 'none';
|
|
|
|
if ($auth eq 'LemonLDAP'){
|
|
$OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG\n" .
|
|
" PerlHeaderParserHandler My::Package\n" .
|
|
" ErrorDocument 403 https://auth.$DomainName/?lmError=403\n" .
|
|
" ErrorDocument 500 https://auth.$DomainName/?lmError=500\n";
|
|
if (($domain->prop('LemonLDAPMenu') || 'disabled') eq 'enabled'){
|
|
$OUT .= " PerlOutputFilterHandler Lemonldap::NG::Handler::Menu\n";
|
|
}
|
|
}
|
|
elsif ($auth eq 'LemonLDAPBasic'){
|
|
$OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG (basic auth)\n" .
|
|
" PerlHeaderParserHandler Lemonldap::NG::Handler::AuthBasic\n";
|
|
}
|
|
|
|
}
|