[COMPASS-3082] mongodb compass is not be able to connect server in kerberos mode Created: 24/Aug/18  Updated: 29/Oct/23  Resolved: 12/Nov/18

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.15.0
Fix Version/s: 1.16.0

Type: Bug Priority: Major - P3
Reporter: winnie_quest Assignee: Durran Jordan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows 7 SP1


Sprint: Iteration Ratatouille

 Description   

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


Generated at Wed Feb 07 22:32:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.