From 3c6ce596d925159fdcc6696db3b5f6bb03b48ef2 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 7 Jul 2021 16:27:35 +0200 Subject: [PATCH] LSsession::getLSuserObject(): improve errors logging --- src/includes/class/class.LSsession.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/includes/class/class.LSsession.php b/src/includes/class/class.LSsession.php index ae5b8213..df45a108 100644 --- a/src/includes/class/class.LSsession.php +++ b/src/includes/class/class.LSsession.php @@ -1141,10 +1141,12 @@ class LSsession { self :: $LSuserObject = new self :: $LSuserObjectType(); if (!self :: $LSuserObject -> loadData(self :: $dn)) { self :: $LSuserObject = null; + self :: log_error("getLSuserObject($dn): Fail to retrieve current connected user information from LDAP"); return; } } else { + self :: log_error("getLSuserObject($dn): Current connected user object type not defined or can not be loaded (".self :: $LSuserObjectType.")"); return; } }