DefaultValues.pm 15.1 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
        'checkUser'                     => 1,
32
        'checkUserHiddenAttributes'     => 'UA',
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
        'gpgDb'                     => '',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
69
        'groups'                    => {},
70
        'handlerInternalCache'      => 15,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
71 72
        'hiddenAttributes'          => '_password',
        'httpOnly'                  => 1,
73
        'https'                     => -1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87
        '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,
88
        'krbRemoveDomain'           => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
        'ldapAuthnLevel'            => 2,
        'ldapBase'                  => 'dc=example,dc=com',
        'ldapExportedVars'          => {
            '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,
110 111 112 113 114 115
        '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
116 117 118 119 120 121 122 123 124
            'cache_depth'        => 3,
            'cache_root'         => '/tmp',
            'default_expires_in' => 600,
            'directory_umask'    => '007',
            'namespace'          => 'lemonldap-ng-sessions'
        },
        'locationRules' => {
            'default' => 'deny'
        },
125 126
        'logoutServices'         => {},
        'macros'                 => {},
127
        'mail2fActivation'       => 0,
Christophe Maudoux's avatar
Christophe Maudoux committed
128
        'mail2fCodeRegex'        => '\\d{6}',
129 130 131
        'mailCharset'            => 'utf-8',
        'mailFrom'               => 'noreply@example.com',
        'mailSessionKey'         => 'mail',
132 133
        'mailTimeout'            => 0,
        'mailUrl'                => 'http://auth.example.com/resetpwd',
134 135 136 137 138 139
        'managerDn'              => '',
        'managerPassword'        => '',
        'max2FDevices'           => 10,
        'max2FDevicesNameLength' => 20,
        'multiValuesSeparator'   => '; ',
        'mySessionAuthorizedRWKeys' =>
140
          [ '_appsListOrder', '_oidcConnectedRP', '_oidcConsents' ],
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
141 142 143 144 145 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
        '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
180
        'passwordResetAllowedRetries'        => 3,
181
        'port'                               => -1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
182 183 184 185 186 187 188
        'portal'                             => 'http://auth.example.com/',
        'portalAntiFrame'                    => 1,
        'portalCheckLogins'                  => 1,
        'portalDisplayAppslist'              => 1,
        'portalDisplayChangePassword'        => '$_auth =~ /^(LDAP|DBI|Demo)$/',
        'portalDisplayLoginHistory'          => 1,
        'portalDisplayLogout'                => 1,
189
        'portalDisplayOidcConsents'          => '$_oidcConnectedRP',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
190 191 192
        'portalDisplayRegister'              => 1,
        'portalErrorOnExpiredSession'        => 1,
        'portalForceAuthnInterval'           => 5,
193 194 195 196 197 198 199 200 201 202 203 204
        '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',
205
        'reloadTimeout'            => 5,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
206 207 208 209 210 211
        'remoteGlobalStorage' => 'Lemonldap::NG::Common::Apache::Session::SOAP',
        'remoteGlobalStorageOptions' => {
            'ns' =>
              'http://auth.example.com/Lemonldap/NG/Common/PSGI/SOAPService',
            'proxy' => 'http://auth.example.com/sessions'
        },
212 213
        'requireToken'     => 1,
        'rest2fActivation' => 0,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
214 215 216 217 218 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
        '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',
244 245
        'samlOrganizationURL'        => 'http://www.example.com',
        'samlRelayStateTimeout'      => 600,
246
        'samlServiceSignatureMethod' => 'RSA_SHA1',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
        '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,
262
        'sfEngine'                                => '::2F::Engines::Default',
263
        'sfRequired'                              => 0,
264
        'showLanguages'                           => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
265 266 267 268 269
        'slaveAuthnLevel'                         => 2,
        'slaveExportedVars'                       => {},
        'SMTPServer'                              => '',
        'SMTPTLS'                                 => '',
        'SSLAuthnLevel'                           => 5,
270 271
        'SSLVar'                                  => 'SSL_CLIENT_S_DN_Email',
        'SSLVarIf'                                => {},
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
272 273 274 275
        'successLoginNumber'                      => 5,
        'timeout'                                 => 72000,
        'timeoutActivity'                         => 0,
        'timeoutActivityInterval'                 => 60,
Xavier Guimard's avatar
Xavier Guimard committed
276
        'totp2fActivation'                        => 0,
Xavier Guimard's avatar
Xavier Guimard committed
277
        'totp2fDigits'                            => 6,
Xavier Guimard's avatar
Xavier Guimard committed
278 279
        'totp2fInterval'                          => 30,
        'totp2fRange'                             => 1,
280
        'totp2fSelfRegistration'                  => 0,
281
        'totp2fUserCanRemoveKey'                  => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
282
        'twitterAuthnLevel'                       => 1,
283
        'twitterUserField'                        => 'screen_name',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
284
        'u2fActivation'                           => 0,
285
        'u2fSelfRegistration'                     => 0,
286
        'u2fUserCanRemoveKey'                     => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
287 288 289 290 291
        'upgradeSession'                          => 1,
        'userControl'                             => '^[\\w\\.\\-@]+$',
        'userDB'                                  => 'Same',
        'useRedirectOnError'                      => 1,
        'useSafeJail'                             => 1,
Xavier Guimard's avatar
Xavier Guimard committed
292
        'utotp2fActivation'                       => 0,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
293 294 295
        'webIDAuthnLevel'                         => 1,
        'webIDExportedVars'                       => {},
        'whatToTrace'                             => 'uid',
296 297
        'yubikey2fActivation'                     => 0,
        'yubikey2fPublicIDSize'                   => 12,
298 299
        'yubikey2fSelfRegistration'               => 0,
        'yubikey2fUserCanRemoveKey'               => 1
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
300
    };
301 302 303
}

1;