mongo.add.user: Add a user and password

Description Usage Arguments Details See Also Examples

View source: R/mongo.R

Description

Add a user and password to the given database on a MongoDB server for authentication purposes.

Usage

1
mongo.add.user(mongo, username, password, db = "admin")

Arguments

mongo

(mongo) a mongo connection object.

username

(string) username to add.

password

(string) password corresponding to username.

db

(string) The database on the server to which to add the username and password.

Details

See http://www.mongodb.org/display/DOCS/Security+and+Authentication.

See Also

mongo.authenticate,
mongo,
mongo.create.

Examples

1
2
3

jonkatz2/rmongodb documentation built on May 19, 2019, 7:30 p.m.