Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1399

Update the MongoDB connection URL for GSSAPI authentication

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6
    • Component/s: Documentation
    • Labels:
      None

      Description

      In the Authentication Examples, the URL for connecting with GSSAPI could be more clear:

      uri = "mongodb://mongodbuser%40EXAMPLE.COM@example.com/?authMechanism=GSSAPI&authMechanismProperties=SERVICE_NAME:myservicename"

      As the KDC domain and MongoDB server are the same, it's not easy to see where the user principal ends. Perhaps this is better:

      uri = "mongodb://mongodbuser%40EXAMPLE.COM@mongo-server.example.com/?authMechanism=GSSAPI&authMechanismProperties=SERVICE_NAME:myservicename"

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: