Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IAM: password policy update #760

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openstack/identity/v3.0/security/GetPasswordPolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ type PasswordPolicy struct {
PasswordRequirements string `json:"password_requirements"`
// Password validity period (days).
PasswordValidityPeriod int `json:"password_validity_period"`
// Minimum number of character types that a password must contain. Value range: 2-4.
PasswordCharCombination int `json:"password_char_combination"`
}
2 changes: 2 additions & 0 deletions openstack/identity/v3.0/security/UpdatePasswordPolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ type UpdatePasswordPolicyOpts struct {
PasswordNotUsernameOrInvert *bool `json:"password_not_username_or_invert,omitempty"`
// Password validity period (days).
PasswordValidityPeriod *int `json:"password_validity_period,omitempty"`
// Minimum number of character types that a password must contain. Value range: 2-4.
PasswordCharCombination *int `json:"password_char_combination,omitempty"`
}

func UpdatePasswordPolicy(client *golangsdk.ServiceClient, id string, opts UpdatePasswordPolicyOpts) (*PasswordPolicy, error) {
Expand Down