DefaultValues.pm 14.6 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;

4
our $VERSION = '2.0.0';
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
        'authChoiceParam'             => 'lmAuth',
        'authentication'              => 'Demo',
        'available2F'                 => 'UTOTP,TOTP,U2F,REST,Ext2F,Yubikey',
        'available2FSelfRegistration' => 'TOTP,U2F,Yubikey',
22 23
        'bruteForceProtectionMaxAge'  => 300,
        'bruteForceProtectionTempo'   => 30,
24 25 26 27 28
        'captcha_mail_enabled'        => 1,
        'captcha_register_enabled'    => 1,
        'captcha_size'                => 6,
        'casAccessControlPolicy'      => 'none',
        'casAuthnLevel'               => 1,
29
        'checkTime'                   => 600,
30 31 32 33 34 35
        'checkXSS'                    => 1,
        'confirmFormMethod'           => 'post',
        'cookieName'                  => 'lemonldap',
        'cspConnect'                  => '\'self\'',
        'cspDefault'                  => '\'self\'',
        'cspFont'                     => '\'self\'',
36
        'cspFormAction'               => '\'self\'',
37 38 39 40 41 42
        'cspImg'                      => '\'self\' data:',
        'cspScript'                   => '\'self\'',
        'cspStyle'                    => '\'self\'',
        'dbiAuthnLevel'               => 2,
        'dbiExportedVars'             => {},
        'demoExportedVars'            => {
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
43 44 45 46 47 48 49 50 51 52 53
            'cn'   => 'cn',
            'mail' => 'mail',
            'uid'  => 'uid'
        },
        'domain'       => 'example.com',
        'exportedVars' => {
            'UA' => 'HTTP_USER_AGENT'
        },
        'ext2fActivation'      => 0,
        'facebookAuthnLevel'   => 1,
        'facebookExportedVars' => {},
54
        'facebookUserField'    => 'id',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
        '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'                    => {},
        '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,
81
        'krbRemoveDomain'           => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
        '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,
103 104 105 106 107 108
        '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
109 110 111 112 113 114 115 116 117
            'cache_depth'        => 3,
            'cache_root'         => '/tmp',
            'default_expires_in' => 600,
            'directory_umask'    => '007',
            'namespace'          => 'lemonldap-ng-sessions'
        },
        'locationRules' => {
            'default' => 'deny'
        },
118 119 120 121 122 123 124 125 126 127 128 129 130
        'logoutServices'         => {},
        'macros'                 => {},
        'mailCharset'            => 'utf-8',
        'mailFrom'               => 'noreply@example.com',
        'mailSessionKey'         => 'mail',
        'mailTimeout'            => 0,
        'mailUrl'                => 'http://auth.example.com/resetpwd',
        'managerDn'              => '',
        'managerPassword'        => '',
        'max2FDevices'           => 10,
        'max2FDevicesNameLength' => 20,
        'multiValuesSeparator'   => '; ',
        'mySessionAuthorizedRWKeys' =>
131
          [ '_appsListOrder', '_oidcConnectedRP', '_oidcConsents' ],
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
132 133 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 173 174 175 176 177
        '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',
        'portal'                             => 'http://auth.example.com/',
        'portalAntiFrame'                    => 1,
        'portalCheckLogins'                  => 1,
        'portalDisplayAppslist'              => 1,
        'portalDisplayChangePassword'        => '$_auth =~ /^(LDAP|DBI|Demo)$/',
        'portalDisplayLoginHistory'          => 1,
        'portalDisplayLogout'                => 1,
178
        'portalDisplayOidcConsents'          => '$_oidcConnectedRP',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
179 180 181
        'portalDisplayRegister'              => 1,
        'portalErrorOnExpiredSession'        => 1,
        'portalForceAuthnInterval'           => 5,
182 183 184 185 186 187 188 189 190 191 192 193
        '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',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
194 195 196 197 198 199
        'remoteGlobalStorage' => 'Lemonldap::NG::Common::Apache::Session::SOAP',
        'remoteGlobalStorageOptions' => {
            'ns' =>
              'http://auth.example.com/Lemonldap/NG/Common/PSGI/SOAPService',
            'proxy' => 'http://auth.example.com/sessions'
        },
Xavier Guimard's avatar
Xavier Guimard committed
200 201
        'requireToken'     => 1,
        'rest2fActivation' => 0,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
202 203 204 205 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
        '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',
232 233
        'samlOrganizationURL'        => 'http://www.example.com',
        'samlRelayStateTimeout'      => 600,
234
        'samlServiceSignatureMethod' => 'RSA_SHA1',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
        '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,
250
        'sfEngine'                                => '::2F::Engines::Default',
251
        'sfRequired'                              => 0,
252
        'showLanguages'                           => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
253 254 255 256 257
        'slaveAuthnLevel'                         => 2,
        'slaveExportedVars'                       => {},
        'SMTPServer'                              => '',
        'SMTPTLS'                                 => '',
        'SSLAuthnLevel'                           => 5,
258 259
        'SSLVar'                                  => 'SSL_CLIENT_S_DN_Email',
        'SSLVarIf'                                => {},
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
260 261 262 263
        'successLoginNumber'                      => 5,
        'timeout'                                 => 72000,
        'timeoutActivity'                         => 0,
        'timeoutActivityInterval'                 => 60,
Xavier Guimard's avatar
Xavier Guimard committed
264
        'totp2fActivation'                        => 0,
Xavier Guimard's avatar
Xavier Guimard committed
265
        'totp2fDigits'                            => 6,
Xavier Guimard's avatar
Xavier Guimard committed
266 267
        'totp2fInterval'                          => 30,
        'totp2fRange'                             => 1,
268
        'totp2fSelfRegistration'                  => 0,
269
        'totp2fUserCanRemoveKey'                  => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
270 271
        'trustedProxies'                          => '',
        'twitterAuthnLevel'                       => 1,
272
        'twitterUserField'                        => 'screen_name',
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
273
        'u2fActivation'                           => 0,
274
        'u2fSelfRegistration'                     => 0,
275
        'u2fUserCanRemoveKey'                     => 1,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
276 277 278 279 280
        'upgradeSession'                          => 1,
        'userControl'                             => '^[\\w\\.\\-@]+$',
        'userDB'                                  => 'Same',
        'useRedirectOnError'                      => 1,
        'useSafeJail'                             => 1,
Xavier Guimard's avatar
Xavier Guimard committed
281
        'utotp2fActivation'                       => 0,
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
282 283 284
        'webIDAuthnLevel'                         => 1,
        'webIDExportedVars'                       => {},
        'whatToTrace'                             => 'uid',
285 286
        'yubikey2fActivation'                     => 0,
        'yubikey2fPublicIDSize'                   => 12,
287 288
        'yubikey2fSelfRegistration'               => 0,
        'yubikey2fUserCanRemoveKey'               => 1
dcoutadeur dcoutadeur's avatar
dcoutadeur dcoutadeur committed
289
    };
290 291 292
}

1;