You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* DOC-4279 RS: Add password_min_length to cluster REST API object reference
* DOC-4279 RS: Document how to change minimum password length
* Fix spacing in REST API example
* Add alt text for screenshot
description: Enable password complexity rules and configure minimum password length.
9
9
linkTitle: Password complexity rules
10
10
toc: 'true'
11
11
weight: 30
@@ -28,37 +28,69 @@ In addition, the password:
28
28
29
29
Password complexity rules apply when a new user account is created and when the password is changed. Password complexity rules are not applied to accounts authenticated by an external identity provider.
30
30
31
-
You can use the Cluster Manager UI or the REST API to enable password complexity rules.
31
+
## Enable password complexity rules
32
32
33
-
## Enable using the Cluster Manager UI
33
+
To enable password complexity rules, use one of the following methods:
34
34
35
-
To enable password complexity rules using the Cluster Manager UI:
35
+
- Cluster Manager UI:
36
36
37
-
1. Go to **Cluster > Security > Preferences**, then select **Edit**.
37
+
1. Go to **Cluster > Security > Preferences**, then select **Edit**.
38
+
39
+
1. In the **Password** section, enable **Complexity rules**.
40
+
41
+
1. Select **Save**.
42
+
43
+
-[Update cluster]({{<relref "/operate/rs/references/rest-api/requests/cluster#put-cluster">}}) REST API request:
44
+
45
+
```sh
46
+
PUT https://[host][:port]/v1/cluster
47
+
{ "password_complexity": true }
48
+
```
49
+
50
+
## Change minimum password length
38
51
39
-
1. In the **Password** section, turn on **Complexity rules**.
52
+
When password complexity rules are enabled, passwords must have at least 8 characters by default.
40
53
41
-
1. Select **Save**.
54
+
If you change the minimum password length, the new minimum is enforced for new users and when existing users change their passwords.
42
55
43
-
## Enable using the REST API
56
+
To change the minimum password length, use one of the following methods:
44
57
45
-
To use the REST API to enable password complexity rules:
58
+
- Cluster Manager UI:
46
59
47
-
```REST
48
-
PUT https://[host][:port]/v1/cluster
49
-
{"password_complexity":true}
50
-
```
60
+
1. Go to **Cluster > Security > Preferences**.
61
+
62
+
1. Click **Edit**.
63
+
64
+
1. In the **Password** section, enable**Complexity rules**.
65
+
66
+
1. Set the number of characters for**Minimum password length**.
67
+
68
+
{{<image filename="images/rs/screenshots/cluster/security-preferences-min-password-length.png" alt="The minimum password length setting appears in the password section of the cluster security preferences screen when complexity rules are enabled.">}}
69
+
70
+
1. Click **Save**.
71
+
72
+
- [Update cluster]({{<relref "/operate/rs/references/rest-api/requests/cluster#put-cluster">}}) REST API request:
73
+
74
+
```sh
75
+
PUT https://[host][:port]/v1/cluster
76
+
{ "password_min_length": <integer between 8-256> }
77
+
```
51
78
52
79
## Deactivate password complexity rules
53
80
54
-
To deactivate password complexity rules:
81
+
To deactivate password complexity rules, use one of the following methods:
55
82
56
-
-Use the Cluster Manager UI:
83
+
- Cluster Manager UI:
57
84
58
85
1. Go to **Cluster > Security > Preferences**, thenselect**Edit**.
59
86
60
87
1. In the **Password** section, turn off **Complexity rules**.
61
88
62
89
1. Select **Save**.
63
90
64
-
- Use the `cluster` REST API endpoint to set `password_complexity` to `false`
91
+
- [Update cluster]({{<relref "/operate/rs/references/rest-api/requests/cluster#put-cluster">}}) REST API request:
0 commit comments