Option to specify GSSAPI hostname

XMLWordPrintableJSON

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

      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:
            A. Jesse Jiryu Davis
            Reporter:
            winnie_quest
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: