[SERVER-4252] Auth doesn't work on SyncClusterConnections Created: 10/Nov/11 Updated: 11/Jul/16 Resolved: 14/Nov/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security, Shell |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
mongo --nodb > conn = new Mongo(hosts) > db = conn.getDB('admin') ) localhost:10002: { assertion: "unauthorized db:admin lock type:1 client:127.0.0.1", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }localhost:10003: { assertion: "unauthorized db:admin lock type:1 client:127.0.0.1", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }shell/collection.js:173 admin[17:53:39]> db.auth('admin','password') admin[17:53:47]> db.foo.insert( {a:1}) localhost:10003: { assertion: "unauthorized db:admin lock type:1 client:127.0.0.1", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }shell/collection.js:173 |
| Comments |
| Comment by Kristina Chodorow (Inactive) [ 14/Nov/11 ] |
|
sync[14].js are now passing. sync[36].js have issues that are unrelated to this case, filed |
| Comment by Kristina Chodorow (Inactive) [ 14/Nov/11 ] |
|
Got it. This is similar to |
| Comment by Spencer Brody (Inactive) [ 14/Nov/11 ] |
|
I just reproduced with both 2.0.1 and HEAD. Try running jstests/sharding/sync*.js - a bunch of those (1,3,4,and 6) are failing for me b/c of this. |