Freshly installed SimpleSAML2, can't log in to the Admin section.

12 views
Skip to first unread message

Selulí Casta

unread,
Jul 28, 2025, 3:33:25 AMJul 28
to SimpleSAMLphp
I just set the config.php and the authsources, and I can't access the admin section at https://URL/simplesaml/admin . The error I get is 

Jul 28 08:32:03 simplesamlphp ERROR [931419781c] SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] Backtrace:
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] 2 /var/www/html/correo.juntadeandalucia.es/simplesamlphp/public/_include.php:28 (SimpleSAML_exception_handler)
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] 1 /var/www/html/correo.juntadeandalucia.es/simplesamlphp/vendor/symfony/error-handler/ErrorHandler.php:607 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] 0 [builtin] (N/A)
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] Caused by: SimpleSAML\Error\Exception: Authsource must be of type saml:SP.
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] Backtrace:
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] 5 /var/www/html/correo.juntadeandalucia.es/simplesamlphp/modules/saml/src/Controller/ServiceProvider.php:119 (SimpleSAML\Module\saml\Controller\ServiceProvider::login)
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] 4 /var/www/html/correo.juntadeandalucia.es/simplesamlphp/vendor/symfony/http-kernel/HttpKernel.php:163 (Symfony\Component\HttpKernel\HttpKernel::handleRaw)
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] 3 /var/www/html/correo.juntadeandalucia.es/simplesamlphp/vendor/symfony/http-kernel/HttpKernel.php:75 (Symfony\Component\HttpKernel\HttpKernel::handle)
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] 2 /var/www/html/correo.juntadeandalucia.es/simplesamlphp/vendor/symfony/http-kernel/Kernel.php:202 (Symfony\Component\HttpKernel\Kernel::handle)
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] 1 /var/www/html/correo.juntadeandalucia.es/simplesamlphp/src/SimpleSAML/Module.php:234 (SimpleSAML\Module::process)
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] 0 /var/www/html/correo.juntadeandalucia.es/simplesamlphp/public/module.php:14 (N/A)
Jul 28 08:32:03 simplesamlphp ERROR [931419781c] Error report with id b97f7ba2 generated.
Jul 28 08:32:03 simplesamlphp DEBUG [931419781c] Localization: load domain 'messages' at '/var/www/html/correo.juntadeandalucia.es/simplesamlphp/locales'
Jul 28 08:32:03 simplesamlphp DEBUG [931419781c] Trying langpath for 'es' as '/var/www/html/correo.juntadeandalucia.es/simplesamlphp/locales/es/LC_MESSAGES/'

I don't understand why it should be "of type Saml:SP" to access the admin section. Authsources is pretty much the default file:

<?php

$config = [
    'admin' => [
        // The default is to use core:AdminPassword, but it can be replaced with
        // any authentication source.

        'core:AdminPassword',
    ],


    // An authentication source which can authenticate against SAML 2.0 IdPs.
    'default-sp' => [
        'saml:SP',
        'entityID' => 'XXXXXXX',
        'idp' => 'https://YYYYYYY',
        'discoURL' => null,
        'proxymode.passAuthnContextClassRef' => false,

    ]
];

Any help would be welcome. I have to update a very old (yet working) SimpleSamlp 1.11 installation and I can't get past the 1st step.

Tim van Dijen

unread,
Jul 28, 2025, 8:07:30 AMJul 28
to SimpleSAMLphp
Hi Nathan,

The admin-section is at /simplesaml/module.php/admin

- Tim

Op maandag 28 juli 2025 om 09:33:25 UTC+2 schreef nathan.a...@gmail.com:
Reply all
Reply to author
Forward
0 new messages