Security APIs return codes

6000    CWBSY_UNKNOWN_USERID
          User ID does not exist.
6002    CWBSY_WRONG_PASSWORD
          Password is not correct for specified user ID.
6003    CWBSY_PASSWORD_EXPIRED
          Password has expired.
6004    CWBSY_INVALID_PASSWORD
          One or more characters in the password are not valid or the password
          is too long.
6007    CWBSY_GENERAL_SECURITY_ERROR
          A general security error occurred. The user profile does not have a
          password or the password validation program found an error in the
          password.
6009    CWBSY_INVALID_PROFILE
          The server user profile is not valid.
6011    CWBSY_USER_PROFILE_DISABLED
          The iSeries user profile (user ID) has been set to disabled.
6013    CWBSY_USER_CANCELLED
          The user cancelled from the user ID/password prompt.
6015    CWBSY_INVALID_USERID
          One or more characters in the user ID is not valid or the user ID is
          too long.
6016    CWBSY_UNKNOWN_SYSTEM
          The system specified is unknown.
6019    CWBSY_TP_NOT_VALID
          The PC could not validate the iSeries security server. This could
          indicate tampering with the IBM supplied security server program on
          the iSeries.
6022    CWBSY_NOT_LOGGED_ON
          There is no user currently logged on for the specified system.
6025    CWBSY_SYSTEM_NOT_CONFIGURED
          The system specified in the security object has not been configured.
6026    CWBSY_NOT_VERIFIED
          The user ID and password defined in the object has not yet been
          verified. You must verify using cwbSY_VerifyUserIDPwd API.
6255    CWBSY_INTERNAL_ERROR
          Internal error. Contact IBM Service.
 
The following return codes are for change password APIs:
 
6257    CWBSY_PWD_TOO_LONG
          The new password contains too many characters. The maximum number of
          characters allowed is defined by the iSeries system value, QPWDMAXLEN.
6258    CWBSY_PWD_TOO_SHORT
          The new password does not contain enough characters. The minimum
          number of characters allowed is defined by the iSeries system value,
          QPWDMINLEN.
6259    CWBSY_PWD_REPEAT_CHARACTER
          The new password contains a character used more than once. The iSeries
          configuration (system value QPWDLMTREP) does not allow passwords to
          contain a repeat character.
6260    CWBSY_PWD_ADJACENT_DIGITS
          The new password contains two numbers next to each other. The iSeries
          configuration (system value QPWDLMTAJC) does not allow passwords to
          contain consecutive digits.
6261    CWBSY_PWD_CONSECUTIVE_CHARS
          The new password contains a character repeated consecutively. The
          iSeries configuration (system value QPWDLMTREP) does not allow a
          password to contain a character repeated consecutively.
6262    CWBSY_PWD_PREVIOUSLY_USED
          The new password matches a previously used password. The iSeries
          configuration (system value QPWDRQDDIF) requires new passwords to be
          different than any previous password.
6263    CWBSY_PWD_DISALLOWED_CHAR
          The new password uses an installation disallowed character. iSeries
          configuration (system value QPWDLMTCHR) restricts certain characters
          from being used in new passwords.
6264    CWBSY_PWD_NEED_NUMERIC
          The new password must contain a number. The iSeries configuration
          (system value QPWDRQDDGT) requires new passwords contain one or more
          numeric digits.
6266    CWBSY_PWD_MATCHES_OLD
          The new password matches an old password in one or more character
          positions. The server configuration (system value QPWDPOSDIF) does
          not allow the same character to be in the same position as a
          previous password.
6267    CWBSY_PWD_NOT_ALLOWED
          The password was rejected.
6268    CWBSY_PWD_MATCHES_USERID
          The password matches the user ID.
6269    CWBSY_PWD_PRE_V3
          The old password was created on a pre-V3 system which used a
          different encryption technique. Password must be changed manually on
          the server.
6270    CWBSY_LAST_INVALID_PASSWORD
          The next invalid will disable the user profile.
Related reference
iSeries Access for Windows Communications and Security APIs