From ddf6afd0bd0d1e6abfb5fd995f952df0b7430ed6 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Thu, 6 Jul 2017 22:38:27 +0100
Subject: [PATCH] Relax a bit the blacklisting defaults

---
 authserv/app_common.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/authserv/app_common.py b/authserv/app_common.py
index 788b3a2..0b9deb2 100644
--- a/authserv/app_common.py
+++ b/authserv/app_common.py
@@ -59,9 +59,9 @@ def do_auth(username, service, shard, password, otp_token, source_ip,
 def _do_auth(mc, username, service, shard, password, otp_token, source_ip,
             password_only):
     # Username must be an ASCII string.
-    bl = AuthBlackList(current_app.config.get('BLACKLIST_COUNT', 5),
+    bl = AuthBlackList(current_app.config.get('BLACKLIST_COUNT', 50),
                        current_app.config.get('BLACKLIST_PERIOD', 600),
-                       current_app.config.get('BLACKLIST_TIME', 6*3600),
+                       current_app.config.get('BLACKLIST_TIME', 2*3600),
                        mc)
     if current_app.config.get('ENABLE_BLACKLIST'):
         if bl.is_blacklisted('u', username):
-- 
GitLab