Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / June 2006

Tip: Looking for answers? Try searching our database.

DB2 "Pasword expired" and "pasword soon to expire" detection from java

Thread view: 
lluis.barbal@gmail.com - 26 Jun 2006 11:13 GMT
Hello,

I'm developing a java program to access IBM DB2 for Z/OS. I want to
detect any of these situations:
- Password expired
- Password soon to expire
But I'm having problems with both of them

In the password expired scenario when I try to connect I receive a SQL
exception  stating that the password is expired (so far so good). My
problem is that I don't know how programatically detect the origin of
the problem as the SQLState and the ErrorCode fields are set to null/0.

In the password soon to expire scenario when I connect to the database
I do not receive any exception (I do not expect one) or warning. As a
result I do not know how I can detect this situation.

Product versions:
- IBM DB2 for Z/OS v.7.1. The EXTENDED_SECURITY parameter is set to YES
in order to use RACF authentication
- DB2 Connect v.8 Enterprise Edition
- Rational Application Developer v.6.0 including the WebSphere v.5.1
Test environment
- DB2 type 4 Jdbc driver

I am getting the connection from my WAS test environment data source.

My questions are:
- Do you know if this situation is related to an error in a
configuration parameter in my connection, WAS, DB2 or DB2 Connect?
- Do you have any suggestion about how to detect any of the described
situations or any hint about where to look for a solution (I've been
surfing the web for an answer to any of these point without any
success)?
- Do you have any easy solution that can make me fell ebarrassed and
think how stupid I am?

Any help is wellcome.

Please let me know if you need any clarification about any of these
topics or if this is not the right forum to ask them.

Thanks in advance

Lluis
lluis.barbal@gmail.com - 30 Jun 2006 07:47 GMT
Hello again,

Just in case someone has the same problem I can give you a link to the
answers I received in the DB2 for Z/OS forum.

http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=293&thread=1218
21&cat=19


Best regards

Lluis

lluis.barbal@gmail.com ha escrit:
> Hello,
>
[quoted text clipped - 41 lines]
>
> Lluis


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.