Forums | Mahara Community

Support /
Your current SimpleSAMLPHP library version is out of date.


Andi Becker's profile picture
Posts: 68

30 June 2021, 16:10

We receive that error now in 21.04.2-testing

Your current SimpleSAMLPHP library version is out of date. You need to run "make cleanssphp && make ssphp".

When we enter "make cleanssphp && make ssphp" in th Mahara root directory it gives out the error:
make cleanssphp && make ssphp
make: *** No rule to make target 'cleanssphp'. Stop.

So how to get rid of that error?

How does the complete "run" command look like incl' that path it is asking for and from which folder it needs to get executed via ssh?

Robert Lyon's profile picture
Posts: 762

01 July 2021, 10:08

Hi Andi,

I'm assuming because you see that message it means you've installed the site using 'git' is that correct?

If so there should be a Makefile file in the root directory as seen here -> https://git.mahara.org/mahara/mahara/-/blob/master/Makefile#L113

And that line highlighted mentions that the version of SimpleSamlPhp you need is version 1.19.1

If you have installed the site via zip file extraction then can I get you to look on the Administration -> Overview page to see if there is an upgrade waiting for the Auth Saml plugin?

Also if you check the file at htdocs/auth/saml/extlib/simplesamlphp/lib/SimpleSAML/Configuration.php (if it exists) that it's version is 1.19.1

If there is no upgrade to run for the auth saml plugin you can always manually update the database to reflect the correct value, find it via:

 SELECT value FROM auth_config WHERE plugin = 'saml' AND field = 'version';

Then if incorrect update via:

 UPDATE auth_config SET value = '1.19.1' WHERE plugin = 'saml' AND field = 'version';

Cheers

Robert

 

 

Andi Becker's profile picture
Posts: 68

01 July 2021, 14:53

Thanks Robert it worked but updating was a bit a headache.

similar to here
https://github.com/composer/composer/issues/9529

I reported the problem 
https://bugs.launchpad.net/mahara/+bug/1934212

After I updated the external/composer.json file accordingly like mentioned in the report it ran through and actually updated the saml files but than again reported the next 3 errors like mentioned and here the update did not help in the other composer.json file. Probably there are even more composer.json files somewhere else which need to get updated too.

I checked the database and the correct 1.19.1 version gets recognized and mentioned.

But when checking inside Mahara as you mentioned we receive an error on
https://montessori.contact/admin/extensions/pluginconfig.php?plugintype=auth&pluginname=saml

Montessori Contact: Site Unavailable

The session save handler "file" is not supported in Mahara.


The error appears even the site is running just fine actually




Andi

Robert Lyon's profile picture
Posts: 762

02 July 2021, 10:09

Hi Andi,

The session handler for the site can be set to 'file' and this is adequate for internal logins where a site is on a stand alone instance.

But for working with SAML and / or if the site is on a load-balanced cluster then there needs to be a central session handler independent of the site otherwise session problems occur.

See the config defaults for more information

https://git.mahara.org/mahara/mahara/-/blob/master/htdocs/lib/config-defaults.php#L743

On sites that I handle we go with setting up a redis server to connect to - on my test machine I just use redis installed on same machine as the website.

Cheers

Robert

4 results