Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4518

Error message for X.509 without authSource=$external is unhelpful

    • 1
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      See COMPASS-5801 and MONGOSH-1052:

      Connecting to a connection string like "mongodb+srv://hostname/?authMechanism=MONGODB-X509&tls=true&tlsCertificateKeyFile=filename" fails with "[object Object] can only have authSource set to '$external'", where obviously "[object Object]" is not what this should really say.

      Source line: https://github.com/mongodb/node-mongodb-native/blob/ac4aabc9cf49c78ca5854b0185e2fc5ae983d3cf/src/connection_string.ts#L339

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Daria Pardue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: