Retrieves the date and time the password will expire for the user ID that is set in the given system object on the iSeries™ system that it represents.
UINT CWB_ENTRY cwbCO_GetPasswordExpireDate( cwbCO_SysHandle system, cwb_DateTime *expirationDateTime);
Bytes | Content |
---|---|
1 - 2 | Year (Example: 1998 = 0x07CF) |
3 | Month (January = 0x01) |
4 | Day (First day = 0x01;31st day = 0x1F) |
5 | Hour (Midnight = 0x00;23rd hour = 0x17) |
6 | Minute (On the hour = 0x00; 59th minute = 0x3B) |
7 | Second (On the minute = 0x00; 59th second = 0x3B) |
8 | One-hundredth of a second (on the second = 0x00; maximum = 0x63) |
The following list shows common return values.
You successfully must have called cwbCO_VerifyUserIDPassword, cwbCO_Signon, or cwbCO_Connect before using this API. If you want to ensure that the value that is returned is recent, you either must call cwbCO_VerifyUserIDPassword explicitly, or set the Validate Mode to CWBCO_VALIDATE_ALWAYS before you call cwbCO_Signon or cwbCO_Connect.
If the user profile password expiration interval is set to *NOMAX, a password expire date does not exist. To detect this case, first validate the user ID and password as noted above, and then, if successful, call cwbCO_GetPasswordExpireDate. A return code of CWBCO_INV_BEFORE_VALIDATE means that the password expiration interval is set to *NOMAX.