Skip to content

Commit

Permalink
Update note around password field on user.present wrt Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiesen authored and dwoz committed Jan 19, 2024
1 parent d4f257e commit d02e201
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions salt/states/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,19 +412,18 @@ def present(
Not supported on Windows.
password
A password hash to set for the user. This field is only supported on
Linux, FreeBSD, NetBSD, OpenBSD, and Solaris. If the ``empty_password``
argument is set to ``True`` then ``password`` is ignored.
For Windows this is the plain text password.
For Linux, the hash can be generated with ``mkpasswd -m sha-256``.
A password hash to set for the user. Updating a password on an existing
account is only supported on Linux, FreeBSD, NetBSD, OpenBSD, and Solaris.
If the ``empty_password`` argument is set to ``True`` then ``password``
is ignored. For Windows this is the plain text password. For Linux, the
hash can be generated with ``mkpasswd -m sha-256``.
.. versionchanged:: 0.16.0
BSD support added.
hash_password
Set to True to hash the clear text password. Default is ``False``.
enforce_password
Set to False to keep the password from being changed if it has already
been set and the password hash differs from what is specified in the
Expand Down

0 comments on commit d02e201

Please sign in to comment.