simplesamlphp_dir setting doesn't seem to working

Created on 1 December 2023, 7 months ago

Problem/Motivation

I get the following error when using $settings['simplesamlphp_dir'] to specify the location of the SimpleSamlPhp installation:

There is a Simplesamlphp configuration problem. The configuration (config/config.php) is invalid: Missing configuration file

Steps to reproduce

Setup and configure a separate install of SimpleSamlPhp.
Set the path of the installation folder in the settings.php file as $settings['simplesamlphp_dir'] = '/path/goes/here';
Load up the admin page and you will see the error above near the top of the page.

This was working fine in the Drupal 9 version.

πŸ› Bug report
Status

Closed: works as designed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States KenKodz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @KenKodz
  • πŸ‡ΊπŸ‡ΈUnited States KenKodz

    I think I found the root cause.

    SimplesamlphpAuthManager.php::checkLibrary() loads the instance's /lib/_autoload.php. However, that file is blank.

    This may mean that SimpleSamlPhp v2.1.1 is broken somewhere, but I haven't dug that far yet.

    I can say that if you replace line 342 of SimplesamlphpAuthManager.php like below, everything seems to work properly in this module.

    Old

          include_once $dir . '/lib/_autoload.php';
    

    New

          include_once $dir . '/vendor/autoload.php';
    
  • πŸ‡ΊπŸ‡ΈUnited States KenKodz

    After looking at the SimpleSamlPhp Slack, and then at the files in the download, it appears that this is an issue with extracting the files in Windows and it not creating the symlink for src/_autoload.php to lib/_autoload.php.

    I hope this at least helps someone else in the future (most likely me). LOL

  • Status changed to Closed: works as designed 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States KenKodz
Production build 0.69.0 2024