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

Add error code for authentication fails - especially important for auditing products

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.2, 2.5.0
    • Affects Version/s: 2.4.0-rc2
    • Component/s: Security
    • Labels:
      None
    • Fully Compatible

      Currently when authentication fails (e.g. in db.auth() in the shell), the error that comes back does not have an error code, just a description. It is a common auditing policy by enterprises to log how many times someone tries to log-in and not having an error code for this makes it harder to identify. Especially as other DB products have error codes, it makes Mongo a special case.

      Providing error codes is a separate JIRA issue but specifically for this error would help in the short-term and make Mongo easier to integrate with.

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            matt.kalan@mongodb.com Matt Kalan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: