Check AS/400 password in PC environment

5 pts.
Tags:
AS/400
AS/400 security
Password authentication
I have a VBasic input program on PC which data will eventually be inserted into a physical on AS/400. I would like to make the users to login this PC program. Is it possible to verify their IDs and passwords against those on AS/400? If possible, how am I going to do that? I know it is impossible to retrieve the ID and password from AS/400 but is it possible to send the ID and password to AS400 for checking?

Answer Wiki

Thanks. We'll let you know when a new response is added.

From your VBasic program call the Get Profile Handle API QSYGETPH. This will allow you to validate the userid and password. After validating the password you will want to call the Release Profile Handle API QSYRLSPH.

Bruce Vining

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ToddN2000
    If doing this on the VB side you can set up a login and pass the ID and password to variables and use them to build you connection string for the DB2 connection. Then you can handle any exceptions if the login connection string fails.
    15,605 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following