[SERVER-7091] Include authenticated user in log messages Created: 21/Sep/12  Updated: 20/Mar/13  Resolved: 18/Dec/12

Status: Closed
Project: Core Server
Component/s: Logging, Security
Affects Version/s: 2.2.0
Fix Version/s: 2.3.2

Type: Improvement Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-7128 Integration tests for Auth Closed
Related
related to SERVER-1891 Audit "DDL" operations Closed
Backwards Compatibility: Fully Compatible
Participants:

 Comments   
Comment by Andy Schwerin [ 18/Dec/12 ]

To enable user-name logging, pass "--setParameter logUserIds=1" on the mongod or mongos command line. When authenticated users are present on a connection, log lines from those connections will contain a list of users, prefixed with "user:". For example:

user:eliot@test,andy@admin

Comment by auto [ 18/Dec/12 ]

Author:

{u'date': u'2012-12-12T20:14:02Z', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-7091 When available, include authenticated user information in log messages.
Branch: master
https://github.com/mongodb/mongo/commit/0a2ca6c3676ed70d87209851de0ab1db355bbb92

Comment by auto [ 14/Dec/12 ]

Author:

{u'date': u'2012-12-13T00:32:44Z', u'email': u'schwerin@10gen.com', u'name': u'Andy Schwerin'}

Message: SERVER-7091 Iterator over authenticated principal names in AuthorizationManager.
Branch: master
https://github.com/mongodb/mongo/commit/bef110071c0d2641670ec55f621ea1d23de13aab

Generated at Thu Feb 08 03:13:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.