Add useSafeJail in Manager (trunk only) (#270)

This commit is contained in:
Clément Oudot 2011-02-07 17:19:36 +00:00
parent 234666742b
commit 6adf9a9d4a
2 changed files with 8 additions and 2 deletions

View File

@ -773,13 +773,15 @@ sub struct {
}, },
security => { security => {
_nodes => _nodes => [
[qw(userControl portalForceAuthn key trustedDomains)], qw(userControl portalForceAuthn key trustedDomains useSafeJail)
],
_help => 'security', _help => 'security',
userControl => 'text:/userControl', userControl => 'text:/userControl',
portalForceAuthn => 'bool:/portalForceAuthn', portalForceAuthn => 'bool:/portalForceAuthn',
key => 'text:/key', key => 'text:/key',
trustedDomains => 'text:/trustedDomains', trustedDomains => 'text:/trustedDomains',
useSafeJail => 'bool:/useSafeJail',
}, },
redirection => { redirection => {
@ -1447,6 +1449,7 @@ sub testStruct {
}, },
useRedirectOnError => $boolean, useRedirectOnError => $boolean,
useRedirectOnForbidden => $boolean, useRedirectOnForbidden => $boolean,
useSafeJail => $boolean,
useXForwardedForIP => $boolean, useXForwardedForIP => $boolean,
variables => $testNotDefined, variables => $testNotDefined,
vhostOptions => { vhostOptions => {
@ -1762,6 +1765,7 @@ sub defaultConf {
passwordDB => 'LDAP', passwordDB => 'LDAP',
useRedirectOnError => '1', useRedirectOnError => '1',
useRedirectOnForbidden => '0', useRedirectOnForbidden => '0',
useSafeJail => '1',
useXForwardedForIP => '0', useXForwardedForIP => '0',
vhostPort => '-1', vhostPort => '-1',
vhostHttps => '-1', vhostHttps => '-1',

View File

@ -295,6 +295,7 @@ sub en {
userPivot => 'Login field name in user table', userPivot => 'Login field name in user table',
useRedirectOnError => 'Redirect on error', useRedirectOnError => 'Redirect on error',
useRedirectOnForbidden => 'Redirect on forbidden', useRedirectOnForbidden => 'Redirect on forbidden',
useSafeJail => 'Use Safe jail',
useXForwardedForIP => "Use X-Forwarded-For", useXForwardedForIP => "Use X-Forwarded-For",
variables => "Variables", variables => "Variables",
vhostHttps => 'HTTPS', vhostHttps => 'HTTPS',
@ -681,6 +682,7 @@ sub fr {
userPivot => 'Champ identifiant dans la table des utilisateurs', userPivot => 'Champ identifiant dans la table des utilisateurs',
useRedirectOnError => 'Redirection pour les erreurs', useRedirectOnError => 'Redirection pour les erreurs',
useRedirectOnForbidden => 'Redirection pour les accès interdits', useRedirectOnForbidden => 'Redirection pour les accès interdits',
useSafeJail => 'Utiliser la cage Safe',
useXForwardedForIP => "Utiliser X-Forwarded-For", useXForwardedForIP => "Utiliser X-Forwarded-For",
variables => "Variables", variables => "Variables",
vhostHttps => 'HTTPS', vhostHttps => 'HTTPS',