[CDRIVER-489] Use provided username for X509 authentication Created: 22/Dec/14  Updated: 19/Oct/16  Resolved: 27/Jan/15

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

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to PHPC-33 Implement X509 support via PHP streams Closed

 Description   

The intention is that users explicitly provide the username for X509 auth.
Currently the driver ignores it, and pulls it out from the provided pem file, which has to be set via mongoc_client_set_ssl_opts().

phongo however doesn't use the mongoc ssl wrapper, and therefore never calls that function.

mongoc needs to first check if a username was provided, and then fallback on extracting the subject from the cert.



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

Author:

{u'username': u'samantharitter', u'name': u'Samantha Ritter', u'email': u'samantha.ritter@10gen.com'}

Message: SDAM: port over missed changes from master:

Comment by Githook User [ 11/Mar/15 ]

Author:

{u'username': u'samantharitter', u'name': u'Samantha Ritter', u'email': u'samantha.ritter@10gen.com'}

Message: SDAM: port over missed changes from master:

Comment by Githook User [ 07/Jan/15 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@mongodb.com'}

Message: CDRIVER-489: Use the provided username, if available for X.509 auth

Falls back to extracting the subject from the cert for backwards
compatibility

Closes #145
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/2cac8f42c151c01f13cc5bca3ac65d34912c4c1d

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