Really struggling to find a solution for this problem. I am trying to configure my simpleSAMLphp server to use LDAP for authentication, but am getting exceptions originating from the ‘ldap’ module.
My definition of the LDAP authentication source in the authsources.php, looks like the following:
'ldapauth' => [
'ldap:LDAP',
'hostname' => 'ldap.saml.com',
'port' => 389,
...
],
Apparently, 'ldap:LDAP' triggers the exception to occur, the module can not be found. PHP shows the module as enabled.
SimpleSAMLErrorError: UNHANDLEDEXCEPTION
Backtrace:
2 public/_include.php:28 (SimpleSAML_exception_handler)
1 vendor/symfony/error-handler/ErrorHandler.php:607 (SymfonyComponentErrorHandlerErrorHandler::handleException)
0 [builtin] (N/A)
Caused by: Exception: No module named 'ldap' has been installed.
Backtrace:
8 src/SimpleSAML/Module.php:446 (SimpleSAMLModule::resolveClass)
7 src/SimpleSAML/Auth/Source.php:315 (SimpleSAMLAuthSource::parseAuthSource)
6 src/SimpleSAML/Auth/Source.php:358 (SimpleSAMLAuthSource::getById)
5 src/SimpleSAML/Auth/Simple.php:67 (SimpleSAMLAuthSimple::getAuthSource)
4 src/SimpleSAML/Auth/Simple.php:156 (SimpleSAMLAuthSimple::login)
3 [builtin] (call_user_func_array)
2 src/SimpleSAML/HTTP/RunnableResponse.php:72 (SimpleSAMLHTTPRunnableResponse::sendContent)
1 vendor/symfony/http-foundation/Response.php:394 (SymfonyComponentHttpFoundationResponse::send)
0 public/module.php:14 (N/A)