issue to add user

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      i have added user the below query

      db.addUser({
          user: "travel",
          pwd: "h3rm3s123",
          roles: [{
              role: "readWrite",
              db: "admin"
          }]
      })
      

      the try it below query it is getting error kindly advice me

      > db.auth('travel', 'h3rm3s123')
      Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 }
      0
      

            Assignee:
            Unassigned
            Reporter:
            BASKAR
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: