Your assumption is correct.

I have already attempted the approach # 1.  The result of which, the LF
is a pointer to data that exists in a file that I am not authorized to.
Did I miss something?

Approach #2, part of the requirement is we want to use 3rd party ad-hoc
query tools which would not work with stored procedures

-----Original Message-----
From: Buck Calabro []
Sent: Friday, October 04, 2002 7:08 AM
Subject: RE: [Security400] Row level security

> This is what we want to do
> * One database
> * Most users (Companies) cannot view
>    each others information
> * Select users can view the entire database
> * Access to the files happens via all available
>   interfaces (i.e. not just green screen)

While the subject says 'row level security', the description sounds more
like you want to segregate Company A's data from Company B's users, etc.
Going on that assumption, the classic way to use OS/400 security to do
is to make AUT(*EXCLUDE) on the current PF and create an LF for each
company.  Grant authorised users authority to the logical (company) they
see, and OVRDBF after your selection to point to the 'right' one.

This presumes that user Buck doesn't need to see records from company A,
and C at the same time, but he can see them one after the other, viz.
A, CHKOBJ, OVRDBF, see A.  Select B, see B.

Another way is to restrict all authority to the PF and create an API
all code must call in order to read the data.  The API validates that
user is able to access the record she is requesting.  That API can be
implemented as a stored procedure for the ODBC/SQL people, or as Scott
notes, a read trigger for V5R1.  That eliminates bulk transfers like FTP
Client Access.  The good thing about stored procedures on our platform
that the SP is an HLL program.  So the same program can serve green
or SQL clients.

This is the Security Administration on the AS400 / iSeries (Security400)
mailing list
To post a message email:
To subscribe, unsubscribe, or change list options,
or email:
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.