[CDRIVER-3332] Kerberos auth with Windows SSPI broken with pooled client Created: 23/Aug/19  Updated: 28/Oct/23  Resolved: 26/Aug/19

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: 1.16.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Related
related to CDRIVER-3513 Fix instances where functions may ret... Closed
related to CDRIVER-3334 Test with Cyrus SASL on Windows in ev... Closed
Case:

 Description   

When attempting to authenticate with the GSSAPI authMechanism using SSPI on Windows with a pooled client, we succeed at authenticating, but then check a possibly uninitialized bson_error_t here:

https://github.com/mongodb/mongo-c-driver/blob/505883265e3a78b496a5ce71d9411c07df3db28d/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c#L286-L288

If it is uninitialized, it returns false even if authentication succeeds, propagating the failure up the operation.



 Comments   
Comment by Githook User [ 26/Aug/19 ]

Author:

{'username': 'kevinAlbs', 'email': 'kevin.albertson@mongodb.com', 'name': 'Kevin Albertson'}

Message: CDRIVER-3332 fix SSPI auth error check
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/1487e4cbd7c0c5f6ce990b2ca1a49ac7785a5004

Generated at Wed Feb 07 21:17:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.