Open simone-viozzi opened 1 year ago
@saw-jan fyi, this case was the origin to improve docs.
@mmattel this also is a limitation of the builtin IDP we should document. Other IDPs like eg. Keycloak support Bruteforce Protection out of the box, see eg. https://www.keycloak.org/docs/latest/server_admin/#password-guess-brute-force-attacks
Describe the bug
Following the guide to set up Fail2Ban I noticed that I don't have any log entry with
"message":"invalid credentials"
.I also asked if the documentation was up-to-date (https://github.com/owncloud/docs-ocis/issues/421#issuecomment-1642368946) and It is. So I should have failed login attempts logged, same as in the guide.
Steps to reproduce
Steps to reproduce the behavior:
OCIS_LOG_FILE: /var/lib/ocis/logs/ocis.log
&OCIS_LOG_LEVEL: info
- ./logs:/var/lib/ocis/logs
tail -f -n 50 logs/ocis.log | grep -C 5 --line-buffered "xxx.xxx.xxx.xxx"
with the IP from which you will do the failed login attempts. Withgrep -C
it will print 5 lines above and 5 below as context.Expected behavior
Each failed login attempt should generate 2 consecutive entry logs like it is described in the documentation:
Actual behavior
There is no log containing
"message":"invalid credentials"
.Setup
The setup is done following the ocis_wopi guide.
Additional context
I'm running OCIS 3.0.0. I updated it from 2.0.0 following the release notes.