If the connection string contains credentials, but the authSource option is not supplied, the authentication database is used. Without specifying a port number, the generic port 27017 is utilized. Indicate the mongos instance’s hostname(s) (s) for a sharded cluster. Provide the hostname(s) of the mongod instance(s) specified in the replica set settings for a replica set. In the case of a single mongod instance, give the hostname of the mongod instance. Indicate the number of hosts required for your rollout topology: You can indicate a hostname, an IP address, or a socket in a UNIX domain. host – The host (and optionally the port number) on which the mongod instance is operating (or mongos instance in the case of a sharded cluster).Additionally, the admin database is used if the defaultauthdb is not given. Without specifying an authSource, the client will verify the user against the defaultauthdb. If the authSource is given, the client will try to authenticate the user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |