[英]No module named 'ldap' has been installed on simplesamlphp
SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
Backtrace:
2 www/_include.php:17 (SimpleSAML_exception_handler)
1 vendor/symfony/error-handler/ErrorHandler.php:607 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)
0 [builtin] (N/A)
Caused by: Exception: No module named 'ldap' has been installed.
Backtrace:
8 lib/SimpleSAML/Module.php:427 (SimpleSAML\Module::resolveClass)
7 lib/SimpleSAML/Auth/Source.php:315 (SimpleSAML\Auth\Source::parseAuthSource)
6 lib/SimpleSAML/Auth/Source.php:358 (SimpleSAML\Auth\Source::getById)
5 lib/SimpleSAML/Auth/Simple.php:68 (SimpleSAML\Auth\Simple::getAuthSource)
4 lib/SimpleSAML/Auth/Simple.php:167 (SimpleSAML\Auth\Simple::login)
3 [builtin] (call_user_func_array)
2 lib/SimpleSAML/HTTP/RunnableResponse.php:72 (SimpleSAML\HTTP\RunnableResponse::sendContent)
1 vendor/symfony/http-foundation/Response.php:394 (Symfony\Component\HttpFoundation\Response::send)
0 www/module.php:10 (N/A)
I am trying to configure simplesamlphp for ldap authentication, and getting the error above.我正在尝试为 ldap 身份验证配置 simplesamlphp,并收到上述错误。 I installed and enabled php ldap module.我安装并启用了 php ldap 模块。
I also set referrals to false in /config/authsources.php
because I am trying to connect an AD Controller.我还在/config/authsources.php
中将引用设置为 false,因为我正在尝试连接 AD 控制器。
My server configurations are;我的服务器配置是;
You also need to install and enable the SSP ldap module.您还需要安装并启用 SSP ldap 模块。
To enable an installed module touch $SSP_INSTALL/module/ldap/enable
要启用已安装的模块touch $SSP_INSTALL/module/ldap/enable
If SSP ldap module is not installed, I believe you can do composer require simplesamlphp/simplesamlphp-module-ldap
如果没有安装 SSP ldap 模块,我相信你可以做composer require simplesamlphp/simplesamlphp-module-ldap
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.