From ac5aec45ab054802d73c3b78f73f0858488f419b Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 21 Nov 2013 11:41:40 +0100 Subject: [PATCH] Also force SSL (transparent redirect) when using LemonLDAPBasic auth --- .../etc/httpd/conf/httpd.conf/WebAppVirtualHost/25SSLDirectives | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/25SSLDirectives b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/25SSLDirectives index e86387a..c2239d4 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/25SSLDirectives +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/25SSLDirectives @@ -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]