I am getting Authentication failed
after creating adam
user for Homework 1.6
I am able to run the testsaslauthd command successfully
0: vagrant@database:~/M310-HW-1.6$ sudo chmod 755 /var/run/saslauthd/
vagrant@database:~/M310-HW-1.6$ testsaslauthd -u adam -p password -f /var/run/saslauthd/mux
0: OK "Success."
I start my replSets with the necessary parameters to enable ldap mechanism (I believe)
REDACTED
I am able to connect, initiate the replSet primary and create the adam
user
However when I attempt to authenticate I am getting:
MongoDB Enterprise hw16Repl:PRIMARY> db.getSiblingDB("$external").auth({ mechanism: "PLAIN", user: "adam", pwd: "password", digestPassword: false})
Error: Authentication failed.
0
I have completely removed the dbs and attempted again making sure I wasn’t missing anything or having any typos but I get the same result. I did run the setup file on the infrastructure server as well and I even changed the password using the python command to webscale
and back to password
. If I attempt to run the setup again it states everything already exists, which indicates it ran correctly the first time.
In case it helps here is my saslauthd.conf
ldap_servers: ldap://infrastructure.m310.mongodb.university
ldap_search_base: ou=Users,dc=mongodb,dc=com
ldap_filter: (cn=%u)
I have watched the relevant video a few times again to make sure I wasn’t missing anything but I am stumped.
Any help is greatly appreciated!