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

Adding first user from localhost works but raises OperationFailure

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.4
    • Affects Version/s: 2.1, 2.2
    • Component/s: None
    • None

      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

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

              Created:
              Updated:
              Resolved: