Feedback on lecture "Enabling internal authentication"

Hey guys,

After spending a few hours mucking about with Kerberos + AD, I’m finally moving on :smiley: I hope I can still make Tuesday’s deadline! Anyway… I’m watching the lecture “Enabling internal authentication”.

In it, @kirbyk sets up a three node replica set with the following commands. He then proceeds to:

  • Initiate the replica set.
  • Create a first user, with the localhost bypass.
  • Add the other two nodes.

He then proclaims the replica set to be functional and to be using the keyfile for mutual authentication. But are we sure about that? Because none of the mongod processes was started with the --authentication command line parameter.

Aaaand not within two minutes I have found the answer to my question:


Specifies the path to a key file that stores the shared secret that MongoDB instances use to authenticate to each other in a sharded cluster or replica set. --keyFile implies --auth . See Internal Authentication for more information.


So yeah… Authentication is implicitly enabled when -keyFile is passed.