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

$Accounts::User::PasswordMaxAge fails when value is set to zero #464

Closed
bschonec opened this issue Oct 13, 2023 · 1 comment
Closed

$Accounts::User::PasswordMaxAge fails when value is set to zero #464

bschonec opened this issue Oct 13, 2023 · 1 comment

Comments

@bschonec
Copy link
Contributor

bschonec commented Oct 13, 2023

Describe the Bug

Setting Accounts::User::PasswordMaxAge variable to zero results in a fail.

Expected Behavior

User password max age should be set to zero (or in some cases, the password check is disabled)

The documentation states that the minimum value is zero. I've not found the check/validation for password_max_age where it fails when the value is zero.

Steps to Reproduce

Hiera data:

user:
  test:
    ensure: present
    password_max_age: 0

Errors with the following:
Evaluation Error: Error while evaluating a Resource Statement, Accounts::User[test]: parameter 'password_max_age' expects an Accounts::User::PasswordMaxAge = Integer[1, 99999] value, got Integer[0, 0]

Environment

  • Version 8.1.0
  • Platform RHEL7, RHEL8

#466

@bschonec
Copy link
Contributor Author

Resolved #466

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants