kODPolicyAttributeNewPasswordRequiredTime

Static kODPolicyAttributeNewPasswordRequiredTime 

Source
pub unsafe static kODPolicyAttributeNewPasswordRequiredTime: Option<&'static ODPolicyAttributeType>
Available on crate feature CFOpenDirectoryConstants only.
Expand description

Policy attribute for the time when “new password required” was set.

Policy attribute for the time when “new password required” was set. The time is specified as the number of seconds since the Unix epoch.

This attribute may be used in the policy string. Whenever it’s used in the policy string, it must also be specified in the policy’s parameter dictionary.

This attribute is used to capture the time when the system administrator wants to force all users to change their passwords. This would be a “one-time” change, i.e. once the user changed the password, the policy would apply. The policy would have to be updated with a new time for kODPolicyAttributeNewPasswordRequiredTime in order to force a new round of password changes.

For example: @ { kODPolicyKeyIdentifier : “ change on next auth“, kODPolicyKeyParameters : @ { kODPolicyAttributeNewPasswordRequiredTime : @ ( <time

) }, kODPolicyKeyContent : [NSString stringWithFormat: “ % @ < % “ , kODPolicyAttributeLastPasswordChangeTime, kODPolicyAttributeNewPasswordRequiredTime]};

See also Apple’s documentation