-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
The driver documents (https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-create-client) :auth_source to be of a String type. However, the driver uses :external symbol to represent the $external auth source. This symbol, when passed to the server, fails x509 auth as follows:
D, [2019-09-04T17:38:05.105657 #20412] DEBUG -- : MONGODB | localhost:32101 | external.authenticate | FAILED | wrong type for field ($db) symbol != string (13111) | 0.000392059s
Eliminating the conversion from $external to :external makes x509 auth work.