PDA

View Full Version : Unable to see users for assigning permissions in User Permissions Metadata Editor



vinitkini
06-11-2008, 01:08 AM
I have set custom database based authentication.

Set the security context to JDBC and provided related details.

I am using the login present in the Users table in that database and confirmed the credentials are picked from that table.

However when I try to run http://localhost:8080/pentaho/serviceaction, provide user credentials, it returns an empty list of users/roles/acls in the XML.

Similarly when I try to assign User permissions for the Physical table, in the User permission screen I do not see any users.

Does anyone know, what step I have missed, due to which the user list does not appear?:confused:

MattCasters
06-16-2008, 02:53 PM
The security service of the Pentaho platform needs to give back the ACLs in this format:


<content>
<users>
<user>tiffany</user>
<user>joe</user>
<user>suzy</user>
<user>pat</user>
<user>admin</user>
</users>
<roles>
<role>ROLE_DEV</role>
<role>ROLE_AUTHENTICATED</role>
<role>ROLE_IS</role>
<role>ROLE_ADMIN</role>
<role>ROLE_DEVMGR</role>
<role>ROLE_CEO</role>
<role>ROLE_CTO</role>
</roles>

<acls>
<acl> <name>Create</name> <mask>4</mask> </acl>
<acl> <name>Subscribe</name> <mask>2</mask> </acl>
<acl> <name>Update</name> <mask>8</mask> </acl>
<acl> <name>Execute</name> <mask>1</mask> </acl>
<acl> <name>NONE</name> <mask>0</mask> </acl>
<acl> <name>All</name> <mask>31</mask> </acl>
<acl> <name>Delete</name> <mask>16</mask> </acl>
</acls>

</content>


See also: samples/content-acl.txt

HTH,

Matt