In (m150/ chapter 4: Big Bank Database Authentication)

In m150/ chapter 4: Learning Activity: Big Bank Database Authentication

I can’t pass authentication the test, I get:

[FAIL] “The server requires authentication”

I have authentication enabled and even have tried the command line authentication flag

user@M150# mongod --auth -f mongod.conf
user@M150# mongod -f mongod.conf --auth

storage:
  dbPath: /var/mongodb/db
net:
  bindIp: localhost
  port: 27000
systemLog:
  destination: file
  path: /var/mongodb/logs/mongod.log
  logAppend: true
processManagement:
  fork: false
security:
  authorization: "enabled"

There is no need to pass --auth in command line if it is already included in mongod.conf

If you run without --auth did mongod start successfully?

2 Likes