Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11625

updateUser does not log "roles" in "param" in bson audit log

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

      Run enterprise mongod (@dcd569ac549275cd3b81642325f63001cb33cd64) commit with auditing set to a bson file. Update a user. Look at the bson log

      Show
      Run enterprise mongod (@dcd569ac549275cd3b81642325f63001cb33cd64) commit with auditing set to a bson file. Update a user. Look at the bson log

      When I update a user, I am seeing the following bson (in python dict format):

      {u'remote': {u'ip': u'10.158.93.82', u'port': 35832}, u'users': [{u'db': u'db1', u'user': u'user2'}], u'atype': u'updateUser', u'ts': datetime.datetime(2013, 11, 7, 18, 40, 23, 311000, tzinfo=<bson.tz_util.FixedOffset object at 0x8fce50>), u'param': {u'passwordChanged': True, u'db': u'db1', u'user': u'user2'}, u'result': 0, u'local': {u'ip': u'10.158.93.82', u'port': 27017}}
      

      Notice that the param object does not have a roles field.

      This is with mongo master commit dcd569ac549275cd3b81642325f63001cb33cd64 (enterprise build)

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            tim.olsen@mongodb.com Timothy Olsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: