Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3082

mongodb compass is not be able to connect server in kerberos mode

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.16.0
    • Affects Version/s: 1.15.0
    • Component/s: Compass
    • Labels:
      None
    • Environment:
      windows 7 SP1
    • Iteration Ratatouille

      from the same machine(win7 sp1), through my program, I can connect to mongodb server by kerberos.  note my own program uses mongo C driver 1.7.

      however, when I uses mongodb compass db, I can't connect to the same server by kerberos successfully.

      I checked the mongodb server log, it shows:

      2018-08-24T07:35:48.213+0000 I NETWORK [listener] connection accepted from 10.154.10.101:27604 #1598 (1 connection now open)
      2018-08-24T07:35:48.214+0000 I NETWORK [conn1598] received client metadata from 10.154.10.101:27604 conn1598: { driver:

      { name: "nodejs", version: "3.1.1" }

      , os: { type: "Windows_NT", name: "win32", architecture: "x64", version: "6.1.7601" }, platform: "Node.js v8.9.3, LE, mongodb-core: 3.1.0", application: { name: "MongoDB Compass" } }
      2018-08-24T07:35:48.610+0000 E ACCESS [conn1598] GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Mechanism is incorrect)
      2018-08-24T07:35:48.611+0000 E ACCESS [conn1598] Was not able to acquire principal id from Cyrus SASL: -6
      2018-08-24T07:35:48.611+0000 I ACCESS [conn1598] SASL GSSAPI authentication failed for on $external from client 10.154.10.101:27604 ; AuthenticationFailed: SASL(-13): authentication failure: GSSAPI Failure: gss_accept_sec_context
      2018-08-24T07:35:48.795+0000 I NETWORK [conn1598] end connection 10.154.10.101:27604 (0 connections now open)

       

      there's a slash symbol in my principal name:

       testkrb/db-mongo-kerberos.cloudapp.net@xxxxxCLOUDAPP.NET,

      I am not user if the special symbol make the connection failed. Could you please help to check, thanks.

      I am not able to connect to mongoDB server by kerberos

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            winnie_quest winnie_quest
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: