Also force SSL (transparent redirect) when using LemonLDAPBasic auth

This commit is contained in:
Daniel Berteaud 2013-11-21 11:41:40 +01:00
parent 20de016b19
commit ac5aec45ab
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
if (($modSSL{TCPPort} || "443") eq $port){
$OUT .= " SSLEngine on\n";
}
elsif (($ssl =~ m/^enabled|yes|on|1$/i) || ($auth eq 'LemonLDAP')){
elsif (($ssl =~ m/^enabled|yes|on|1$/i) || ($auth =~ /^LemonLDAP/)){
$OUT .=<<'EOF';
RewriteEngine on
RewriteRule ^/(.*|$) https://%{HTTP_HOST}/$1 [L,R]