-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.0.2
-
Component/s: HTTP Console
-
None
-
Fully Compatible
-
ALL
To reproduce:
Start up mongod with no flags
In a local mongo JS shell remove any user credentials from all dbs, including admin
> use admin
> db.system.users.remove()
With another computer on the network (or a VM) open a browser and go to the mongo console of the machine that is running mongod
You should be able to access the console.
Now, clear the browser history and close the browser in the second computer or VM
In the JS console of the machine running mongod, create a new user in the admin database.
> use admin
> db.addUser("admin","adminpword")
Go back to the second computer or VM, and try to access the console. Notice that an "authentication" window pops up.
The HTTP interface documentation states that, "If security is configured for a mongod instance, authentication is required for a client to access the http interface from another machine."
http://www.mongodb.org/display/DOCS/Http+Interface#HttpInterface-HTTPConsoleSecurity
If this behavior is by design, the documentation should be changed to reflect that authentication will be required even if mongod is not started with the --auth flag.
- is duplicated by
-
SERVER-4682 web panel prompts for auth even if auth is off, when a user exists in admin db
- Closed