Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2193

Support copyDatabase



    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Won't Fix
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: Command Operations
    • Labels:


      This title might be a bit of a misnomer. I've seen previous posts that suggest the copyDatabase functionality will not be implemented in the C# driver; meaning that we are instead left with copydb. The authentication mechanism implemented in copydb is MONGODB-CR.

      My particular issue is that we are running MongoDB v3.2, which was a clean install (not an upgrade from 2.X). The users that are created in said version of MongoDB get the appropriate documents created that allow them to use the SCRAM-SHA-1 authentication method, but not MONGODB-CR. Now when I try to execute the copydb command, I basically get an error on the server stating: Failed to authenticate someDbOwner@qa01-db01 with mechanism MONGODB-CR: AuthenticationFailed: MONGODB-CR credentials missing in the user document.

      I know this is the wrong place to request this authentication mechanism be added as an option to the copydb command (though that would be a great solution); but if the driver were to instead support copyDatabase which allows you to specify the authentication mechanism, that would also take care of the problem I'm experiencing (I just want to copy a db from one mongod instance to another). Please let me know if there is anything that I can clarify. I look forward to your response.


      Also, a user support forum post of mine about this issue: https://groups.google.com/forum/#!searchin/mongodb-user/C$23$202.5$20Driver|sort:date/mongodb-user/Iw_N0osMz8g/pxdempb9AwAJ




            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: