[SERVER-15538] Authentication failing from windows client to linux server Created: 06/Oct/14  Updated: 14/Apr/16  Resolved: 02/Mar/15

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.6.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dharshan Rangegowda Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

I have a 2.6.4 client installed on windows server 64 bit. When I try to authenticate to my mongodb 2.6.4 server on linux it fails with the following error

C:\>c:\mongodb-win32-x86_64-2008plus-2.6.4\bin\mongo.exe -u admin -p '' SG-std1-588.devservers.mongodirector.com/admin
MongoDB shell version: 2.6.4
connecting to: SG-std1-588.devservers.mongodirector.com/admin
2014-10-06T22:18:50.969+0000 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1210
exception: login failed

Here are the corresponding logs on the server side

2014-10-06T22:18:55.828+0000 [conn33]  authenticate db: admin { authenticate: 1, nonce: "xxx", user: "admin", key: "xxx" }
2014-10-06T22:18:55.828+0000 [conn33] Failed to authenticate admin@admin with mechanism MONGODB-CR: AuthenticationFailed key mismatch
2014-10-06T22:18:55.836+0000 [conn33] end connection 54.241.242.34:54411 (4 connections now open)

I am able to connect fine using the same syntax from other linux clients.



 Comments   
Comment by Ramon Fernandez Marina [ 15/Jan/15 ]

dharshanr@scalegrid.net, sorry about the late reply. This is expected to work; have you checked that the client is using the right key file? If this is still an issue for you, can you please upload the configuration file for the server or logs since the server starts until the authentication failure?

Generated at Thu Feb 08 03:38:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.