How can I know a Mongodb server is running with --auth on?

I am using nodejs and Mongodb JS driver mongodb-native.

But there seems no way for me to know whether the mongo server I connect need authentication, which means it's running with --auth on, so I can decide whether I should call db.authenticate method.

Have checked db, server and admin objects' properties, no one seems to indicate the --auth option.

Please help.

Yeah there is no way to currently do this but I think it's a valid case. I suggest you open a feature request on https://jira.mongodb.org and vote it up so it might be included in a future release of the server.