简体   繁体   English

WSO2 API管理器:ActiveDirectory作为第二个用户存储

[英]WSO2 API manager: ActiveDirectory as second user store

I have create my configuration file for the second user store here: /opt/wso2am-1.7.0/repository/deployment/server/userstores i named it with the name of my domain (sub_dom_local.xml my domain is sub.dom.local) and I set as primary user store a jdbc store. 我在这里为第二个用户存储创建了配置文件:/opt/wso2am-1.7.0/repository/deployment/server/userstores我用我的域名称将其命名(sub_dom_local.xml,我的域是sub.dom.local ),然后将jdbc存储设置为主要用户存储。 When I try to login with a domain user name I obtain this error: [2014-06-25 10:48:39,828] ERROR - System error while Authenticating/Authorizing User : [Ljava.lang.Object; 当我尝试使用域名用户名登录时,出现以下错误:[2014-06-25 10:48:39,828]错误-验证/授权用户时发生系统错误:[Ljava.lang.Object; cannot be cast to [Ljava.lang.String; 无法转换为[Ljava.lang.String; {org.wso2.carbon.core.services.authentication.AuthenticationAdmin} {} org.wso2.carbon.core.services.authentication.AuthenticationAdmin

I am sure than I have insert the correct username and password, I enabled the debug loggr and I see in the log that the Authentication procedure connected to the Active directory and retrieve all the information. 我可以确定输入了正确的用户名和密码,启用了调试日志记录,并且在日志中看到身份验证过程已连接到Active Directory,并检索了所有信息。 If I insert a wrong password i do not have the error but I have the information for the wrong password. 如果我输入了错误的密码,我没有错误,但是我得到了错误密码的信息。 Could you help me? 你可以帮帮我吗? Thanks Jack 谢谢杰克

When the ActiveDirectoryUserStoreManager is enabled it seems we need to enable GetAllRolesOfUserEnabled property in Authorization manager as follows in user manager configuration 启用ActiveDirectoryUserStoreManager后,似乎我们需要在授权管理器中启用GetAllRolesOfUserEnabled属性,如下所示:

`<AuthorizationManager class="org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager">
<Property name="AdminRoleManagementPermissions">/permission</Property>
<Property name="AuthorizationCacheEnabled">true</Property>
<Property name="GetAllRolesOfUserEnabled">true</Property>
</AuthorizationManager>

` `

Otherwise it is throwing the exception you have mentioned. 否则,它将引发您提到的异常。

Try this configuration: 试试这个配置:

<UserStoreManager class="org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager">
...
 <Property name="MemberOfAttribute"/>
...
</UserStoreManager>

You do not specify the MemberOfAttribute. 您没有指定MemberOfAttribute。 Matteo 马特奥

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM