You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-08-22 15:05:07

maximice
Member
Registered: 2018-08-22
Posts: 8

CAS extension test

Hello,

When making the GLPI configuration I get:

CAS extension test CAS extension is not present
Does anyone know how to activate it?
You have to activate it in PHP?


Thank you

Offline

#2 2018-08-22 18:04:49

machadomall
Member
From: Brazil, Brasilia, DF
Registered: 2011-10-30
Posts: 208

Re: CAS extension test

Hello,
What is your Operating System?

If it is linux Debian or Centos.

Centos
# yum -y install php-cas

Debian
# apt install php-cas

Att,


Márcio Machado
Brasília-DF / Brasil

Offline

#3 2018-08-23 08:59:07

maximice
Member
Registered: 2018-08-22
Posts: 8

Re: CAS extension test

Hola,

El sistema es windows server 2012 R2


Gracias

Offline

#4 2018-08-23 09:11:59

orthagh
Administrator
From: TECLIB - CAEN
Registered: 2010-11-30
Posts: 662
Website

Re: CAS extension test

If you don't use CAS authentication, you can click on continue button, it's an optional dependency.

If you really need it on windows, the most easy way to install the lib is to have composer tool installed (see https://getcomposer.org/doc/00-intro.md … n-windows)
And with cmd, in glpi folder, just run:

composer require jasig/phpcas

Offline

#5 2018-08-24 12:47:12

maximice
Member
Registered: 2018-08-22
Posts: 8

Re: CAS extension test

Hi,

I have performed the steps indicated and I have called composer.


Now when accessing the localhost I get the following message:

Run "composer install --no-dev" in the glpi tree.
To install composer please refer to https://getcomposer.org/


That I have to do?
Thanks

Offline

#6 2018-08-24 14:16:03

orthagh
Administrator
From: TECLIB - CAEN
Registered: 2010-11-30
Posts: 662
Website

Re: CAS extension test

Could you check the presence of the file composer.lock in glpi folder and if exists remove it

Offline

#7 2018-08-24 16:41:00

maximice
Member
Registered: 2018-08-22
Posts: 8

Re: CAS extension test

Hi,

I have deleted the file composer.lock.

Now the whole test is ok, but I do not see how to continue, it stays on that screen?

Offline

#8 2018-08-27 08:31:13

orthagh
Administrator
From: TECLIB - CAEN
Registered: 2010-11-30
Posts: 662
Website

Re: CAS extension test

Coud you do a screenshot ?

Offline

#9 2018-08-27 09:42:24

maximice
Member
Registered: 2018-08-22
Posts: 8

Re: CAS extension test

How can I upload a screenshot to the forum?

I do not see how I can do it.

Offline

#10 2018-08-27 09:47:22

orthagh
Administrator
From: TECLIB - CAEN
Registered: 2010-11-30
Posts: 662
Website

Re: CAS extension test

use an external tool, like https://snag.gy/ and post the link

Offline

#11 2018-08-27 09:50:20

maximice
Member
Registered: 2018-08-22
Posts: 8

Re: CAS extension test

Offline

#12 2018-08-28 08:59:06

orthagh
Administrator
From: TECLIB - CAEN
Registered: 2010-11-30
Posts: 662
Website

Re: CAS extension test

Files to delete also if presents:
- composer.json
- .composer.hash

and retest.


Here is the full tutorial to install phpcas on windows server (as i did it entirely myself this morning):
- install composer on your windows (https://getcomposer.org/Composer-Setup.exe)
- in glpi folder, with cmd, do

composer require jasig/phpcas

- if you are using an official archive (for development skip this step), remove composer.json, composer.lock and .composer.hash (this one should be already not present) files.
- Extension is installed and should be detected by GLPI

Offline

#13 2018-08-28 09:49:30

maximice
Member
Registered: 2018-08-22
Posts: 8

Re: CAS extension test

when installing composer I get the following error:

Program Output:
PHP Warning: PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension = php_opcache.dll from php.ini) in Unknown on line 0


Inside the file php.ini I have the extension activated:

[opcache]

zend_extension = "C: \ Program Files (x86) \ PHP \ v7.2 \ ext \ php_opcache.dll"

[PHP_OPCACHE]
extension = php_opcache.dll

Offline

#14 2018-08-28 10:17:08

orthagh
Administrator
From: TECLIB - CAEN
Registered: 2010-11-30
Posts: 662
Website

Re: CAS extension test

i think it's not relative to phpcas.

But, try to comment the zend_extension line (one issue at a time)

Offline

#15 2018-09-26 07:55:34

neokailas
Member
Registered: 2018-09-26
Posts: 3

Re: CAS extension test

How can install CAS extension in xampp
check the attached image CAS Extension Issue

Offline

#16 2018-09-27 06:03:07

neokailas
Member
Registered: 2018-09-26
Posts: 3

Re: CAS extension test

neokailas wrote:

How can install CAS extension in xampp
check the attached image CAS Extension Issue

Offline

#17 2018-09-27 08:59:59

orthagh
Administrator
From: TECLIB - CAEN
Registered: 2010-11-30
Posts: 662
Website

Re: CAS extension test

Your link is private and you can check my post above in this topic to know how to install cas in GLPI 9.3 with Xampp

Offline

#18 2018-09-28 08:37:43

neokailas
Member
Registered: 2018-09-26
Posts: 3

Re: CAS extension test

orthagh wrote:

Files to delete also if presents:
- composer.json
- .composer.hash

and retest.


Here is the full tutorial to install phpcas on windows server (as i did it entirely myself this morning):
- install composer on your windows (https://getcomposer.org/Composer-Setup.exe)
- in glpi folder, with cmd, do

composer require jasig/phpcas

- if you are using an official archive (for development skip this step), remove composer.json, composer.lock and .composer.hash (this one should be already not present) files.
- Extension is installed and should be detected by GLPI

Thanks. I've installed the CAS extension thsi solution.

Offline

#19 2018-09-28 10:19:43

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: CAS extension test

Notice: CAS library is optional.

Most users don't need it.


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#20 2019-01-27 12:29:05

maryon
Member
Registered: 2019-01-27
Posts: 1

Re: CAS extension test

Hello
found the package in the fedora repositories installing as follows:

 yum -y install  php-pear-CAS

Offline

Board footer

Powered by FluxBB