Learn R Programming

RMongo (version 0.0.25)

dbAuthenticate-methods: Authenticate with a username/password.

Description

This is an optional authenticate method.

Usage

dbAuthenticate(rmongo.object, username, password)

Arguments

rmongo.object
RMongo object containing the database connection information.
username
Username
password
Password

See Also

dbAuthenticate

Examples

Run this code
  mongo <- mongoDbConnect("test")
  username = ""
  password = ""
  authenticated <- dbAuthenticate(mongo, username, password)
  dbDisconnect(mongo)

Run the code above in your browser using DataLab