![]() ![]() This is usually a password, but can also be a certificate. To authenticate to an account, one also needs to be able to provide the credentials associated with an account. However, the same username may be reused with a different authentication database to create a new, distinct user account.Īs a result of this design, an account can only be accurately identified by including the username and authentication database. Authentication databases are regular databases used to manage other data and are not special, dedicated databases.Ī user account name must be unique in its authentication database. The authentication database is simply the database where the user is defined and does not imply a limitation on scope or rights. In MongoDB, user accounts are a combination of the account username along with a specific authentication database. Understanding how MongoDB implements users and authenticationīefore we start creating and managing accounts, it's helpful to take some time to get familiar with how MongoDB defines and stores this information. To delete a user account, your current user must have the following privilege action enabled: We won't be covering role management in this guide, so the grantRole and revokeRole privilege actions are not be required. changeCustomData privilege action to change other users' custom data.changePassword privilege action to change other users' passwords.changeOwnCustomData privilege action to change your own account's custom data.changeOwnPassword privilege action to change your own account password.To change a user's password or account details, you might need the following privileges: To create new users, your current user must have the following privilege actions enabled: ![]() To get info about other users, your current user must have the following privilege action enabled: The specific privileges you require depend on the commands you need to use. To execute the commands above, you need to login to MongoDB with an account with a number of different privilege actions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |