Documentation
Clients use authenticate to authenticate a connection. When using the shell, use the db.auth() helper as follows:
db.auth( "username", "password" )
See
db.auth() and 安全 for more information.