Update apache templates for LL::NG 1.4.0

tags/smeserver-lemonldap-ng-0.2.19-1
Daniel Berteaud 11 years ago
parent d4a571d448
commit ce38597574
  1. 6
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97LemonLDAPHandler
  2. 4
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/05LemonLDAPHandler

@ -4,7 +4,7 @@
# Load LemonLDAP::NG Handler # Load LemonLDAP::NG Handler
PerlOptions +GlobalRequest PerlOptions +GlobalRequest
PerlRequire /var/lib/lemonldap-ng/handler/MyHandler.pm PerlRequire Lemonldap/NG/Handler.pm
# Common error page and security parameters # Common error page and security parameters
#ErrorDocument 403 http://auth.{$DomainName}/?lmError=403 #ErrorDocument 403 http://auth.{$DomainName}/?lmError=403
@ -19,7 +19,7 @@ PerlRequire /var/lib/lemonldap-ng/handler/MyHandler.pm
Order deny,allow Order deny,allow
Deny from all Deny from all
Allow from {"$localAccess $externalSSLAccess";} Allow from {"$localAccess $externalSSLAccess";}
PerlHeaderParserHandler My::Package->refresh PerlHeaderParserHandler Lemonldap::NG::Handler->refresh
</Location> </Location>
# Uncomment this to activate status module # Uncomment this to activate status module
@ -27,6 +27,6 @@ PerlRequire /var/lib/lemonldap-ng/handler/MyHandler.pm
# Order deny,allow # Order deny,allow
# Deny from all # Deny from all
# Allow from 127.0.0.0/8 # Allow from 127.0.0.0/8
# PerlHeaderParserHandler My::Package->status # PerlHeaderParserHandler Lemonldap::NG::Handler->status
#</Location> #</Location>

@ -4,7 +4,7 @@ my $auth = $domain->prop('Authentication') || 'none';
if ($auth eq 'LemonLDAP'){ if ($auth eq 'LemonLDAP'){
$OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG\n" . $OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG\n" .
" PerlHeaderParserHandler My::Package\n" . " PerlHeaderParserHandler Lemonldap::NG::Handler\n" .
" ErrorDocument 403 https://auth.$DomainName/?lmError=403\n" . " ErrorDocument 403 https://auth.$DomainName/?lmError=403\n" .
" ErrorDocument 500 https://auth.$DomainName/?lmError=500\n"; " ErrorDocument 500 https://auth.$DomainName/?lmError=500\n";
if (($domain->prop('LemonLDAPMenu') || 'disabled') eq 'enabled'){ if (($domain->prop('LemonLDAPMenu') || 'disabled') eq 'enabled'){
@ -13,7 +13,7 @@ if ($auth eq 'LemonLDAP'){
} }
elsif ($auth eq 'LemonLDAPBasic'){ elsif ($auth eq 'LemonLDAPBasic'){
$OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG (basic auth)\n" . $OUT .= " # This virtualhost is configured to be protected by LemonLDAP NG (basic auth)\n" .
" PerlHeaderParserHandler Lemonldap::NG::Handler::AuthBasic\n"; " PerlHeaderParserHandler Lemonldap::NG::Handler::Specific::AuthBasic\n";
} }
} }

Loading…
Cancel
Save