DefaultValues.pm 15.5 KB
Newer Older
Xavier Guimard's avatar
Xavier Guimard committed
1
# This file is generated by Lemonldap::NG::Manager::Build. Don't modify it by hand
2 3
package Lemonldap::NG::Common::Conf::DefaultValues;

Xavier Guimard's avatar
Xavier Guimard committed
4
our $VERSION = '2.0.2';
5 6 7

sub defaultValues {
    return {
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
8 9 10 11 12 13 14 15 16 17
        'activeTimer'        => 1,
        'ADPwdExpireWarning' => 0,
        'ADPwdMaxAge'        => 0,
        'apacheAuthnLevel'   => 4,
        'applicationList'    => {
            'default' => {
                'catname' => 'Default category',
                'type'    => 'category'
            }
        },
18 19 20
        'authChoiceParam' => 'lmAuth',
        'authentication'  => 'Demo',
        'available2F'     => 'UTOTP,TOTP,U2F,REST,Mail2F,Ext2F,Yubikey',
21 22 23 24 25 26 27 28 29 30
        'available2FSelfRegistration'   => 'TOTP,U2F,Yubikey',
        'bruteForceProtectionMaxAge'    => 300,
        'bruteForceProtectionMaxFailed' => 3,
        'bruteForceProtectionTempo'     => 30,
        'captcha_mail_enabled'          => 1,
        'captcha_register_enabled'      => 1,
        'captcha_size'                  => 6,
        'casAccessControlPolicy'        => 'none',
        'casAuthnLevel'                 => 1,
        'checkTime'                     => 600,
31
        'checkUserHiddenAttributes'     => '_2fDevices _loginHistory hGroups',
32
        'checkUserIdRule'               => 1,
33 34 35 36 37 38 39 40 41 42 43 44 45
        'checkXSS'                      => 1,
        'confirmFormMethod'             => 'post',
        'cookieName'                    => 'lemonldap',
        'cspConnect'                    => '\'self\'',
        'cspDefault'                    => '\'self\'',
        'cspFont'                       => '\'self\'',
        'cspFormAction'                 => '\'self\'',
        'cspImg'                        => '\'self\' data:',
        'cspScript'                     => '\'self\'',
        'cspStyle'                      => '\'self\'',
        'dbiAuthnLevel'                 => 2,
        'dbiExportedVars'               => {},
        'demoExportedVars'              => {
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
46 47 48 49 50 51 52 53 54
            'cn'   => 'cn',
            'mail' => 'mail',
            'uid'  => 'uid'
        },
        'domain'       => 'example.com',
        'exportedVars' => {
            'UA' => 'HTTP_USER_AGENT'
        },
        'ext2fActivation'      => 0,
55
        'ext2fCodeActivation'  => '\\d{6}',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
56 57
        'facebookAuthnLevel'   => 1,
        'facebookExportedVars' => {},
58
        'facebookUserField'    => 'id',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
59 60 61 62 63 64 65 66 67
        'failedLoginNumber'    => 5,
        'formTimeout'          => 120,
        'globalStorage'        => 'Apache::Session::File',
        'globalStorageOptions' => {
            'Directory' => '/var/lib/lemonldap-ng/sessions/',
            'generateModule' =>
              'Lemonldap::NG::Common::Apache::Session::Generate::SHA256',
            'LockDirectory' => '/var/lib/lemonldap-ng/sessions/lock/'
        },
68 69 70 71 72 73 74
        'gpgDb'                         => '',
        'groups'                        => {},
        'handlerInternalCache'          => 15,
        'hiddenAttributes'              => '_password',
        'httpOnly'                      => 1,
        'https'                         => -1,
        'impersonationHiddenAttributes' => '_2fDevices _loginHistory',
75
        'impersonationIdRule'           => 1,
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
        'impersonationPrefix'           => 'real_',
        'impersonationRule'             => 0,
        'impersonationSkipEmptyValues'  => 1,
        'infoFormMethod'                => 'get',
        'issuerDBCASPath'               => '^/cas/',
        'issuerDBCASRule'               => 1,
        'issuerDBGetParameters'         => {},
        'issuerDBGetPath'               => '^/get/',
        'issuerDBGetRule'               => 1,
        'issuerDBOpenIDConnectPath'     => '^/oauth2/',
        'issuerDBOpenIDConnectRule'     => 1,
        'issuerDBOpenIDPath'            => '^/openidserver/',
        'issuerDBOpenIDRule'            => 1,
        'issuerDBSAMLPath'              => '^/saml/',
        'issuerDBSAMLRule'              => 1,
        'jsRedirect'                    => 0,
        'krbAuthnLevel'                 => 3,
        'krbRemoveDomain'               => 1,
        'ldapAuthnLevel'                => 2,
        'ldapBase'                      => 'dc=example,dc=com',
        'ldapExportedVars'              => {
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
            'cn'   => 'cn',
            'mail' => 'mail',
            'uid'  => 'uid'
        },
        'ldapGroupAttributeName'          => 'member',
        'ldapGroupAttributeNameGroup'     => 'dn',
        'ldapGroupAttributeNameSearch'    => 'cn',
        'ldapGroupAttributeNameUser'      => 'dn',
        'ldapGroupObjectClass'            => 'groupOfNames',
        'ldapPasswordResetAttribute'      => 'pwdReset',
        'ldapPasswordResetAttributeValue' => 'TRUE',
        'ldapPort'                        => 389,
        'ldapPwdEnc'                      => 'utf-8',
        'ldapSearchDeref'                 => 'find',
        'ldapServer'                      => 'ldap://localhost',
        'ldapTimeout'                     => 120,
        'ldapUsePasswordResetAttribute'   => 1,
        'ldapVersion'                     => 3,
115 116 117 118 119 120
        'linkedInAuthnLevel'              => 1,
        'linkedInFields'             => 'id,first-name,last-name,email-address',
        'linkedInScope'              => 'r_basicprofile r_emailaddress',
        'linkedInUserField'          => 'emailAddress',
        'localSessionStorage'        => 'Cache::FileCache',
        'localSessionStorageOptions' => {
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
121 122 123 124 125 126 127 128 129
            'cache_depth'        => 3,
            'cache_root'         => '/tmp',
            'default_expires_in' => 600,
            'directory_umask'    => '007',
            'namespace'          => 'lemonldap-ng-sessions'
        },
        'locationRules' => {
            'default' => 'deny'
        },
130 131
        'logoutServices'         => {},
        'macros'                 => {},
132
        'mail2fActivation'       => 0,
133
        'mail2fCodeRegex'        => '\\d{6}',
134 135 136
        'mailCharset'            => 'utf-8',
        'mailFrom'               => 'noreply@example.com',
        'mailSessionKey'         => 'mail',
137 138
        'mailTimeout'            => 0,
        'mailUrl'                => 'http://auth.example.com/resetpwd',
139 140 141 142 143 144
        'managerDn'              => '',
        'managerPassword'        => '',
        'max2FDevices'           => 10,
        'max2FDevicesNameLength' => 20,
        'multiValuesSeparator'   => '; ',
        'mySessionAuthorizedRWKeys' =>
145
          [ '_appsListOrder', '_oidcConnectedRP', '_oidcConsents' ],
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
        'notificationStorage'        => 'File',
        'notificationStorageOptions' => {
            'dirName' => '/var/lib/lemonldap-ng/notifications'
        },
        'notificationWildcard'                  => 'allusers',
        'notifyDeleted'                         => 1,
        'nullAuthnLevel'                        => 0,
        'oidcAuthnLevel'                        => 1,
        'oidcRPCallbackGetParam'                => 'openidconnectcallback',
        'oidcRPStateTimeout'                    => 600,
        'oidcServiceAllowAuthorizationCodeFlow' => 1,
        'oidcServiceMetaDataAuthnContext'       => {
            'loa-1' => 1,
            'loa-2' => 2,
            'loa-3' => 3,
            'loa-4' => 4,
            'loa-5' => 5
        },
        'oidcServiceMetaDataAuthorizeURI'    => 'authorize',
        'oidcServiceMetaDataBackChannelURI'  => 'blogout',
        'oidcServiceMetaDataCheckSessionURI' => 'checksession.html',
        'oidcServiceMetaDataEndSessionURI'   => 'logout',
        'oidcServiceMetaDataFrontChannelURI' => 'flogout',
        'oidcServiceMetaDataIssuer'          => 'http://auth.example.com',
        'oidcServiceMetaDataJWKSURI'         => 'jwks',
        'oidcServiceMetaDataRegistrationURI' => 'register',
        'oidcServiceMetaDataTokenURI'        => 'token',
        'oidcServiceMetaDataUserInfoURI'     => 'userinfo',
        'openIdAuthnLevel'                   => 1,
        'openIdExportedVars'                 => {},
        'openIdIDPList'                      => '0;',
        'openIdSPList'                       => '0;',
        'openIdSreg_email'                   => 'mail',
        'openIdSreg_fullname'                => 'cn',
        'openIdSreg_nickname'                => 'uid',
        'openIdSreg_timezone'                => '_timezone',
        'pamAuthnLevel'                      => 2,
        'pamService'                         => 'login',
        'passwordDB'                         => 'Demo',
Christophe Maudoux's avatar
Christophe Maudoux committed
185
        'passwordResetAllowedRetries'        => 3,
186
        'port'                               => -1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
187 188 189 190 191 192 193
        'portal'                             => 'http://auth.example.com/',
        'portalAntiFrame'                    => 1,
        'portalCheckLogins'                  => 1,
        'portalDisplayAppslist'              => 1,
        'portalDisplayChangePassword'        => '$_auth =~ /^(LDAP|DBI|Demo)$/',
        'portalDisplayLoginHistory'          => 1,
        'portalDisplayLogout'                => 1,
194
        'portalDisplayOidcConsents'          => '$_oidcConnectedRP',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
195 196 197
        'portalDisplayRegister'              => 1,
        'portalErrorOnExpiredSession'        => 1,
        'portalForceAuthnInterval'           => 5,
198 199 200 201 202 203 204 205 206 207 208 209
        'portalMainLogo'           => 'common/logos/logo_llng_400px.png',
        'portalPingInterval'       => 60000,
        'portalRequireOldPassword' => 1,
        'portalSkin'               => 'bootstrap',
        'portalUserAttr'           => '_user',
        'proxyAuthnLevel'          => 2,
        'radiusAuthnLevel'         => 3,
        'randomPasswordRegexp'     => '[A-Z]{3}[a-z]{5}.\\d{2}',
        'redirectFormMethod'       => 'get',
        'registerDB'               => 'Null',
        'registerTimeout'          => 0,
        'registerUrl'              => 'http://auth.example.com/register',
210
        'reloadTimeout'            => 5,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
211 212 213 214 215 216
        'remoteGlobalStorage' => 'Lemonldap::NG::Common::Apache::Session::SOAP',
        'remoteGlobalStorageOptions' => {
            'ns' =>
              'http://auth.example.com/Lemonldap/NG/Common/PSGI/SOAPService',
            'proxy' => 'http://auth.example.com/sessions'
        },
217 218
        'requireToken'     => 1,
        'rest2fActivation' => 0,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
        'samlAttributeAuthorityDescriptorAttributeServiceSOAP' =>
          'urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/AA/SOAP;',
        'samlAuthnContextMapKerberos'                   => 4,
        'samlAuthnContextMapPassword'                   => 2,
        'samlAuthnContextMapPasswordProtectedTransport' => 3,
        'samlAuthnContextMapTLSClient'                  => 5,
        'samlEntityID'         => '#PORTAL#/saml/metadata',
        'samlIdPResolveCookie' => 'lemonldapidp',
        'samlIDPSSODescriptorArtifactResolutionServiceArtifact' =>
'1;0;urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/artifact',
        'samlIDPSSODescriptorSingleLogoutServiceHTTPPost' =>
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST;#PORTAL#/saml/singleLogout;#PORTAL#/saml/singleLogoutReturn',
        'samlIDPSSODescriptorSingleLogoutServiceHTTPRedirect' =>
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect;#PORTAL#/saml/singleLogout;#PORTAL#/saml/singleLogoutReturn',
        'samlIDPSSODescriptorSingleLogoutServiceSOAP' =>
'urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/singleLogoutSOAP;',
        'samlIDPSSODescriptorSingleSignOnServiceHTTPArtifact' =>
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact;#PORTAL#/saml/singleSignOnArtifact;',
        'samlIDPSSODescriptorSingleSignOnServiceHTTPPost' =>
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST;#PORTAL#/saml/singleSignOn;',
        'samlIDPSSODescriptorSingleSignOnServiceHTTPRedirect' =>
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect;#PORTAL#/saml/singleSignOn;',
        'samlIDPSSODescriptorWantAuthnRequestsSigned' => 1,
        'samlMetadataForceUTF8'                       => 1,
        'samlNameIDFormatMapEmail'                    => 'mail',
        'samlNameIDFormatMapKerberos'                 => 'uid',
        'samlNameIDFormatMapWindows'                  => 'uid',
        'samlNameIDFormatMapX509'                     => 'mail',
        'samlOrganizationDisplayName'                 => 'Example',
        'samlOrganizationName'                        => 'Example',
249
        'samlOrganizationURL'        => 'http://www.example.com',
250
        'samlOverrideIDPEntityID'    => '',
251
        'samlRelayStateTimeout'      => 600,
252
        'samlServiceSignatureMethod' => 'RSA_SHA1',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
        'samlSPSSODescriptorArtifactResolutionServiceArtifact' =>
'1;0;urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/artifact',
        'samlSPSSODescriptorAssertionConsumerServiceHTTPArtifact' =>
'1;0;urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact;#PORTAL#/saml/proxySingleSignOnArtifact',
        'samlSPSSODescriptorAssertionConsumerServiceHTTPPost' =>
'0;1;urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST;#PORTAL#/saml/proxySingleSignOnPost',
        'samlSPSSODescriptorAuthnRequestsSigned' => 1,
        'samlSPSSODescriptorSingleLogoutServiceHTTPPost' =>
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST;#PORTAL#/saml/proxySingleLogout;#PORTAL#/saml/proxySingleLogoutReturn',
        'samlSPSSODescriptorSingleLogoutServiceHTTPRedirect' =>
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect;#PORTAL#/saml/proxySingleLogout;#PORTAL#/saml/proxySingleLogoutReturn',
        'samlSPSSODescriptorSingleLogoutServiceSOAP' =>
'urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/proxySingleLogoutSOAP;',
        'samlSPSSODescriptorWantAssertionsSigned' => 1,
        'securedCookie'                           => 0,
268
        'sfEngine'                                => '::2F::Engines::Default',
269
        'sfRequired'                              => 0,
270
        'showLanguages'                           => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
271 272 273 274 275
        'slaveAuthnLevel'                         => 2,
        'slaveExportedVars'                       => {},
        'SMTPServer'                              => '',
        'SMTPTLS'                                 => '',
        'SSLAuthnLevel'                           => 5,
276 277
        'SSLVar'                                  => 'SSL_CLIENT_S_DN_Email',
        'SSLVarIf'                                => {},
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
278 279 280 281
        'successLoginNumber'                      => 5,
        'timeout'                                 => 72000,
        'timeoutActivity'                         => 0,
        'timeoutActivityInterval'                 => 60,
282
        'totp2fActivation'                        => 0,
Xavier Guimard's avatar
Xavier Guimard committed
283
        'totp2fDigits'                            => 6,
284 285
        'totp2fInterval'                          => 30,
        'totp2fRange'                             => 1,
286
        'totp2fSelfRegistration'                  => 0,
287
        'totp2fUserCanRemoveKey'                  => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
288
        'twitterAuthnLevel'                       => 1,
289
        'twitterUserField'                        => 'screen_name',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
290
        'u2fActivation'                           => 0,
291
        'u2fSelfRegistration'                     => 0,
292
        'u2fUserCanRemoveKey'                     => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
293
        'upgradeSession'                          => 1,
294
        'userControl'                             => '^[\\w\\.\\-@]+$',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
295 296 297
        'userDB'                                  => 'Same',
        'useRedirectOnError'                      => 1,
        'useSafeJail'                             => 1,
298
        'utotp2fActivation'                       => 0,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
299 300 301
        'webIDAuthnLevel'                         => 1,
        'webIDExportedVars'                       => {},
        'whatToTrace'                             => 'uid',
302 303
        'yubikey2fActivation'                     => 0,
        'yubikey2fPublicIDSize'                   => 12,
304 305
        'yubikey2fSelfRegistration'               => 0,
        'yubikey2fUserCanRemoveKey'               => 1
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
306
    };
307 308 309
}

1;