【问题标题】:Enable saml in Webshere Liberty在 Websphere Liberty 中启用 saml
【发布时间】:2019-12-11 02:55:47
【问题描述】:

在 Liberty 服务器中启用 saml 是否需要此命令?

bin/installUtility install samlWeb-2.0

我在 server.xml 中配置了<feature>samlWeb-2.0</feature>,并且能够使用 url https://ip:port/ibm/saml20/defaultSP/samlmetadata 获取元数据文件

【问题讨论】:

    标签: saml-2.0 websphere-liberty


    【解决方案1】:

    <feature>samlWeb-2.0</feature> 启用了该功能,但您无法启用您没有的功能,这就是bin/installUtility 的作用(如有必要)。

    Liberty 在多个包中提供,这些包决定了哪些功能集/子集在安装后立即可用(也可以创建 Liberty 的自定义包以进一步自定义运行时可用的功能集)。之后可以使用bin/installUtility 安装软件包中未包含的功能(bin/featureManager 已被弃用)。

    如果您的 Liberty 运行时中尚未安装 samlWeb-2.0 功能部件,则命令 bin/installUtility install samlWeb-2.0 检索(从存储库)并安装它。例如,如果 Liberty 包只是 Liberty 内核的包,那么bin/installUtility install samlWeb-2.0 将下载 samlWeb-2.0 功能以及所有其他 pre-req 功能。但是,如果您的 Liberty 软件包是整个 Base 版本 (wlp-base-all) 的软件包,那么它将已经包含 samlWeb-2.0 功能,并且您无需在启用它之前运行bin/installUtility

    【讨论】:

    • 因为我可以使用 url ip:port/ibm/saml20/defaultSP/samlmetadata 获取元数据文件,所以我不需要使用 installUtility。请确认。
    • 正确,您的 Liberty 运行时已经具有可用的功能。如果不是,那么在服务器启动时,您会看到一条关于 samlWeb-2.0 功能不可用的消息:CWWKF0042E: A feature definition cannot be found for the samlweb-2.0 feature. Try running the command, bin/installUtility install samlweb-2.0, to install the feature. Alternatively, you can run the command, bin/installUtility install defaultServer, to install all features that are referenced by this configuration.
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-08
    • 2017-04-01
    相关资源
    最近更新 更多