Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31071

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

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

      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.vankeulen@mongodb.com Maria van Keulen
            Reporter:
            rpavlicek Richard Pavlicek
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: