|
|
@ -20,6 +20,7 @@ else{ |
|
|
|
# SSL Authentication |
|
|
|
# SSL Authentication |
|
|
|
my $SSLAuth = $lemonldap{'SSLAuth'} || 'disabled'; |
|
|
|
my $SSLAuth = $lemonldap{'SSLAuth'} || 'disabled'; |
|
|
|
my $sslDirectives = ' # SSL Auth is disabled'; |
|
|
|
my $sslDirectives = ' # SSL Auth is disabled'; |
|
|
|
|
|
|
|
my $sogoWorkArround = ''; |
|
|
|
if ((-e '/etc/pki/tls/certs/cacert.pem') && |
|
|
|
if ((-e '/etc/pki/tls/certs/cacert.pem') && |
|
|
|
($SSLAuth =~ m/^(require)|(optional)$/)) { |
|
|
|
($SSLAuth =~ m/^(require)|(optional)$/)) { |
|
|
|
$sslDirectives =<<"HERE"; |
|
|
|
$sslDirectives =<<"HERE"; |
|
|
@ -31,6 +32,18 @@ else{ |
|
|
|
</LocationMatch> |
|
|
|
</LocationMatch> |
|
|
|
HERE |
|
|
|
HERE |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (-e '/usr/lib/perl5/site_perl/Apache/FilterChangeLength.pm'){ |
|
|
|
|
|
|
|
# Looks like iPasserelle groupware is installed |
|
|
|
|
|
|
|
# SOPE doesn't supports chunked encoding |
|
|
|
|
|
|
|
# the following makes it happy |
|
|
|
|
|
|
|
# see http://sogo.nu/bugs/view.php?id=2408 |
|
|
|
|
|
|
|
$sogoWorkArround =<<"HERE"; |
|
|
|
|
|
|
|
<Location /cas> |
|
|
|
|
|
|
|
BrowserMatch "SOPE/" downgrade-1.0 |
|
|
|
|
|
|
|
PerlOutputFilterHandler Apache::FilterChangeLength |
|
|
|
|
|
|
|
</Location> |
|
|
|
|
|
|
|
HERE |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$OUT .=<<"EOF"; |
|
|
|
$OUT .=<<"EOF"; |
|
|
|
|
|
|
|
|
|
|
@ -59,6 +72,7 @@ HERE |
|
|
|
Options +ExecCGI +FollowSymlinks |
|
|
|
Options +ExecCGI +FollowSymlinks |
|
|
|
</Directory> |
|
|
|
</Directory> |
|
|
|
$sslDirectives |
|
|
|
$sslDirectives |
|
|
|
|
|
|
|
$sogoWorkArround |
|
|
|
|
|
|
|
|
|
|
|
# Perl script |
|
|
|
# Perl script |
|
|
|
<Files *.pl> |
|
|
|
<Files *.pl> |
|
|
|