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

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

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

      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

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

              Created:
              Updated:
              Resolved: