I am sorry to open another “homework - authentication failed” topic but i read through the other after trying many times by myself and still can’t figure out what is wrong
Here is the screenshot of the operation i do ( summarized):
testsaslauthdworks, so there is no problem with LDAP configuration itself
This lead me to restrict the problem to the configuration file: given the above conditions the only reason for
the mongo shell not to find the user is that it cannot communicate correctly with the saslauthd service right?
Following the videos and the guide provided on the docs (configure sasl/openldap - mongo docs ) i end up with this configuration file ( the others are obviously different on ports etc…)
systemLog: destination: file path: "/home/vagrant/M310-HW-1.6/r0/mongodb.log" storage: dbPath: "/home/vagrant/M310-HW-1.6/r0" processManagement: fork: true replication: replSetName: "rs0" security: authorization: "enabled" keyFile: "/home/vagrant/mongodb-shared_key" setParameter: saslauthdPath: /var/run/saslauthd/mux authenticationMechanisms: "PLAIN" net: port: 31160 bindIp: localhost,database.m310.mongodb.university
I keep looking at those three configuration settings ( authorization , saslauthdPath, authenticationMechanisms) and cannot find an error, a typo or even something different to try.