Problem solve Get help with specific problems with your technologies, process and projects.

Validating a user password on OS/400

How do we validate a user password on OS/400? I need to write a PASE interface for user validation. PASE application is passing the user/password information, which needs to be verified if the user is valid to use OS/400. It would be great if there were a C example on the OS/400 side.
You can use the API QSYGETPH. This API expects three parameters to be passed. A 10-character user profile, 10-character password, and a 12-character handle (initialized to hex 0's). If the handle comes back as non-hex 0's, the password is correct. Be aware that if you pass incorrect passwords multiple times, the counter will be incremented and the profile can be disabled.


The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400

Dig Deeper on Past Releases

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.