您好,我需要一些帮助来为 WSO2 ESB 设置 LDAP 用户存储:我有我的 ldap 主机:ldap://my.domain.ac.uk:389
basedndc=my,dc=domain,dc=ac,dc=uk
用户名密码:Name Surname
mypassword
我不知道如何成功配置user-mgt.xml
WSO2 ESB 的文件,我得到“
LDAPUserStoreManager Carbon cannot function without an Admin Username
DefaultRealm Cannot create org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is : null
"
我对 ldap 的配置是:
<UserStoreManager class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager">
<Property name="ReadOnly">true</Property>
<Property name="MaxUserNameListLength">100</Property>
<Property name="ConnectionURL">ldap://my.domain.ac.uk:389</Property>
<Property name="ConnectionName">cn=Name Surname,ou=Users,dc=my,dc=domain,dc=ac,dc=uk</Property>
<Property name="ConnectionPassword">mypassword</Property>
<Property name="UserSearchBase">ou=Users,dc=my,dc=domain,dc=ac,dc=uk</Property>
<Property name="UserNameListFilter">(objectClass=sAMAccountName)</Property>
<Property name="UserNameAttribute">uid</Property>
<Property name="ReadLDAPGroups">false</Property>
<Property name="GroupSearchBase">ou=Users,dc=my,dc=domain,dc=ac,dc=uk</Property>
<Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
<Property name="GroupNameAttribute">uid</Property>
<Property name="MembershipAttribute">member</Property>
<Property name="UserRolesCacheEnabled">true</Property>
<Property name="ReplaceEscapeCharactersAtUserLogin">true</Property>
</UserStoreManager>
有什么建议吗?
谢谢