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

changepasswd.py: improved error handling #1865

Merged

Conversation

exploide
Copy link
Contributor

@exploide exploide commented Dec 25, 2024

While playing with changepasswd.py several unhandled exceptions occurred. This PR improves the error handling.

The script exits now with a proper exit code indicating whether changing the password was successful or not.

And I improved the warning message shown when setting a password hash, explaining that the password most probably needs to be changed afterwards except for when password never expires is set.

All changes were tested.

@anadrianmanrique anadrianmanrique self-assigned this Jan 2, 2025
@anadrianmanrique anadrianmanrique added enhancement Implemented features can be improved or revised medium Medium priority item labels Jan 2, 2025
@anadrianmanrique
Copy link
Contributor

@exploide thanks for the PR! merging now

@anadrianmanrique anadrianmanrique merged commit ac02e0e into fortra:master Jan 9, 2025
8 checks passed
@exploide exploide deleted the changepasswd-error-handling branch January 9, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Implemented features can be improved or revised medium Medium priority item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants