10gen / mongo-orchestration

Apache License 2.0
7 stars 11 forks source link

Creating Users -- with non-default authMechanism #156

Closed bjori closed 9 years ago

bjori commented 9 years ago

Using preset files you can provide MO with username and password to use for the initial user.

There is currently no way to tell MO what mechanism this user is supposed to use, or which database to create the user in.

Things get then more complicated when the deafult authMechanism is removed from mongod, as MO can no longer login as that user as it just doesn't support that authMechanism.

llvtt commented 9 years ago

MO supports the "default" auth mechanism + MONGODB-X509 as of 9aa35e28487ce87da61996a25c9dccbf1367ee98. It supports parsing the authenticationMechanisms parameter and specifying the auth source. This hasn't been tested with PLAIN or GSSAPI, though, but let's create new issues targeted at any unsupported auth mechanisms as we encounter them.