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

Option to specify GSSAPI hostname

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.7.0
    • Component/s: libmongoc
    • Labels:
      None
    • Environment:
      mongo-cxx-driver-r3.1.3
      mongo-c-driver-1.7.0

      I see this description in mongoDB officail mannual:
      "If you are connecting to a system whose hostname *does not match *the Kerberos name, use --gssapiHostName to specify the Kerberos FQDN that it responds to."

      so I run the mongo shell:
      administrator@mon:~$ mongo --host 10.154.10.100 --authenticationMechanism=GSSAPI --authenticationDatabase='$external' --username user1@KER.COM --gssapiHostName mon.ker.com

      and it works.

      but when I try to wrote program with mongo c driver(V 1.7.0), I found there's no parameter corresponding to "gssapiHostName".

      so my problem is:
      how could I specify the "gssapiHostName" in the following connection string?
      auto client = mongocxx::client{ mongocxx::uri

      { "mongodb://user1%40KER.COM:123@10.154.10.100/?authMechanism=GSSAPI" }

      };

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            winnie_quest winnie_quest
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: