Update ConfTree (#1699)

This commit is contained in:
maudoux 2019-04-05 22:39:58 +02:00
parent 71d14c6a6b
commit 02c473c919
7 changed files with 36 additions and 15 deletions

View File

@ -65,6 +65,7 @@ sub defaultValues {
'Lemonldap::NG::Common::Apache::Session::Generate::SHA256', 'Lemonldap::NG::Common::Apache::Session::Generate::SHA256',
'LockDirectory' => '/var/lib/lemonldap-ng/sessions/lock/' 'LockDirectory' => '/var/lib/lemonldap-ng/sessions/lock/'
}, },
'gpgAuthnLevel' => 3,
'gpgDb' => '', 'gpgDb' => '',
'groups' => {}, 'groups' => {},
'handlerInternalCache' => 15, 'handlerInternalCache' => 15,
@ -216,6 +217,7 @@ sub defaultValues {
}, },
'requireToken' => 1, 'requireToken' => 1,
'rest2fActivation' => 0, 'rest2fActivation' => 0,
'restAuthnLevel' => 2,
'samlAttributeAuthorityDescriptorAttributeServiceSOAP' => 'samlAttributeAuthorityDescriptorAttributeServiceSOAP' =>
'urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/AA/SOAP;', 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/AA/SOAP;',
'samlAuthnContextMapKerberos' => 4, 'samlAuthnContextMapKerberos' => 4,

View File

@ -42,18 +42,18 @@ our $authParameters = {
dbiParams => [qw(dbiAuthnLevel dbiExportedVars dbiAuthChain dbiAuthUser dbiAuthPassword dbiUserChain dbiUserUser dbiUserPassword dbiAuthTable dbiUserTable dbiAuthLoginCol dbiAuthPasswordCol dbiPasswordMailCol userPivot dbiAuthPasswordHash dbiDynamicHashEnabled dbiDynamicHashValidSchemes dbiDynamicHashValidSaltedSchemes dbiDynamicHashNewPasswordScheme)], dbiParams => [qw(dbiAuthnLevel dbiExportedVars dbiAuthChain dbiAuthUser dbiAuthPassword dbiUserChain dbiUserUser dbiUserPassword dbiAuthTable dbiUserTable dbiAuthLoginCol dbiAuthPasswordCol dbiPasswordMailCol userPivot dbiAuthPasswordHash dbiDynamicHashEnabled dbiDynamicHashValidSchemes dbiDynamicHashValidSaltedSchemes dbiDynamicHashNewPasswordScheme)],
demoParams => [qw(demoExportedVars)], demoParams => [qw(demoExportedVars)],
facebookParams => [qw(facebookAuthnLevel facebookExportedVars facebookAppId facebookAppSecret facebookUserField)], facebookParams => [qw(facebookAuthnLevel facebookExportedVars facebookAppId facebookAppSecret facebookUserField)],
gpgParams => [qw(gpgDb)], gpgParams => [qw(gpgAuthnLevel gpgDb)],
kerberosParams => [qw(krbKeytab krbByJs krbAuthnLevel krbRemoveDomain)], kerberosParams => [qw(krbAuthnLevel krbKeytab krbByJs krbRemoveDomain)],
ldapParams => [qw(ldapAuthnLevel ldapExportedVars ldapServer ldapPort ldapBase managerDn managerPassword ldapTimeout ldapVersion ldapRaw LDAPFilter AuthLDAPFilter mailLDAPFilter ldapSearchDeref ldapGroupBase ldapGroupObjectClass ldapGroupAttributeName ldapGroupAttributeNameUser ldapGroupAttributeNameSearch ldapGroupDecodeSearchedValue ldapGroupRecursive ldapGroupAttributeNameGroup ldapPpolicyControl ldapSetPassword ldapChangePasswordAsUser ldapPwdEnc ldapUsePasswordResetAttribute ldapPasswordResetAttribute ldapPasswordResetAttributeValue ldapAllowResetExpiredPassword)], ldapParams => [qw(ldapAuthnLevel ldapExportedVars ldapServer ldapPort ldapBase managerDn managerPassword ldapTimeout ldapVersion ldapRaw LDAPFilter AuthLDAPFilter mailLDAPFilter ldapSearchDeref ldapGroupBase ldapGroupObjectClass ldapGroupAttributeName ldapGroupAttributeNameUser ldapGroupAttributeNameSearch ldapGroupDecodeSearchedValue ldapGroupRecursive ldapGroupAttributeNameGroup ldapPpolicyControl ldapSetPassword ldapChangePasswordAsUser ldapPwdEnc ldapUsePasswordResetAttribute ldapPasswordResetAttribute ldapPasswordResetAttributeValue ldapAllowResetExpiredPassword)],
linkedinParams => [qw(linkedInAuthnLevel linkedInClientID linkedInClientSecret linkedInFields linkedInUserField linkedInScope)], linkedinParams => [qw(linkedInAuthnLevel linkedInClientID linkedInClientSecret linkedInFields linkedInUserField linkedInScope)],
nullParams => [qw(nullAuthnLevel)], nullParams => [qw(nullAuthnLevel)],
oidcParams => [qw(oidcAuthnLevel oidcRPCallbackGetParam oidcRPStateTimeout)], oidcParams => [qw(oidcAuthnLevel oidcRPCallbackGetParam oidcRPStateTimeout)],
openidParams => [qw(openIdAuthnLevel openIdExportedVars openIdSecret openIdIDPList)], openidParams => [qw(openIdAuthnLevel openIdExportedVars openIdSecret openIdIDPList)],
pamParams => [qw(pamService pamAuthnLevel)], pamParams => [qw(pamAuthnLevel pamService)],
proxyParams => [qw(proxyAuthService proxySessionService remoteCookieName proxyAuthnLevel proxyUseSoap)], proxyParams => [qw(proxyAuthnLevel proxyAuthService proxySessionService remoteCookieName proxyUseSoap)],
radiusParams => [qw(radiusAuthnLevel radiusSecret radiusServer)], radiusParams => [qw(radiusAuthnLevel radiusSecret radiusServer)],
remoteParams => [qw(remotePortal remoteCookieName remoteGlobalStorage remoteGlobalStorageOptions)], remoteParams => [qw(remotePortal remoteCookieName remoteGlobalStorage remoteGlobalStorageOptions)],
restParams => [qw(restAuthUrl restUserDBUrl restPwdConfirmUrl restPwdModifyUrl)], restParams => [qw(restAuthnLevel restAuthUrl restUserDBUrl restPwdConfirmUrl restPwdModifyUrl)],
slaveParams => [qw(slaveAuthnLevel slaveExportedVars slaveUserHeader slaveMasterIP slaveHeaderName slaveHeaderContent)], slaveParams => [qw(slaveAuthnLevel slaveExportedVars slaveUserHeader slaveMasterIP slaveHeaderName slaveHeaderContent)],
sslParams => [qw(SSLAuthnLevel SSLVar SSLVarIf sslByAjax sslHost)], sslParams => [qw(SSLAuthnLevel SSLVar SSLVarIf sslByAjax sslHost)],
twitterParams => [qw(twitterAuthnLevel twitterKey twitterSecret twitterAppName twitterUserField)], twitterParams => [qw(twitterAuthnLevel twitterKey twitterSecret twitterAppName twitterUserField)],

View File

@ -1158,6 +1158,10 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][
}, },
'type' => 'keyTextContainer' 'type' => 'keyTextContainer'
}, },
'gpgAuthnLevel' => {
'default' => 3,
'type' => 'int'
},
'gpgDb' => { 'gpgDb' => {
'default' => '', 'default' => '',
'type' => 'text' 'type' => 'text'
@ -2518,6 +2522,10 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.]
'test' => qr/^\w+$/, 'test' => qr/^\w+$/,
'type' => 'url' 'type' => 'url'
}, },
'restAuthnLevel' => {
'default' => 2,
'type' => 'int'
},
'restAuthUrl' => { 'restAuthUrl' => {
'type' => 'url' 'type' => 'url'
}, },

View File

@ -1570,6 +1570,11 @@ sub attributes {
type => 'bool', type => 'bool',
documentation => 'Enable REST config server', documentation => 'Enable REST config server',
}, },
restAuthnLevel => {
type => 'int',
default => 2,
documentation => 'REST authentication level',
},
# SOAP server # SOAP server
soapSessionServer => { soapSessionServer => {
@ -2791,6 +2796,11 @@ m{^(?:ldapi://[^/]*/?|\w[\w\-\.]*(?::\d{1,5})?|ldap(?:s|\+tls)?://\w[\w\-\.]*(?:
default => '', default => '',
documentation => 'GPG keys database', documentation => 'GPG keys database',
}, },
gpgAuthnLevel => {
type => 'int',
default => 3,
documentation => 'GPG authentication level',
},
# Radius # Radius
radiusAuthnLevel => { radiusAuthnLevel => {

View File

@ -220,8 +220,8 @@ sub tree {
form => 'simpleInputContainer', form => 'simpleInputContainer',
help => 'authkerberos.html', help => 'authkerberos.html',
nodes => [ nodes => [
'krbKeytab', 'krbByJs', 'krbAuthnLevel', 'krbKeytab',
'krbAuthnLevel', 'krbRemoveDomain' 'krbByJs', 'krbRemoveDomain'
] ]
}, },
{ {
@ -325,15 +325,15 @@ sub tree {
title => 'gpgParams', title => 'gpgParams',
help => 'authgpg.html', help => 'authgpg.html',
form => 'simpleInputContainer', form => 'simpleInputContainer',
nodes => ['gpgDb'], nodes => [ 'gpgAuthnLevel', 'gpgDb' ],
}, },
{ {
title => 'proxyParams', title => 'proxyParams',
help => 'authproxy.html', help => 'authproxy.html',
form => 'simpleInputContainer', form => 'simpleInputContainer',
nodes => [ nodes => [
'proxyAuthService', 'proxySessionService', 'proxyAuthnLevel', 'proxyAuthService',
'remoteCookieName', 'proxyAuthnLevel', 'proxySessionService', 'remoteCookieName',
'proxyUseSoap' 'proxyUseSoap'
] ]
}, },
@ -341,7 +341,7 @@ sub tree {
title => 'pamParams', title => 'pamParams',
help => 'authpam.html', help => 'authpam.html',
form => 'simpleInputContainer', form => 'simpleInputContainer',
nodes => [ 'pamService', 'pamAuthnLevel', ] nodes => [ 'pamAuthnLevel', 'pamService' ]
}, },
{ {
title => 'radiusParams', title => 'radiusParams',
@ -357,8 +357,9 @@ sub tree {
help => 'authrest.html', help => 'authrest.html',
form => 'simpleInputContainer', form => 'simpleInputContainer',
nodes => [ nodes => [
'restAuthUrl', 'restUserDBUrl', 'restAuthnLevel', 'restAuthUrl',
'restPwdConfirmUrl', 'restPwdModifyUrl' 'restUserDBUrl', 'restPwdConfirmUrl',
'restPwdModifyUrl'
] ]
}, },
{ {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long