微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

WSO2-IS 5.10.0 - 租户 ID 不能为 -1 - 外部 LDAP

如何解决WSO2-IS 5.10.0 - 租户 ID 不能为 -1 - 外部 LDAP

我已经配置了一个外部 ldap 并在身份服务器中创建了一个用户“ainacio@wso2.com”,现在我无法使用该用户登录身份服务器。我已授予此用户所有权限。

deployment.toml

[embedded_ldap]
enable = false

[user_store]
type = "read_write_ldap"
connection_url = "ldap://cup-openldap:389"
connection_name = "cn=admin,dc=close-upinternational,dc=com"
connection_password = "####"
....

WSO2-IS 日志:

is-as-km_1| WARN {org.wso2.carbon.core.util.AnonymousSessionUtil} - Failed to retrieve Realm for the Invalid Domain : wso2.com
is-as-km_1| ERROR {org.wso2.carbon.core.services.authentication.AuthenticationAdmin} - Invalid domain or unactivated tenant login
is-as-km_1| ERROR {org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient} - Error occurred while logging in java.lang.IllegalStateException: Tenant ID cannot be -1

我可以在 ldap 服务器上看到在 indentiy 服务器中创建的用户,但我无法登录 :(.

解决方法

我需要让租户在 deployment.toml 上使用电子邮件域:

[tenant_mgt]
enable_email_domain= true

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。