3.1.1.7.1 General Password Policy
This policy is referenced from the dBCSPwd and unicodePwd triggers.
The following constraints MUST be satisfied; on error, the server MUST return a processing error. For more information on error codes, see section 3.1.5.
Minimum Password Length Constraint: If all of the following conditions are true, the following constraint MUST be satisfied:
Conditions:
The userAccountControl attribute value contains UF_NORMAL_ACCOUNT.
The objectSid attribute value does not have the DOMAIN_USER_RID_KRBTGT value as the RID.
The userAccountControl attribute value does NOT contain UF_PASSWD_NOTREQD.
The Effective-MinimumPasswordLength attribute value (see section 3.1.1.5) is greater than 0.
The requesting protocol message is a password change (as compared to a password set).
Constraint:
At least one of dBCSPwd or unicodePwd MUST be nonzero-length and equal to a value other than the hash of a zero-length string.
Minimum Password Age Constraint: If all of the following conditions are true, the following constraint MUST be satisfied:
Conditions:
The userAccountControl attribute contains UF_NORMAL_ACCOUNT.
At least one of the dBCSPwd or unicodePwd attribute values is present and not equal to a hash value of a zero-length string.
Constraint:
The pwdLastSet attribute MUST be less than the current time plus the value of the Effective-MinimumPasswordAge attribute (see section 3.1.1.5).
Password History Length Constraint: If all of the following conditions are true, the following constraints MUST be satisfied:
Conditions:
The userAccountControl attribute contains UF_NORMAL_ACCOUNT.
objectSid does not have the DOMAIN_USER_RID_KRBTGT value as the RID.
userAccountControl does NOT contain UF_PASSWD_NOTREQD.
minPwdHistory on the account domain object is greater than 0.
The requesting protocol message is a password change (as compared to a password set).
Constraints:
If the unicodePwd attribute is being updated, the value of the unicodePwd MUST NOT be present in the first N hashes stored in the ntPwdHistory attribute value, where N is the value of the Effective-PasswordHistoryLength attribute (see section 3.1.1.5). For details on how ntPwdHistory is maintained, see section 3.1.1.9.1.
If the dBCSPwd attribute is being updated, the value of the dBCSPwd MUST NOT be present in the first N hashes stored in the lmPwdHistory attribute value, where N is the value of the Effective-PasswordHistoryLength attribute (see section 3.1.1.5). For details on how lmPwdHistory is maintained, see section 3.1.1.9.1.