Hi Steve,
Look at the Check Password Meets Password Rules (QSYCHKPR) API
This was recently delivered based on an Idea someone submitted.
It does require a Used ID but you can pass *NONE for the ID.
However it looks like this API is only available on IBM I 7.5.
https://ibm-power-systems.ideas.ibm.com/ideas/IBMI-I-1925
The text below is from the IBM Idea.
The new API, Check Password Meets Password Rules (QSYCHKPR), checks if the
password specified in the password information meets the password rules for
the system on which this API is run. The password rules are composed of
system values QPWDRQDDIF and either QPWDRULES or all of the following:
QPWDMINLEN, QPWDMAXLEN, QPWDLMTAJC, QPWDLMTCHR, QPWDLMTREP, and QPWDRQDDGT.
The API can be used by users or password management tools to predetermine if
a value would meet the configured password rules set by the company.
See the API documentation for further details --
https://www.ibm.com/docs/api/v1/content/ssw_ibm_i_75/apis/qsychkpr.htm
Rob
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Steve
McKay
Sent: Thursday, February 2, 2023 12:59 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Password Validation API
All -
Is there an API (or other method) that will validate a password against the
QPWD* system values without an associated user name? I just want to feed
the password to the API or program and get back a 'YES'/'NO' indicating it
passed/failed the QPWD* system value composition rules.
We are trying to build a process that will accept user profile
add/change/delete requests from a non-IBM i product. We would like to allow
the admins of the product to enter a non-user user profile and the desired
password into the product. Then we would run a scrub program on the data
coming into the IBM i to check the password against IBM i QPWD* system
values to be sure that it will pass when we use it in the CRTUSRPRF command.
I have looked at the QSYCHGPW API but it wants an existing user profile and
password. I have also looked at the Validate Password Exit Point/Program
but we don't want to do this for all user password changes, only the new
non-user profile/password requests from the 3rd party product.
We understand that there are probably better ways to do this but, for a
narrow scope of non-user profiles, we would like to provide this
functionality without writing our own program.
Any suggestions?
Thanks,
Steve McKay
(205) 585-8424
samckay1@xxxxxxxxx
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
.
As an Amazon Associate we earn from qualifying purchases.