When using a ReadOnlyLDAP as the Primary User Store I saw error [Ljava.lang.Object; cannot be cast to [Ljava.lang.String; in the logs when trying to authenticate the admin user.
Any fix?
Solution was to add GetAllRolesOfUserEnabled
property to AuthorizationManager
in user-mgt.xml
:
<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>