DefaultValues.pm 14.8 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 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
        'authChoiceParam'               => 'lmAuth',
        'authentication'                => 'Demo',
        'available2F'                   => 'UTOTP,TOTP,U2F,REST,Ext2F,Yubikey',
        '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,
        '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
44 45 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,
        'facebookAuthnLevel'   => 1,
        'facebookExportedVars' => {},
55
        'facebookUserField'    => 'id',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
56 57 58 59 60 61 62 63 64 65
        '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/'
        },
        'groups'                    => {},
66
        'handlerInternalCache'      => 15,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
        'hiddenAttributes'          => '_password',
        'httpOnly'                  => 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,
83
        'krbRemoveDomain'           => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
        '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,
105 106 107 108 109 110
        '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
111 112 113 114 115 116 117 118 119
            'cache_depth'        => 3,
            'cache_root'         => '/tmp',
            'default_expires_in' => 600,
            'directory_umask'    => '007',
            'namespace'          => 'lemonldap-ng-sessions'
        },
        'locationRules' => {
            'default' => 'deny'
        },
120 121 122 123
        'logoutServices'         => {},
        'macros'                 => {},
        'mailCharset'            => 'utf-8',
        'mailFrom'               => 'noreply@example.com',
124
        'mailPwdRstUrl'          => 'http://auth.example.com/resetpwd',
125 126 127 128 129 130 131 132
        'mailSessionKey'         => 'mail',
        'mailTimeout'            => 0,
        'managerDn'              => '',
        'managerPassword'        => '',
        'max2FDevices'           => 10,
        'max2FDevicesNameLength' => 20,
        'multiValuesSeparator'   => '; ',
        'mySessionAuthorizedRWKeys' =>
133
          [ '_appsListOrder', '_oidcConnectedRP', '_oidcConsents' ],
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
134 135 136 137 138 139 140 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
        '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
173
        'passwordResetAllowedRetries'        => 3,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
174 175 176 177 178 179 180
        'portal'                             => 'http://auth.example.com/',
        'portalAntiFrame'                    => 1,
        'portalCheckLogins'                  => 1,
        'portalDisplayAppslist'              => 1,
        'portalDisplayChangePassword'        => '$_auth =~ /^(LDAP|DBI|Demo)$/',
        'portalDisplayLoginHistory'          => 1,
        'portalDisplayLogout'                => 1,
181
        'portalDisplayOidcConsents'          => '$_oidcConnectedRP',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
182 183 184
        'portalDisplayRegister'              => 1,
        'portalErrorOnExpiredSession'        => 1,
        'portalForceAuthnInterval'           => 5,
185 186 187 188 189 190 191 192 193 194 195 196
        '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',
197
        'reloadTimeout'            => 5,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
198 199 200 201 202 203
        'remoteGlobalStorage' => 'Lemonldap::NG::Common::Apache::Session::SOAP',
        'remoteGlobalStorageOptions' => {
            'ns' =>
              'http://auth.example.com/Lemonldap/NG/Common/PSGI/SOAPService',
            'proxy' => 'http://auth.example.com/sessions'
        },
204 205
        'requireToken'     => 1,
        'rest2fActivation' => 0,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
        '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',
236 237
        'samlOrganizationURL'        => 'http://www.example.com',
        'samlRelayStateTimeout'      => 600,
238
        'samlServiceSignatureMethod' => 'RSA_SHA1',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
        '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,
254
        'sfEngine'                                => '::2F::Engines::Default',
255
        'sfRequired'                              => 0,
256
        'showLanguages'                           => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
257 258 259 260 261
        'slaveAuthnLevel'                         => 2,
        'slaveExportedVars'                       => {},
        'SMTPServer'                              => '',
        'SMTPTLS'                                 => '',
        'SSLAuthnLevel'                           => 5,
262 263
        'SSLVar'                                  => 'SSL_CLIENT_S_DN_Email',
        'SSLVarIf'                                => {},
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
264 265 266 267
        'successLoginNumber'                      => 5,
        'timeout'                                 => 72000,
        'timeoutActivity'                         => 0,
        'timeoutActivityInterval'                 => 60,
Xavier Guimard's avatar
Xavier Guimard committed
268
        'totp2fActivation'                        => 0,
Xavier Guimard's avatar
Xavier Guimard committed
269
        'totp2fDigits'                            => 6,
Xavier Guimard's avatar
Xavier Guimard committed
270 271
        'totp2fInterval'                          => 30,
        'totp2fRange'                             => 1,
272
        'totp2fSelfRegistration'                  => 0,
273
        'totp2fUserCanRemoveKey'                  => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
274 275
        'trustedProxies'                          => '',
        'twitterAuthnLevel'                       => 1,
276
        'twitterUserField'                        => 'screen_name',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
277
        'u2fActivation'                           => 0,
278
        'u2fSelfRegistration'                     => 0,
279
        'u2fUserCanRemoveKey'                     => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
280 281 282 283 284
        'upgradeSession'                          => 1,
        'userControl'                             => '^[\\w\\.\\-@]+$',
        'userDB'                                  => 'Same',
        'useRedirectOnError'                      => 1,
        'useSafeJail'                             => 1,
Xavier Guimard's avatar
Xavier Guimard committed
285
        'utotp2fActivation'                       => 0,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
286 287 288
        'webIDAuthnLevel'                         => 1,
        'webIDExportedVars'                       => {},
        'whatToTrace'                             => 'uid',
289 290
        'yubikey2fActivation'                     => 0,
        'yubikey2fPublicIDSize'                   => 12,
291 292
        'yubikey2fSelfRegistration'               => 0,
        'yubikey2fUserCanRemoveKey'               => 1
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
293
    };
294 295 296
}

1;