Jump to content
JasperReports Library 7.0 is now available ×

Domain Row Based Security Based on User Role (from LDAP)


andyskinner

Recommended Posts

Hi,

I need to implement Row level security in a Jasper Domain using the ROLEs that a user is in.  I have a set of users coming from an LDAP source, who are in a set of roles (ROLE_A, ROLE_B etc).  These are coming through into JRS ok.  Now I now need to implement a domain security file based on the role values.  Effectively what I want it to implement in SQL(ish) syntax is;

WHERE person.jasper_role_name IN ({The list of the roles the user is in in JRS})

So I will only get rows from the person table where the logged in user is in the relevant role.

I have looked through the documentation but can`t find a specific example for row based security using roles (it`s all using attributes).

Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...