Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2400

Typo in Java GSSAPI sample

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      Under the Java connection examples found at http://mongodb.github.io/mongo-java-driver/3.3/driver/reference/connecting/authenticating/

      See the GSSAPI examples, the connection string is quoted as follows:

      MongoClientURI uri = new MongoClientURI("mongodb://username%40MYREALM.com@host1/?authMechanism=GSSAPI");
      

      The realm component must be all upper case, and I would suggest making the realm name consistent with the previous example (quoted above this string), as follows:

      MongoClientURI uri = new MongoClientURI("mongodb://user1%40MYREALM.ME@host1/?authMechanism=GSSAPI");
      

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            luke.prochazka@mongodb.com Luke Prochazka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: