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

XMLWordPrintableJSON

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

      > 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 Brody (Inactive)
              Reporter:
              Shaun Verch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: