tags/smeserver-lemonldap-ng-0.2.19-1
0.2.18_el5
parent
2c16ef9348
commit
7ead4f8589
1 changed files with 12 additions and 1 deletions
@ -1,10 +1,21 @@ |
||||
{ |
||||
|
||||
if (($domain->prop('LemonLDAP') || 'disabled') eq 'enabled'){ |
||||
my $auth = $domain->prop('Authentication') || 'none'; |
||||
|
||||
if (($modSSL{'TCPPort'} || '443') eq $port){ |
||||
if ($auth eq 'LemonLDAP'){ |
||||
$OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG\n" . |
||||
" PerlHeaderParserHandler Lemonldap::NG::Handler\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::Specific::AuthBasic\n"; |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue