Hello !
I have a probleme with my media wiki, I try to config a SSO with SimpleSAMLphp and PluggableAuth, but I have this error message :
"Warning: require_once(/wiki/extensions/SimpleSAMLphp/lib/_autoload.php): failed to open stream: No such file or directory in /var/www/html/extensions/SimpleSAMLphp/includes/SimpleSAMLphp.php on line 204
Fatal error: require_once(): Failed opening required '/wiki/extensions/SimpleSAMLphp/lib/_autoload.php' (include_path='/var/www/html/vendor/pear/console_getopt:/var/www/html/vendor/pear/mail:/var/www/html/vendor/pear/mail_mime:/var/www/html/vendor/pear/net_smtp:/var/www/html/vendor/pear/net_socket:/var/www/html/vendor/pear/pear-core-minimal/src:/var/www/html/vendor/pear/pear_exception:.:/usr/local/lib/php') in /var/www/html/extensions/SimpleSAMLphp/includes/SimpleSAMLphp.php on line 204"
I run in Linux.
The version of my Mediawiki is 1.33, the extensions too and SimpleSAMLphp version is 1.17.
here is my LocalSettings.php :
#Other Extensions
wfLoadExtension( 'SimpleSAMLphp' );
wfLoadExtension( 'PluggableAuth' );
#
# #Configuration of SimpleSAML
$wgSimpleSAMLphp_InstallDir = '/wiki/extensions/SimpleSAMLphp/';
$wgSimpleSAMLphp_AuthSourceId = 'default-sp';
$wgSimpleSAMLphp_RealNameAttribute = "givenName";
$wgSimpleSAMLphp_EmailAttribute = "mail";
$wgSimpleSAMLphp_UsernameAttribute = "uid";
#
# #Configuration of PluggableAuth
$wgPluggableAuth_EnableAutoLogin = true;
$wgPluggableAuth_EnableLocalLogin = false;
$wgPluggableAuth_EnableLocalProperties = false;
$wgPluggableAuth_ButtonLabelMessage = "Log In";
$wgPluggableAuth_ButtonLabel = "Log In";
$wgPluggableAuth_Class = "SimpleSAMLphp";
#
And here the configuration fo SimpleSAMLphp.php (I would like to say that I change nothing in here) :
private static function getSAMLClient() {
// Make MW core `SpecialPageFatalTest` pass
if ( defined( 'MW_PHPUNIT_TEST' ) ) {
return new MediaWiki\Extension\SimpleSAMLphp\Tests\Dummy\SimpleSAML\Auth\Simple();
}
require_once rtrim( $GLOBALS['wgSimpleSAMLphp_InstallDir'], '/' )
. '/lib/_autoload.php';
$class = 'SimpleSAML_Auth_Simple';
if ( class_exists( 'SimpleSAML\Auth\Simple' ) ) {
$class = 'SimpleSAML\\Auth\\Simple';
}
return new $class( $GLOBALS['wgSimpleSAMLphp_AuthSourceId'] );
}
I don't want to press, but it is an urgent problem that I must solve quickly...
Thanks a lot for your help !
Have a nice day !