Navigation
This version of the documentation is archived and no longer supported.

Access Control Tutorials

The following tutorials provide instructions for MongoDB’’s authentication and authorization related features.

Enable Client Access Control
Describes the process for enabling authentication for MongoDB deployments.
Enable Authentication in a Sharded Cluster
Control access to a sharded cluster through a key file and the keyFile setting on each of the cluster’s components.
Enable Authentication after Creating the User Administrator
Describes an alternative process for enabling authentication for MongoDB deployments.
Use x.509 Certificates to Authenticate Clients
Use x.509 for client authentication.
Use x.509 Certificate for Membership Authentication
Use x.509 for internal member authentication for replica sets and sharded clusters.
Authenticate Using SASL and LDAP with ActiveDirectory
Describes the process for authentication using SASL/LDAP with ActiveDirectory.
Authenticate Using SASL and LDAP with OpenLDAP
Describes the process for authentication using SASL/LDAP with OpenLDAP.
Configure MongoDB with Kerberos Authentication on Linux
For MongoDB Enterprise Linux, describes the process to enable Kerberos-based authentication for MongoDB deployments.
Configure MongoDB with Kerberos Authentication on Windows
For MongoDB Enterprise for Windows, describes the process to enable Kerberos-based authentication for MongoDB deployments.
Authenticate to a MongoDB Instance or Cluster
Describes the process for authenticating to MongoDB systems using the mongo shell.
Generate a Key File
Use key file to allow the components of MongoDB sharded cluster or replica set to mutually authenticate.
Troubleshoot Kerberos Authentication on Linux
Steps to troubleshoot Kerberos-based authentication for MongoDB deployments.
Implement Field Level Redaction
Describes the process to set up and access document content that can have different access levels for the same data.