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

(empty) database is created when non-authorized user is trying to connect

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: Security
    • Labels:
    • Environment:
      Oracle Linux 64-bit

      Description

      HI,
      When a non-authorized user is trying to connect to the MongoDB
      List of databases:
      wfm:PRIMARY> show dbs
      admin 0.203125GB
      local 1.015625GB

      UNIX> mongo -u edik -p edik usatl-s-ssvm41/edik
      MongoDB shell version: 2.2.2
      connecting to: usatl-s-ssvm41/edik
      Error:

      { errmsg: "auth fails", ok: 0.0 }

      Fri Dec 7 16:57:33 uncaught exception: login failed
      exception: login failed

      The empty database “edik” is created
      wfm:PRIMARY> show dbs
      admin 0.203125GB
      edik (empty)
      local 1.015625GB
      Is there any way to prevent this?

      Thanks,
      Edouard

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              eperov Edouard Perov
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: