Password change not working / HW-1.6

While doing HW-1.6, I find a problem when changing the password to “webscale”.

Though the command:

python ldapconfig.py passwd -u adam -op password -np webscale

seems to work perfectly on the infrastructure VM.

I am unable to use this new password on the database VM.

Even after running:

sudo service saslauthd start

or:

sudo service saslauthd restart

and:

sudo chmod 755 /var/run/saslauthd/

What do the logs say?

What error are you getting?
What method you used to authenticate the user?
auth or mongo

Well, in mongo shell I was using:

db.getSiblingDB("$external").auth({user:“adam”,pwd:“webscale”,mechanism:“PLAIN”})

but it didn’t work.

By the same token, in the command line I was using:

testsaslauthd -u adam -p webscale -f /var/run/saslauthd/mux

and it didn’t work either.

… BUT, when I started again this morning to work on that, running (as I have now dome almost ten times):

vagrant up infrastructure
vagrant destroy database -f
vagrant up database
vagrant ssh infrastructure
vagrant ssh database (in a different terminal)

… all was working without any issue, with the new password …

And, I was finally able to complete HW-1.6.

P.S. I haven’t had the opportunity to look a the logs to see any error.