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

Option to specify GSSAPI hostname

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 1.7.0
    • libmongoc
    • None
    • mongo-cxx-driver-r3.1.3
      mongo-c-driver-1.7.0

    Description

      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" }

      };

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: