From 2ff0979275eb728db830cc4978a0397a2a1fce9c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 28 Sep 2020 17:28:47 +0200 Subject: [PATCH 1/2] log user who failed to login --- webdav/webdav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webdav/webdav.php b/webdav/webdav.php index e3ce26d7b..c147a10d0 100644 --- a/webdav/webdav.php +++ b/webdav/webdav.php @@ -171,7 +171,7 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server if(!$userobj) { if($this->logger) - $this->logger->log('check_auth: No such user', PEAR_LOG_NOTICE); + $this->logger->log('check_auth: No such user'.$user, PEAR_LOG_NOTICE); return false; } From 9d2fba4fc614f0cab0b3d799c1c9f7a910f0559f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 28 Sep 2020 19:15:00 +0200 Subject: [PATCH 2/2] log failed authentication at ldap server --- controllers/class.Login.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/class.Login.php b/controllers/class.Login.php index 491fbd6d0..ef96153ee 100644 --- a/controllers/class.Login.php +++ b/controllers/class.Login.php @@ -104,6 +104,9 @@ class SeedDMS_Controller_Login extends SeedDMS_Controller_Common { require_once("../inc/inc.ClassLdapAuthentication.php"); $authobj = new SeedDMS_LdapAuthentication($dms, $settings); $user = $authobj->authenticate($login, $pwd); + if(!$user) { + add_log_line('Authentication against LDAP failed for user '.$login); + } } /* }}} */ /* Authenticate against SeedDMS database {{{ */