Only add lemonldap handler on ssl vhost
This commit is contained in:
parent
046fa02522
commit
697d8d692b
|
@ -2,6 +2,7 @@
|
|||
|
||||
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" .
|
||||
|
@ -15,5 +16,6 @@ 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
Block a user