Password change expired

I am using the JTOpen API to access the AS400 system.

I can successfully change the active password of the AS400 user as follows:

AS400 system = new AS400("AS400SYSTEM", "AS400USER"); system.changePassword("OLDPASSWORD", "NEWPASSWORD"); 

On the other hand, when I try to change the password with an expired user in the same way, I get the following exception from the second line:

com.ibm.as400.access.AS400SecurityException: invalid password.

What do I need to do first?

+4
source share
2 answers

Yes, the user was not disconnected (enabled then: P), only the password has expired.

As it turned out, the problem was that the first character of the new password was numeric. The AS400 console does not like at all ...

http://search400.techtarget.com/answer/Setting-iSeries-passwords

Thanks!

+1
source

Is the password expired or the user profile disabled?

If the profile is disabled, it cannot log in at all ... since you cannot log in, you cannot change the password.

Try calling the connection method (AS400.SIGNON) before changing the password.

If all else fails, try activating trace to see what the system is trying to do under covers.

+5
source

Source: https://habr.com/ru/post/1445792/


All Articles