Skip to content

Commit c58233a

Browse files
Merge pull request #26081 from JamesFerebee/jaferebe_newpasswordpolicySQL
Add Enforce Password Policy Clarification
2 parents 72798ac + 60c8fa4 commit c58233a

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

docs/relational-databases/security/password-policy.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ms.author: vanto
4747

4848
Password complexity policies are designed to deter brute force attacks by increasing the number of possible passwords. When password complexity policy is enforced, new passwords must meet the following guidelines:
4949

50-
- The password does not contain the account name of the user.
50+
- The password doesn't contain the account name of the user.
5151

5252
- The password is at least eight characters long.
5353

@@ -73,7 +73,7 @@ ms.author: vanto
7373

7474
- When CHECK_POLICY is changed to ON, the following behaviors occur:
7575

76-
- CHECK_EXPIRATION is also set to ON unless it is explicitly set to OFF.
76+
- CHECK_EXPIRATION is also set to ON unless it's explicitly set to OFF.
7777

7878
- The password history is initialized with the value of the current password hash.
7979

@@ -87,11 +87,11 @@ ms.author: vanto
8787

8888
- The value of `lockout_time` is reset.
8989

90-
Some combinations of policy options are not supported.
90+
Some combinations of policy options aren't supported.
9191

9292
- If MUST_CHANGE is specified, CHECK_EXPIRATION and CHECK_POLICY must be set to ON. Otherwise, the statement fails.
9393

94-
- If CHECK_POLICY is set to OFF, CHECK_EXPIRATION cannot be set to ON. An ALTER LOGIN statement that has this combination of options will fail.
94+
- If CHECK_POLICY is set to OFF, CHECK_EXPIRATION can't be set to ON. An ALTER LOGIN statement that has this combination of options will fail.
9595

9696
- Setting CHECK_POLICY = ON prevents the creation of passwords that are:
9797

@@ -101,7 +101,11 @@ ms.author: vanto
101101

102102
- Any of the following: "password", "admin", "administrator", "sa", "sysadmin"
103103

104-
The security policy might be set in Windows, or might be received from the domain. To view the password policy on the computer, use the Local Security Policy MMC snap-in (**secpol.msc**).
104+
The security policy might be set in Windows, or might be received from the domain. To view the password policy on the computer, use the Local Security Policy MMC snap-in (**secpol.msc**).
105+
106+
>[!NOTE]
107+
>For SQL Server logins that have CHECK_POLICY enabled, if you run [ALTER LOGIN](../../t-sql/statements/alter-login-transact-sql.md) and do not include OLD_PASSWORD in the command to change the password, then [Enforce Password History](/windows/security/threat-protection/security-policy-settings/enforce-password-history) is ignored. This is a by-design behavior to allow password resets, despite any previously used passwords. Other checks associated with CHECK_POLICY, including length and complexity are checked regardless of whether OLD_PASSWORD is used.
108+
105109

106110
## Related Tasks
107111

@@ -120,4 +124,3 @@ ms.author: vanto
120124
## Related Content
121125

122126
[Strong Passwords](../../relational-databases/security/strong-passwords.md)
123-

0 commit comments

Comments
 (0)