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

Required field "credentials" not allowed in "createUser" command

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc1
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Security
    • None
    • Fully Compatible
    • ALL

      > db.getSiblingDB("$external").createUser({user:"fuu",pwd:"bar",roles:[]})
      2014-02-24T15:59:04.404-0500 Error: couldn't add user: User documents for users defined on '$external' must have 'credentials' field set to {external: true} at src/mongo/shell/db.js:1007
      > db.getSiblingDB("$external").createUser({user:"fuu",pwd:"bar",roles:[],credentials:{external:true}})
      2014-02-24T15:59:11.985-0500 Error: couldn't add user: "credentials" is not a valid argument to createUser at src/mongo/shell/db.js:1007
      

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            sverch Shaun Verch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: