mirror of https://github.com/fail2ban/fail2ban
sebres
8 years ago
9 changed files with 910 additions and 840 deletions
@ -0,0 +1,25 @@
|
||||
# slapd (Stand-alone LDAP Daemon) openldap daemon filter |
||||
# |
||||
# Detecting invalid credentials: error code 49 |
||||
# http://www.openldap.org/doc/admin24/appendix-ldap-result-codes.html#invalidCredentials (49) |
||||
|
||||
[INCLUDES] |
||||
|
||||
# Read common prefixes. If any customizations available -- read them from |
||||
# common.local |
||||
before = common.conf |
||||
|
||||
[Definition] |
||||
|
||||
_daemon = slapd |
||||
|
||||
failregex = ^(?P<__prefix>%(__prefix_line)s)conn=(?P<_conn_>\d+) fd=\d+ ACCEPT from IP=<HOST>:\d{1,5} \(IP=\S+\)\s*<SKIPLINES>(?P=__prefix)conn=(?P=_conn_) op=\d+ RESULT(?:\s(?!err)\S+=\S*)* err=49 text=[\w\s]*$ |
||||
|
||||
ignoreregex = |
||||
|
||||
[Init] |
||||
|
||||
# "maxlines" is number of log lines to buffer for multi-line regex searches |
||||
maxlines = 20 |
||||
|
||||
# Author: Andrii Melnyk |
@ -0,0 +1 @@
|
||||
../../../../config/filter.d/common.conf |
@ -0,0 +1,18 @@
|
||||
# failJSON: { "match": false } |
||||
Jul 8 01:47:19 ldap-server slapd[1183]: conn=1022 fd=21 ACCEPT from IP=8.8.8.8:45011 (IP=0.0.0.0:636) |
||||
# failJSON: { "match": false } |
||||
Jul 8 01:47:19 ldap-server slapd[1183]: conn=1022 fd=21 TLS established tls_ssf=256 ssf=256 |
||||
# failJSON: { "match": false } |
||||
Jul 8 01:47:19 ldap-server slapd[1183]: conn=1022 op=0 EXT oid=1.3.6.1.4.1.6.1 |
||||
# failJSON: { "match": false } |
||||
Jul 8 01:47:19 ldap-server slapd[1183]: conn=1022 op=0 STARTTLS |
||||
# failJSON: { "match": false } |
||||
Jul 8 01:47:19 ldap-server slapd[1183]: conn=1022 op=0 RESULT oid= err=1 text=TLS already started |
||||
# failJSON: { "match": false } |
||||
Jul 8 01:47:20 ldap-server slapd[1183]: conn=1022 op=1 BIND dn="uid=gipson,ou=people,dc=example,dc=com" method=128 |
||||
# failJSON: { "time": "2005-07-08T01:47:20", "match": true , "host": "8.8.8.8", "desc": "Multiline match for invalid credentials" } |
||||
Jul 8 01:47:20 ldap-server slapd[1183]: conn=1022 op=1 RESULT tag=97 err=49 text= |
||||
# failJSON: { "match": false } |
||||
Jul 8 01:47:20 ldap-server slapd[1183]: conn=1022 op=2 UNBIND |
||||
# failJSON: { "match": false } |
||||
Jul 8 01:47:20 ldap-server slapd[1183]: conn=1022 fd=21 closed |
Loading…
Reference in new issue