[GH-ISSUE #71] Duplicated MFAPasswordMaxDays entry in bastion.conf #20

Closed
opened 2026-05-07 00:17:31 +02:00 by BreizhHardware · 4 comments

Originally created by @axl89 on GitHub (Nov 28, 2020).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/71

While doing a Chef cookbook to manage this awesome software, I found out that the MFAPasswordMaxDays entry is duplicated in the bastion.conf.dist file in v3.01.00:

# MFAPasswordMaxDays (int >= 0)
#    DESC: For the PAM UNIX password MFA, sets the maximum amount of days after which the password must be changed (see `chage -M')
# DEFAULT: 90
"MFAPasswordMaxDays": 90,
#
# MFAPasswordMaxDays (int >= 0)
#    DESC: For the PAM UNIX password MFA, sets the number of days before expiration on which the user will be warned to change his password (see `chage -W')
# DEFAULT: 15
"MFAPasswordMaxDays": 15,

I'm not sure which one you'd like to keep, so I can't make a PR, but I hope this issue is useful! 😄

Originally created by @axl89 on GitHub (Nov 28, 2020). Original GitHub issue: https://github.com/ovh/the-bastion/issues/71 While doing a [Chef cookbook](https://github.com/axl89/ovh_the_bastion) to manage this **awesome** software, I found out that the `MFAPasswordMaxDays` entry is duplicated in the [bastion.conf.dist file](https://github.com/ovh/the-bastion/blob/v3.01.00/etc/bastion/bastion.conf.dist) in v3.01.00: ``` # MFAPasswordMaxDays (int >= 0) # DESC: For the PAM UNIX password MFA, sets the maximum amount of days after which the password must be changed (see `chage -M') # DEFAULT: 90 "MFAPasswordMaxDays": 90, # # MFAPasswordMaxDays (int >= 0) # DESC: For the PAM UNIX password MFA, sets the number of days before expiration on which the user will be warned to change his password (see `chage -W') # DEFAULT: 15 "MFAPasswordMaxDays": 15, ``` I'm not sure which one you'd like to keep, so I can't make a PR, but I hope this issue is useful! :smile:
BreizhHardware 2026-05-07 00:17:31 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Alkorin commented on GitHub (Nov 28, 2020):

Thanks for the report!

It's not a duplicate entry but a wrong config name.

<!-- gh-comment-id:735293418 --> @Alkorin commented on GitHub (Nov 28, 2020): Thanks for the report! It's not a duplicate entry but a wrong config name.
Author
Owner

@speed47 commented on GitHub (Nov 30, 2020):

Side note @axl89, we have a Puppet module out since a few days, because that's what we happen to be using internally ;)
So that's cool you're working on a Chef cookbook!

<!-- gh-comment-id:735733761 --> @speed47 commented on GitHub (Nov 30, 2020): Side note @axl89, we have a Puppet module out since a few days, because that's what we happen to be using internally ;) So that's cool you're working on a Chef cookbook!
Author
Owner

@axl89 commented on GitHub (Dec 1, 2020):

Thanks, @speed47 ! I'll follow your work closely, I really like this project and we will start using it very soon in our production environments. I aim to maintain the cookbook up to date with your new changes and configurations! 😄

<!-- gh-comment-id:736388425 --> @axl89 commented on GitHub (Dec 1, 2020): Thanks, @speed47 ! I'll follow your work closely, I really like this project and we will start using it very soon in our production environments. I aim to maintain the cookbook up to date with your new changes and configurations! :smile:
Author
Owner

@speed47 commented on GitHub (Dec 15, 2020):

I'll try your cookbook when I find some time. We might want to reference it in the readme as a third party tool at some point!

<!-- gh-comment-id:745231257 --> @speed47 commented on GitHub (Dec 15, 2020): I'll try your cookbook when I find some time. We might want to reference it in the readme as a third party tool at some point!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#20
No description provided.