|
|
@ -2,7 +2,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
my $auth = $domain->prop('Authentication') || 'none'; |
|
|
|
my $auth = $domain->prop('Authentication') || 'none'; |
|
|
|
|
|
|
|
|
|
|
|
if ($auth eq 'LemonLDAP'){ |
|
|
|
if (($modSSL{'TCPPort'} || '443') eq $port){ |
|
|
|
|
|
|
|
if ($auth eq 'LemonLDAP'){ |
|
|
|
$OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG\n" . |
|
|
|
$OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG\n" . |
|
|
|
" PerlHeaderParserHandler Lemonldap::NG::Handler\n" . |
|
|
|
" PerlHeaderParserHandler Lemonldap::NG::Handler\n" . |
|
|
|
" ErrorDocument 403 https://auth.$DomainName/?lmError=403\n" . |
|
|
|
" ErrorDocument 403 https://auth.$DomainName/?lmError=403\n" . |
|
|
@ -10,10 +11,11 @@ if ($auth eq 'LemonLDAP'){ |
|
|
|
if (($domain->prop('LemonLDAPMenu') || 'disabled') eq 'enabled'){ |
|
|
|
if (($domain->prop('LemonLDAPMenu') || 'disabled') eq 'enabled'){ |
|
|
|
$OUT .= " PerlOutputFilterHandler Lemonldap::NG::Handler::Menu\n"; |
|
|
|
$OUT .= " PerlOutputFilterHandler Lemonldap::NG::Handler::Menu\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
elsif ($auth eq 'LemonLDAPBasic'){ |
|
|
|
elsif ($auth eq 'LemonLDAPBasic'){ |
|
|
|
$OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG (basic auth)\n" . |
|
|
|
$OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG (basic auth)\n" . |
|
|
|
" PerlHeaderParserHandler Lemonldap::NG::Handler::Specific::AuthBasic\n"; |
|
|
|
" PerlHeaderParserHandler Lemonldap::NG::Handler::Specific::AuthBasic\n"; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|