Skip to content

Cannot set the --authenticationDatabase option #26

Description

@tbuteler

If the authentication database is different from the database in which to execute the import / export, then Mongonaut will always fail to connect. You either provide the credentials, in which case it fails outright, or you don't provide credentials, in which case it seems like it succeeds, but success output is a MongoDB message saying you don't have authorisation to execute the command.

Attempting to set the authenticationDatabase option in any way will cause Spawngo to fail:

.../node_modules/spawngo/index.js:28
      this.config[args[0]] = args[1]
                           ^

TypeError: Can't add property authenticationDatabase, object is not extensible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions