title: mongoose and mongodb authentication
body: <p>I am trying to create one GOD user who has access to all the dbs</p>
  
  <p>The following users have been created :</p>
  
  <pre><code>db.createUser( { user: "admin", pwd: "password", roles: [ "userAdminAnyDatabase" ]    })
  db.createUser( { user: "root", pwd: "password", roles: [ "root" ]    })
  db.createUser( { user: "mongo", pwd: "password", roles: [  "readWriteAnyDatabase","dbAdminAnyDatabase","clusterAdmin" ]})
  </code></pre>
  
  <p>I am trying to connect through the following connection URL</p>
  
  <p><code>mongodb://mongo:password@&lt;mongodb IP&gt;/development_admin</code></p>
  
  <p>I tried with all the users created but none seemed to work. I always get the following error :</p>
  
  <pre><code>   MongoError: auth failed
  </code></pre>
  
  <p>Is there anything that I am performing wrong here ?</p>