【问题标题】:No module named 'ldap' has been installed on simplesamlphpsimplesamlphp 上没有安装名为“ldap”的模块
【发布时间】:2021-12-08 05:08:18
【问题描述】:
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)

我正在尝试为 ldap 身份验证配置 simplesamlphp,并收到上述错误。我安装并启用了 php ldap 模块。

我还在 /config/authsources.php 中将引用设置为 false,因为我正在尝试连接 AD 控制器。

我的服务器配置是;

  • Ubuntu 20.04 服务器
  • SimpleSAMLphp 1.19.1
  • PHP 7.4.3

【问题讨论】:

    标签: php ldap simplesamlphp


    【解决方案1】:

    您还需要安装并启用 SSP ldap 模块。

    启用已安装的模块 touch $SSP_INSTALL/module/ldap/enable

    如果没有安装SSP ldap模块,相信你可以做到composer require simplesamlphp/simplesamlphp-module-ldap

    【讨论】:

    • 我创建了“启用”文件。不用找了。我还运行了作曲家要求。还是一样。
    猜你喜欢
    • 2015-01-21
    • 2018-10-10
    • 2018-01-05
    • 2020-10-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-27
    相关资源
    最近更新 更多