Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record Security

Status
Not open for further replies.

Naith

Programmer
May 14, 2002
2,530
GB
Hi,

Does DB2 have record security functionality?

An example of my situation goes like this: I have two rival clients operating within the same industry for seperate companies - Jay, client 1, and Bob, client 2.

Information pertinent to Jay and Bob is kept on the database, but is sensitive - so Bob should not see Jay's data, or vice versa.

I want to stick a front end application onto the DB2 backend, but without using seperate views for individual clients - as there are potentially loads. Jay and Bob will both use the same application armed with their client_ids for security.

Is there a way to ensure record security on a client_id level but keep the datasource generic for everyone, so there's only a need to roll out one application rather than slight variations of the same product?

Naith
 
The whole concept of views supports exactly what you want. By giving certain users access to views you can shield data between users. I stand to be corrected, but the security at DB level relates to tables and views , not on individual records..

T. Blom
Information analyst
tbl@shimano-eu.com
 
I'm hoping to stay away from views, otherwise I'll be faced with rolling out as many front end objects as there are views; in essence one application object and one view for every client.

Based on the sheer number of clients, this isn't feasible. It needs to be a solution focused on one generic datasource so that it can support one front end application object which is utilised by everyone.

Naith
 
Naith,

you could always store client id on your DB2 rows. This way the front end can pass it in and you can add it as an extra predicate in your SELECT statement.

Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top