title: Connecting to MongoDB replica set with rmongodb
body: <p>Has anyone been able to connect to a MongoDB replica set using <code>rmongodb</code>? No matter how I configure <code>mongo.create</code> I get an authentication error, even though the same host/username/password work fine when connecting via the <code>mongo</code> shell.</p>
  
  <p>My code does the equivalent of:</p>
  
  <pre><code>&gt; mongo.create(c("rs-1.mysite.com:12345","rs-2.mysite.com:12345"), "rsName", "user", "password", "my_db")
  Unable to connect to replset
  Authentication failed.
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <p>Looking at the logs of all the nodes in the replica set, I do not see any attempt to authenticate when I run the code above. Therefore, this may be a <code>rmongodb</code> bug.</p>