OCSInventory-NG / OCSInventory-ocsreports

Webconsole for OCS Inventory NG
https://www.ocsinventory-ng.org
GNU General Public License v2.0
230 stars 151 forks source link

[BUG] CAS error #925

Closed fjcobo closed 3 years ago

fjcobo commented 4 years ago

Version : 2.7

When CAS login is configured, the following error is obtained:

PHP Fatal error: Uncaught Error: Class 'phpCas' not found in /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/cas.php:24\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/auth.php(59): require_once()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(319): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n thrown in /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/cas.php on line 24

To reproduce:

fjcobo commented 4 years ago

I was able to solve it by adding some missing references.

LANFDETROY commented 4 years ago

Hello,

I have the same problem. How did you solve the problem?

fjcobo commented 4 years ago

Hi,

In ocsreports/var.php: define('PHPCAS', DIR . '/vendor/jasig/phpcas/CAS.php');

In ocsreports/backend/AUTH/methode/cas.php require_once(PHPCAS);

The rest are configured the same as in previous versions.

LANFDETROY commented 4 years ago

ok thank you

Blank-Vcf commented 4 years ago

did you use cas + ldap ? i'm looking for a working configuration since many years; ldap is currently working but cannot combine with cas.

fjcobo commented 4 years ago

did you use cas + ldap ? i'm looking for a working configuration since many years; ldap is currently working but cannot combine with cas.

No, I'm using LDAP on CAS server side.

gillesdubois commented 3 years ago

Hi,

The method you were using is not used anymore since we reworked the auth methods. Php-CAS is not bundled anymore in OCS and need to be installed on the system.

Regards, Gilles.