Skip to content

[FEATURE REQUEST] allow password locking/unlocking in user.present on supported OS #62856

Closed
@nicholasmhughes

Description

Describe the solution you'd like
The user.present state currently allows declarative specification of user accounts, including passwords. However, it cannot currently declaratively determine the account to be in a locked/unlocked state. The shadow.lock_password execution module function (or appropriate unlock or OS-specific function) must be used outside of the user.present state in order to achieve the desired effect.

Describe alternatives you've considered
A module.run with onlyif/unless to check the state of the account.

Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.

Metadata

Labels

Featurenew functionality including changes to functionality and code refactors, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions