pub unsafe static kODPolicyAttributeMaximumFailedAuthentications: Option<&'static ODPolicyAttributeType>CFOpenDirectoryConstants only.Expand description
Policy attribute for the maximum failed authentication attempts.
Policy attribute for the maximum failed authentication attempts. Used as a key in policy parameter dictionary to specify the maximum allowable failed authentication attempts with a CFNumber value. Also used in the policy string to compare against the number of failed authentication attempts. This policy would disallow authentications after 3 failed attempts: @ { kODPolicyKeyIdentifier : “ maximum failed authentications“, kODPolicyKeyParameters : @ { kODPolicyAttributeMaximumFailedAuthentications : @ 3 }, kODPolicyKeyContent : [NSString stringWithFormat: “ % @ < % “ , kODPolicyAttributeFailedAuthentications, kODPolicyAttributeMaximumFailedAuthentications] };
See also Apple’s documentation