LSsession::getLSuserObject(): improve errors logging

This commit is contained in:
Benjamin Renard 2021-07-07 16:27:35 +02:00
parent 3c02b94085
commit 3c6ce596d9

View file

@ -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;
}
}