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

A shell function should be implemented to see if the client is authenticated with the db

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.6.1
    • Component/s: Internal Client, Shell
    • None

      A shell function should be available and return true if a user is authenticated against a database. I propose to use "isAuthorized" as name. A function with this name exists in security.h and can be re-used for this issue.

      bool isAuthorized(const string& dbname)

      { return _isAuthorized( dbname,2 ); }

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            halfdan Fabian Becker
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: