Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1989

C# Driver Connection to MOngoDB Using Kerberos Authentication

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • Windows

    Description

      Hello,

      I am trying to connect from my client application to a replicate set in MongoDB which is setup using Kerberos connection. My connection string is something like below:

      mongodb://[user_name]%40[DO:[password]@HOST1:27017,HOST2:27017,HOST3:27017/?authMechanism=GSSAPI&authMechanismProperties=SERVICE_NAME:Mongo27017/?writePreference=HOST1:27017

      I am getting the error message : Unable to connect using sasl protocol mechanism GSSAPI.

      We are using Enterprise version of MongoDB. From MongoShelll, I am able to connect successfully. I am using 2.4.3 C# driver for MongDB. Please assist.

      Thanks,
      Varun

      Attachments

        Activity

          People

            Unassigned Unassigned
            varun.bhola@cibc.com Varun Bhola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: