[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

return codes from com.ibm.os390.security.PlatformReturned

Posted on 2004-08-24
1
Medium Priority
?
500 Views
Last Modified: 2008-03-17
Hi,
   I need to use PlatformUser.authenticate method to authenticate users in RACF via a web page.  I need to display an error message when the userid or password is incorrect, and I also need to re-direct them to a different page when their password has expired.  I am trying to display the error codes from
PlatformReturned with the following simple code that I am using for testing:

String UserID = request.getParameter("UserID").trim().toUpperCase();
String Password = request.getParameter("PSWD").trim().toUpperCase();

PlatformReturned RACF_results = PlatformUser.authenticate(UserID, Password);
if (RACF_results == null) { out.println("Authentication successful"); }
else { out.println("RACF error = " + PlatformReturned.errno); }

but, I get the following error on the last line of code:

Can't make a static reference to nonstatic variable errno in class
com.ibm.os390.security.PlatformReturned.

Ultimately I just want to be able to determine if the userid or password is invalid and display a message, and redirect to a different page if the password has expired. Obviously I am going about this wrong and need help.

Thanks!



0
Comment
Question by:donz4
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
rrz earned 600 total points
ID: 11882977
I don't know anything about   com.ibm.os390.security.PlatformReturned .
But, from the error message and the code you posted I will venture a guess.

>if (RACF_results == null) { out.println("Authentication successful"); }
Is that right ?  If success, then null is returned ?  So, if failure an object is returned ?
If, that is right then you should try  
else { out.println("RACF error = " + RACF_results.errno); }

rrz
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question