pub unsafe static kODPolicyAttributeLastPasswordChangeTime: Option<&'static ODPolicyAttributeType>Available on crate feature
CFOpenDirectoryConstants only.Expand description
Policy attribute for time of the last password change.
Policy attribute for time of the last password change. The time is specified as the number of seconds since the Unix epoch. Used in policies to compare against other times. Typically would be used in Password Change policies to expire a password at a certain time or interval.
The policy string below requires a password change every 90 days (kODPolicyAttributeExpiresEveryNDays is set to 90).
Note that kODPolicyAttributeExpiresEveryNDays needs to be converted to seconds to match the units of the other times. The special keyword DAYS_TO_SECONDS can be used for the conversion.
[NSString stringWithFormat: “ % @ < % @
- % @
- DAYS_TO_SECONDS“, kODPolicyAttributeCurrentTime, kODPolicyAttributeLastPasswordChangeTime, kODPolicyAttributeExpiresEveryNDays];
See also Apple’s documentation