Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-407

Adding first user from localhost works but raises OperationFailure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None

      Description

      This is basically a request to fix SERVER-4225 for pymongo

      To reproduce:

      • Start a mongod from scratch (no DB files/no users) with --auth
        [shell] mongod --auth
      • Connect from pymongo on localhost and add an admin user
        conn = Connection()
        admin_db = conn['admin']
        admin_db.addUser('foo' , '123')

      This will add the user foo but will raise an OperationFailure "need to login" error

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ross.lawley Ross Lawley
              Reporter:
              abdul Abdul Alkhatib
              Participants:
              Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: