WSO2IS-禁用嵌入式LDAP-deployment.toml
如何在Identity Server 5.10.0版本上禁用嵌入式Ldap?我正在检查conf/identity/embedded-ldap.xml,并且enable属性为trueWSO2IS-禁用嵌入式LDAP-deployment.toml,wso2,wso2is,Wso2,Wso2is,如何在Identity Server 5.10.0版本上禁用嵌入式Ldap?我正在检查conf/identity/embedded-ldap.xml,并且enable属性为true <EmbeddedLDAP> <Property name="enable">true</Property> <Property name="port">${Ports.EmbeddedLDAP.LDAPSer
<EmbeddedLDAP>
<Property name="enable">true</Property>
<Property name="port">${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
<Property name="instanceId">default</Property>
.....
真的
${Ports.EmbeddedLDAP.LDAPServerPort}
违约
.....
我找不到如何禁用。如果我在docker启动时覆盖此文件,则返回true。在WSO2 Identity Server 5.10.0中,配置由一个名为部署.toml的集中化toml文件管理。我们可以将以下配置添加到deployment.toml文件中,该文件位于/repository/conf目录中
[embedded_ldap]
enable = false
/repository/resources/conf/templates/repository/conf/identity/embedded ldap.xml.j2
文件,并且它是下的启用
属性值被模板化为{embedded_ldap.enable}
(如下所示)
/repository/resources/conf/templates/repository/conf/identity/embedded ldap.xml.j2
文件包含embedded ldap
配置的enable
属性值硬编码为“true”,则可以将其更改为false,并重新启动服务器以更改embedded ldap.xml
中的配置
真的
${Ports.EmbeddedLDAP.LDAPServerPort}
违约
.....
/repository/resources/conf/templates/repository/conf/identity/embedded ldap.xml.j2
文件,则服务器重新启动后,embedded ldap.xml
中的属性值更改不会被替换在WSO2 Identity Server 5.10.0版本中,文件
embedded ldap.xml.j2
不在内部wso2is-5.10.0/repository/resources/conf/templates/repository/conf/identity
因此我需要从这个链接复制文件:并将docker容器的配置conf/is作为km/repository/resources/conf/templates/repository/conf/identity
docker-compose.yml
...
volumes:
- ./conf/is-as-km:/home/wso2carbon/wso2-config-volume
ports:
- "9444:9443"
...
之后,我将属性放入deployment.toml中:
[embedded_ldap]
enable = false
一切都如docker日志所示:
cup-is-as-km ... NFO {org.wso2.carbon.identity.oauth.uma...} - UMA Grant component activated successfully.
cup-is-as-km ... INFO {org.wso2.carbon.ldap.server.DirectoryActivator} - Embedded LDAP is disabled.
cup-is-as-km ... INFO {org.wso2.carbon.mex.internal.Of...} - Office365Support MexServiceComponent bundle activated successfully..
根据最后的回答和评论,我得出了解决方案;) 它不起作用,它使属性enable为true。您在wso2文档中的何处找到此属性?因为我在任何地方都找不到。你在使用从下载的docker图像吗?你能在
/repository/resources/conf/templates/repository/conf/identity
位置看到名为embedded ldap.xml.j2
的文件吗?我正在使用从wso2网站下载的wso2is-5.10.0.zip创建自己的docker映像。我在docker compose@Anuradha Karunarathna中使用的conf目录中有这个identity.xml.j2文件。你有/repository/resources/conf/templates/repository/conf/identity/embedded ldap.xml.j2
文件吗?是的,我有@Anuradhakarunarathnai,如果它包含{embedded_ldap.enable}}
在
下,您可以使用[embedded_ldap]enable=false
配置通过deployment.toml更改该属性。我没有嵌入此文件-ldap.xml.j2。我正在查看identity.xml.j2:(.我可以在我的项目中找到什么地方?可以在这里找到特定的文件。它在5.10 GA包中不可用。它已随5.11一起在产品中提供。我不确定添加此文件是否对您有效。提到的第三个选项应该有效。如果您没有该j2文件,请在repository/conf/identity/embedded ldap中进行更改.xml不应在服务器启动时被覆盖
...
volumes:
- ./conf/is-as-km:/home/wso2carbon/wso2-config-volume
ports:
- "9444:9443"
...
[embedded_ldap]
enable = false
cup-is-as-km ... NFO {org.wso2.carbon.identity.oauth.uma...} - UMA Grant component activated successfully.
cup-is-as-km ... INFO {org.wso2.carbon.ldap.server.DirectoryActivator} - Embedded LDAP is disabled.
cup-is-as-km ... INFO {org.wso2.carbon.mex.internal.Of...} - Office365Support MexServiceComponent bundle activated successfully..