-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
Changing a user's password doesn't work #438
Comments
The reason for the error is the wrong spelling of the Mongo command. Instead of |
webcompas
added a commit
to webcompas/puppet-mongodb
that referenced
this issue
Feb 5, 2018
webcompas
added a commit
to webcompas/puppet-mongodb
that referenced
this issue
Feb 5, 2018
webcompas
pushed a commit
to webcompas/puppet-mongodb
that referenced
this issue
Feb 14, 2018
webcompas
added a commit
to webcompas/puppet-mongodb
that referenced
this issue
Feb 14, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
After Step 1 authentication succeeds. But after changing to another password it fails:
Trying to authenticate using the previous password works:
What behaviour did you expect instead
Authentication using the new password should work.
Any additional information
When running Puppet Agent at step 2 there are no error messages. According to the debug output the password change is done using the following command:
Debug: Executing '/usr/bin/mongo bar --quiet --host 127.0.0.1:27017 --eval load('/root/.mongorc.js'); db.runCommand({"updateuser": "foo","pwd": "abcde","digestpassword": true})'
If I run the command manually I get the error "no such cmd: updateuser":
Comparing the password hash within MongoDB with the expected one shows that it is still using the one for the old password.
The text was updated successfully, but these errors were encountered: