copyDatabase() command doesn't support an auth DB parameter

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Security
    • Storage NYC 2018-08-13
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      db.copyDatabase has parameters: fromhost, username and password. However, the user is only authenticated against the fromdb.

      We use many databases but store our user authentication in the admin database. There should be an optional 'authdb' parameter which allows the user to be authenticated against that instead.

      It seems inconsistent, since we can connect to a mongo server using any database as the authdb, and then access other databases.

      See SERVER-22576

            Assignee:
            Maria van Keulen
            Reporter:
            Richard Pavlicek
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: