[SERVER-15791] SASL: user name is not logged if auth fails Created: 23/Oct/14  Updated: 07/Dec/16  Resolved: 09/Sep/15

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: 2.6.5
Fix Version/s: 3.1.8

Type: Bug Priority: Major - P3
Reporter: Alexander Komyagin Assignee: Spencer Jackson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-11855 Unclear error message when saslauthd ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:
  1. Create a working setup with saslauthd
  2. stop saslauthd
  3. try to authenticate
  4. check the log
Sprint: Security [00-02-20-15], Security 0 03/13/15], Security 1 04/03/15, Security 9 (09/18/15)
Participants:

 Description   

If we were not able to create a sasl session (e.g. saslauthd is not running), the error message in the log doesn't print out the user name:

2014-10-23T13:14:19.514-0400 [conn9] ERROR: cannot connect to saslauthd server: Permission denied
2014-10-23T13:14:19.514-0400 [conn9] ERROR: Password verification failed
2014-10-23T13:14:19.514-0400 [conn9] PLAIN authentication failed for  on $external ; ProtocolError SASL(-1): generic failure: Password verification failed



 Comments   
Comment by Githook User [ 13/Oct/15 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: SERVER-15791: Fallback onto SASL authentication name for logging
Branch: artree
https://github.com/10gen/mongo-enterprise-modules/commit/28961743d727cce306f6f2d2bd728e28c977a7d4

Comment by Githook User [ 09/Sep/15 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: SERVER-15791: Fallback onto SASL authentication name for logging
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/28961743d727cce306f6f2d2bd728e28c977a7d4

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