Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1095

mongoimport.exe will say "imported <number> documents" when Kerberos args are not passed

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.2.3
    • Component/s: mongoimport
    • None

      I have a 3.0.9 Linux mongod with Kerberos connected to an AD server. I ran 3.2.3 mongoimport.exe in Windows and did not specify appropriate Kerberos credentials in the following:

      .\mongoimport.exe --host <mongod> --authenticationDatabase $external --authenticationMechanism GSSAPI --db <db> --collection <collection> --file <json>
      

      After it ran, it output:

      imported <number> documents
      

      However, the documents are (correctly) not imported and the server log (correctly) states:

      Unauthorized not authorized on <db> to execute command
      

      mongoimport.exe should instead state a security error. 3.0.9 mongoimport.exe states the error that appears in the server log. 3.2.3 should function as 3.0.9 does.

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: