mongo.authenticate: Autherticate a user and password

Description Usage Arguments Details See Also Examples

View source: R/mongo.R

Description

Autherticate a user and password against a given database on a MongoDB server.

Usage

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

Arguments

mongo

(mongo) a mongo connection object.

username

(string) username to authenticate.

password

(string) password corresponding to username.

db

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

Details

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

Note that mongo.create() can authenticate a username and password before returning a connected mongo object.

See Also

mongo.add.user,
mongo.create.

Examples

1
2
3

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