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

boot: T5739: Fixed password recovery #213

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

zdc
Copy link
Contributor

@zdc zdc commented Nov 14, 2023

This change fixes a filter used for sed during password reset in the set_encrypted_password() function.

Old logic: search between user username { and the first line with } does not work for users with extra options in config, like public keys.

New logic: search between user username { and the first line with encrypted-password which should cover all possible combinations, except situations when a password is not presented in a configuration file.

This change fixes a filter used for `sed` during password reset in the
`set_encrypted_password()` function.

Old logic: search between `user username {` and the first line with `}` does not
work for users with extra options in config, like public keys.

New logic: search between `user username {` and the first line with
`encrypted-password` which should cover all possible combinations, except
situations when a password is not presented in a configuration file.
@sever-sever sever-sever requested review from a team, dmbaturin, sarthurdev, jestabro, sever-sever and c-po and removed request for a team November 14, 2023 16:32
@c-po c-po merged commit 9369923 into vyos:current Nov 14, 2023
1 check passed
@sever-sever
Copy link
Member

@Mergifyio backport sagitta

Copy link

mergify bot commented Dec 21, 2023

backport sagitta

✅ Backports have been created

@sever-sever
Copy link
Member

@Mergifyio backport equuleus

Copy link

mergify bot commented Dec 21, 2023

backport equuleus

✅ Backports have been created

c-po added a commit that referenced this pull request Dec 21, 2023
boot: T5739: Fixed password recovery (backport #213)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants