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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -