mongodb - does enableLocalhostAuthBypass override --auth ? -


in docs (link) says "specify 0 disable localhost authentication bypass. enabled default" enablelocalhostauthbypass. when start mongod --auth:

mongod --port 30xxx --dbpath=/home/dev/xxxx --auth 

and connect via localhost:

mongo --host localhost --port 30xxx mydb 

and try anything:

> show collections wed aug  7 11:07:50.420 javascript execution failed: error: {     "$err" : "not authorized query on configuration.system.namespaces",     "code" : 16550 

bzzt, no go. can connect -u -p , run show collections though.

from docs sounds connecting via localhost bypass auth default. that's not i'm seeing. docs unclear? reading wrong?

enablelocalhostauthbypass used case when have no user defined @ auth enabled on mongodb , don't want able connect @ all. not meant turn off authentication localhost altogether.

as have user defined, enabledlocalhostauthbypass nothing , have authenticate first.

it described in documentation at: http://docs.mongodb.org/manual/tutorial/add-user-administrator/#authenticate-with-full-administrative-access-via-localhost


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -