QSYUSRI should give you what you need to verify the profile exists. The API you need for password changes is QSYCHGPW but it will require the old password and the new.
Brian May
IBM i Modernization Specialist
Profound Logic Software, Inc.
http://www.profoundlogic.com
937-439-7925 Phone
877-224-7768 Toll Free
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Hockchai Lim
Sent: Thursday, December 15, 2011 10:31 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Exist if profile exist and validating password
I'm working on a project that will allow user to reset his iseries password and re-enable his profile on their own. Having some difficulty with these two questions below and hoping someone can give me some pointers.
1) This project requires me to verify that the user profile entered on the screen exist on iseries. I'm thinking about using QSYRUSRI api to perform this verification. Would this api the best choice?
2) I'm planning to use CHGUSRPRF to perform the actual reset of the password and re-enable of the profile. I've noticed that CHGUSRPRF does not seems to perform that same password validation as the CHGPWD command does. CHGUSRPRF seems to accept any password. Is there an api that will allow me to make sure the password is acceptable before changing it thru CHGUSRPRF?
thanks
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1890 / Virus Database: 2108/4682 - Release Date: 12/15/11
As an Amazon Associate we earn from qualifying purchases.