kODPolicyAttributeEnableOnDate

Static kODPolicyAttributeEnableOnDate 

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

Policy attribute for the “enable on” date.

Policy attribute for the “enable on” date. Used as a key in the policy parameter dictionary, with a CFDate value. Also used in policy strings. The date is specified as a CFDate representing a fixed date, appropriate for the locale. Use in policies when comparing other date-based attributes.

This attribute is typically used Authentication policies to control when authentications are allowed. This policy would enable authentications on Jan 1, 2014 (assumes the date formatter is properly configured for the locale): @ { kODPolicyKeyIdentifier : “ enable on Jan 1“, kODPolicyKeyParameters : @ { kODPolicyAttributeEnableOnDate : [localFormatter dateWithString: “ 01/01/2014“] }, kODPolicyKeyContent : [NSString stringWithFormat: “ % @

= % “ , kODPolicyAttributeCurrentDate, kODPolicyAttributeEnableOnDate]};

See also Apple’s documentation