From bd0551b22076b82a6d49e9f7a2b2e0c90a1b2326 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 05 Feb 2016 07:25:27 -0500 Subject: [PATCH] Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports --- config/defaults.inc.php | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/config/defaults.inc.php b/config/defaults.inc.php index d53b700..4339523 100644 --- a/config/defaults.inc.php +++ b/config/defaults.inc.php @@ -306,6 +306,7 @@ // Lifetime of LDAP cache. Possible units: s, m, h, d, w $config['ldap_cache_ttl'] = '10m'; + // ---------------------------------- // SYSTEM // ---------------------------------- @@ -376,6 +377,18 @@ // Note: After enabling it all user records need to be updated, e.g. with query: // UPDATE users SET username = LOWER(username); $config['login_lc'] = 2; + +// Maximum length (in bytes) of logon username and password. +$config['login_username_maxlen'] = 1024; +$config['login_password_maxlen'] = 1024; + +// Logon username filter. Regular expression for use with preg_match(). +// Example: '/^[a-z0-9_@.-]+$/' +$config['login_username_filter'] = null; + +// Brute-force attacks prevention. +// The value specifies maximum number of failed logon attempts per minute. +$config['login_rate_limit'] = 3; // Includes should be interpreted as PHP files $config['skin_include_php'] = false; @@ -494,7 +507,7 @@ // Maximum number of recipients per message. Default: 0 (no limit) $config['max_recipients'] = 0; -// Maximum allowednumber of members of an address group. Default: 0 (no limit) +// Maximum allowed number of members of an address group. Default: 0 (no limit) // If 'max_recipients' is set this value should be less or equal $config['max_group_members'] = 0; -- Gitblit v1.9.1