summaryrefslogtreecommitdiff
path: root/fail2ban
diff options
context:
space:
mode:
authorSergey G. Brester <serg.brester@sebres.de>2021-10-01 14:58:25 +0200
committerGitHub <noreply@github.com>2021-10-01 14:58:25 +0200
commitf8f59dd31a46f6ad35b38df1f29a8f81c7e88960 (patch)
treebabd74f2cffcd72f11e62a69417649aa91c1de72 /fail2ban
parent5ee482bc9a735ebf2cf95e4aca8e0112acea6164 (diff)
downloadfail2ban-f8f59dd31a46f6ad35b38df1f29a8f81c7e88960.tar.gz
added test cases covering different messages adjusted to new log-format (gh-3116)
Diffstat (limited to 'fail2ban')
-rw-r--r--fail2ban/tests/files/logs/lighttpd-auth7
1 files changed, 6 insertions, 1 deletions
diff --git a/fail2ban/tests/files/logs/lighttpd-auth b/fail2ban/tests/files/logs/lighttpd-auth
index 184dba33..c8a922b5 100644
--- a/fail2ban/tests/files/logs/lighttpd-auth
+++ b/fail2ban/tests/files/logs/lighttpd-auth
@@ -1,4 +1,3 @@
-#authentification failure (mod_auth)
# failJSON: { "time": "2011-12-25T17:09:20", "match": true , "host": "4.4.4.4" }
2011-12-25 17:09:20: (http_auth.c.875) password doesn't match for /gitweb/ username: francois, IP: 4.4.4.4
# failJSON: { "time": "2012-09-26T10:24:35", "match": true , "host": "4.4.4.4" }
@@ -7,3 +6,9 @@
2013-08-25 00:24:55: (http_auth.c.877) get_password failed, IP: 4.4.4.4
# failJSON: { "time": "2018-01-16T14:10:32", "match": true , "host": "192.0.2.1", "desc": "http_auth -> mod_auth, gh-2018" }
2018-01-16 14:10:32: (mod_auth.c.525) password doesn't match for /test-url username: test, IP: 192.0.2.1
+# failJSON: { "time": "2021-09-30T16:05:33", "match": true , "host": "192.0.2.2", "user":"test", "desc": "gh-3116" }
+2021-09-30 16:05:33: mod_auth.c.828) password doesn't match for /secure/ username: test IP: 192.0.2.2
+# failJSON: { "time": "2021-09-30T17:44:37", "match": true , "host": "192.0.2.3", "user":"tester", "desc": "gh-3116" }
+2021-09-30 17:44:37: (mod_auth.c.791) digest: auth failed for tester : wrong password, IP: 192.0.2.3
+# failJSON: { "time": "2021-09-30T17:44:37", "match": true , "host": "192.0.2.4", "desc": "gh-3116" }
+2021-09-30 17:44:37: (mod_auth.c.791) digest: auth failed: uri mismatch (/uri1 != /uri2), IP: 192.0.2.4