× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



What you've done should work: libraries marked *public *exclude should not show up in the list, nor should any files within the library.

Take a look at the user profile itself (DSPUSRPRF). Make sure it doesn't have any special authorities like *ALLOBJ. Make sure it is not part of any other groups that DO have authority.

Make sure JTOpen is actually using the user you think it using. When your connection is open, do WRKOBJLCK USRNAM *USRPRF where USRNAM is the user name. This should yield a list of active QZDASOINIT jobs. Check the job log of those jobs and see that the user profile for the job is switched from QUSER, which is how they start, to the user profile you expect.

JTOpen has always insisted that the user name and password be in the connection url and has always ignored any attempts to set the user id and password from JDBC classes. Check your usage.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of BButterworth@xxxxxxxxxxxxxx
Sent: Friday, February 08, 2013 2:07 PM
To: java400-l@xxxxxxxxxxxx
Subject: JDBC question

Hello Everyone,

We're setting up a profile on our IBM i web server to use for querying data in a web application. For security purposes I've excluded the group said profile is in from a number of libraries on the system, granting it *USE authority to the library containing the data for the web application.
The question I have is that when I use this profile in an SQL client (like
DbVisualizer) with the JTOpen driver I can see every library and file in the system, including those that are *PUBLIC *EXCLUDE. I can't actually see or modify any data, but is there a way (system value, etc.) to prevent a user profile from even seeing restricted libraries and their contents as I wouldn't want a potential hacker to even know the existence of restricted libraries and their contents? I've done a little research online, but haven't come across anything.

Thanks,
Blake
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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.