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

Fix malformed shadow entries #58423

Merged
merged 3 commits into from
Nov 1, 2022

Conversation

terminalmage
Copy link
Contributor

@terminalmage terminalmage commented Sep 10, 2020

If a shadow entry for a user has too many (or too few) fields, due to
having been hand-edited for some silly reason, this will cause Salt not
to be able to successfully run a user.present state (with password
argument) against it, as spwd will not be able to retrieve a hash for
the user, causing Salt to always think that the password hash still
needs changes.

This fixes these two cases.

@terminalmage terminalmage requested a review from a team as a code owner September 10, 2020 15:58
@ghost ghost requested review from garethgreenaway and removed request for a team September 10, 2020 15:59
@Ch3LL
Copy link
Contributor

Ch3LL commented Oct 6, 2022

Do you mind fixing the merge conflicts

If a shadow entry for a user has too many (or too few) fields, due to
having been hand-edited for some silly reason, this will cause Salt not
to be able to successfully run a user.present state (with password
argument) against it, as spwd will not be able to retrieve a hash for
the user, causing Salt to always think that the password hash still
needs changes.

This fixes these two cases.
@terminalmage terminalmage force-pushed the malformed-shadow-entry branch from be35797 to f4757e4 Compare November 1, 2022 13:11
@terminalmage
Copy link
Contributor Author

@Ch3LL Merge conflicts are fixed and tests passing

@Ch3LL Ch3LL merged commit 0dc3653 into saltstack:master Nov 1, 2022
@terminalmage terminalmage deleted the malformed-shadow-entry branch November 1, 2022 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants