Skip to content

Commit

Permalink
Increase maximum password length from 16 to 256 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
landro authored and katbyte committed May 23, 2019
1 parent 4ac2de0 commit f1bf91b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azuread/resource_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func resourceUser() *schema.Resource {
Type: schema.TypeString,
Required: true,
Sensitive: true,
ValidateFunc: validation.StringLenBetween(1, 16), //currently the max length for AAD passwords is 16
ValidateFunc: validation.StringLenBetween(1, 256), //currently the max length for AAD passwords is 256
},

"force_password_change": {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/user.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The following arguments are supported:
* `display_name` - (Required) The name to display in the address book for the user.
* `account_enabled` - (Optional) `true` if the account should be enabled, otherwise `false`. Defaults to `true`.
* `mail_nickname`- (Optional) The mail alias for the user. Defaults to the user name part of the User Principal Name.
* `password` - (Required) The password for the User. The password must satisfy minimum requirements as specified by the password policy. The maximum length is 16 characters.
* `password` - (Required) The password for the User. The password must satisfy minimum requirements as specified by the password policy. The maximum length is 256 characters.
* `force_password_change` - (Optional) `true` if the User is forced to change the password during the next sign-in. Defaults to `false`.

## Attributes Reference
Expand Down

0 comments on commit f1bf91b

Please sign in to comment.