I am using JTOpen API to access an AS400 system.
I can successfully change an active AS400 user password like this:
AS400 system = new AS400("AS400SYSTEM", "AS400USER");
system.changePassword("OLDPASSWORD", "NEWPASSWORD");
On the other hand, when I try to change an expired user password in the same way I get the following exception thrown from the 2nd line:
com.ibm.as400.access.AS400SecurityException: Password is incorrect.
What do I need to do first?