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

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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Security
    • Storage NYC 2018-08-13

    Description

      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

      Attachments

        Activity

          People

            maria.vankeulen@mongodb.com Maria van Keulen
            rpavlicek Richard Pavlicek
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: