(PECL mongo >=1.0.1)
MongoDB::authenticate — Log in to this database
This method causes its connection to be authenticated. If authentication is enabled for the database server (it's not, by default), you need to log in before the database will allow you to do anything.
The username.
The password (in plaintext).
Returns database response.