XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4.8
    • Component/s: Security
    • None
    • Environment:
      Test
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am running cluster with --keyFile, the processes starts fine. Then I seParameter userAdminLocalhostAuthDabase=0 and add a new user. After that, I connect to the database with the new user and run an rs.initiate() to initiate the cluster. But when I try to run a query i get this error message:

      {"ok" : 0, "errmsg" : "unauthorized" }

      can some please tell me what I am doing wrong?

      Thanks.

            Assignee:
            Unassigned
            Reporter:
            Dwayne Mcnab
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: