Can't authenticate against database "*"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.4
    • Affects Version/s: 2.4.6, 2.5.2
    • Component/s: Security
    • None
    • Minor Change
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The server doesn't have a consistent story as to whether * is a valid database name. _initializeUserRolesFromV1RolesArray rejects * due to its conflict with WILDCARD_RESOURCE_NAME, but NamespaceString::validDBName blacklists the * character only inside an #ifdef _WIN32 section.

      In 2.4.6:

      db.getSiblingDB("*").addUser({user:'x',pwd:'x',roles:['read']})
      db.getSiblingDB("*").auth('x','x')
      
      Wed Sep 18 17:28:42.103 [conn1] Privilege acquisition failed for x@* in database *: * is an invalid database name. (BadValue)
      

            Assignee:
            Andy Schwerin
            Reporter:
            J Rassi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: