Solved

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

Posted on 2004-08-24
1
492 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 27

Accepted Solution

by:
rrz earned 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 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