I have many services and users that connect to MongoDB
and now I need to switch on authentication. I have created some accounts and tried to ensure most users/services are now using accounts when connecting. I'd like to know if there is any way I can find connections to the database that are not using an account before I restart the mongod
with --auth
and enforce authentication.
MongoDB Security – Find Unauthenticated Connections
authenticationmongodb
Related Question
- MongoDB LDAP – How to Bypass LDAP for MongoDB Users
- Mongodb – Sudden Mongodb high connections/queues, db stops responding
- MongoDB cluster setup
- MongoDB Security – Resolving Localhost Exception
- Mongodb – Flask mongodb assertion 13 not authorized for query on flask_session.sessions
- Mongodb – Failed to start of service MongoDB community4.2 using Homebrew in Mac OS Mojave 10.14
Best Answer
Failing anything better here is a script to parse the log files and find unauthenticated users: