0
votes

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?

1

1 Answers

0
votes

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>