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

Set correct auth_mechanism for updateUser #662

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JvGinkel
Copy link
Contributor

Currently the mongodb command updateUser defaults to SCRAM-SHA-256 but you can't update these passwords.

And also show an error when the update goes wrong.

Pull Request (PR) description

Currently the mongodb command updateUser defaults to SCRAM-SHA-256 but you can't update these passwords.

So now set the correct mecahnisms and handle the response of the command. So if you try to update this hash with SCRAM-SHA-256 you will see an error message. If you use scram_sha_1 it will update the password and continue like it should.

This Pull Request (PR) fixes the following issues

Fixes #649
Fixes #650

@bastelfreak bastelfreak added the bug Something isn't working label Jan 26, 2023
@JvGinkel JvGinkel force-pushed the password branch 2 times, most recently from 1658799 to c2d152e Compare January 26, 2023 18:47
Currently the mongodb command `updateUser` defaults to SCRAM-SHA-256 but you can't update these passwords.

And also show an error when the update goes wrong.
@JvGinkel
Copy link
Contributor Author

JvGinkel commented Mar 7, 2023

Anything needed be done to get this merged? We are running now in a fork and would like to switch back to this public version of the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot change user's password
2 participants