From 43b543736055c4683778fbc210f2451f3fb3038b Mon Sep 17 00:00:00 2001 From: Brian Schonecker Date: Mon, 16 Oct 2023 06:26:40 -0400 Subject: [PATCH] Change password_max_age lower bounds to negative one (-1) to allow for disabling of password expiry. --- README.md | 2 +- REFERENCE.md | 2 +- manifests/user.pp | 2 +- types/user/passwordmaxage.pp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b7c1f953..41e94327 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ Allows strings up to 32 characters long that begin with a lower case letter or u #### `Accounts::User::PasswordMaxAge` -Maximum number of days a password may be used before it must be changed. Allows any integer from `0` to `99999`. See [`user`](https://puppet.com/docs/puppet/latest/types/user.html#user-attribute-password_max_age) resource. +Maximum number of days a password may be used before it must be changed. Allows any integer from `-1` to `99999`. See [`user`](https://puppet.com/docs/puppet/latest/types/user.html#user-attribute-password_max_age) resource. #### `Accounts::User::Resource` diff --git a/REFERENCE.md b/REFERENCE.md index d26820dc..f0a449bb 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -428,7 +428,7 @@ Default value: `'!!'` Data type: `Optional[Accounts::User::PasswordMaxAge]` Maximum number of days a password may be used before it must be changed. -Allows any integer from `0` to `99999`. See the +Allows any integer from `-1` to `99999`. See the [`user`](https://puppet.com/docs/puppet/latest/types/user.html#user-attribute-password_max_age) resource. diff --git a/manifests/user.pp b/manifests/user.pp index 19802128..dec6cf83 100644 --- a/manifests/user.pp +++ b/manifests/user.pp @@ -126,7 +126,7 @@ # # @param password_max_age # Maximum number of days a password may be used before it must be changed. -# Allows any integer from `0` to `99999`. See the +# Allows any integer from `-1` to `99999`. See the # [`user`](https://puppet.com/docs/puppet/latest/types/user.html#user-attribute-password_max_age) # resource. # diff --git a/types/user/passwordmaxage.pp b/types/user/passwordmaxage.pp index 8ecb90d3..43515852 100644 --- a/types/user/passwordmaxage.pp +++ b/types/user/passwordmaxage.pp @@ -3,4 +3,4 @@ # On most systems, the default value of 99999 is about 274 years, which # effectively disables password aging. # -type Accounts::User::PasswordMaxAge = Integer[1, 99999] +type Accounts::User::PasswordMaxAge = Integer[-1, 99999]