Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2345

Update the MongoDB connection URL for GSSAPI authentication

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.9.0
    • Affects Version/s: None
    • Component/s: Docs
    • None

      In the GSSAPI (Kerberos) Authentication section, the URL for connecting is currently:

      client = mongoc_client_new ("mongodb://mongodbuser%40EXAMPLE.COM@example.com/?authMechanism=GSSAPI");
      

      It could be confusing for the KDC domain and MongoDB server to be the same. Perhaps this is better:

      client = mongoc_client_new ("mongodb://mongodbuser%40EXAMPLE.COM@mongo-server.example.com/?authMechanism=GSSAPI");
      

      Also, the kinit example seems to have run two CLI lines together:

      $ kinit mongodbuser@EXAMPLE.COMmongodbuser@EXAMPLE.COM's Password:
      

            Assignee:
            brian.moss@mongodb.com Brian Moss
            Reporter:
            brian.moss@mongodb.com Brian Moss
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: