Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1318

Authentication attempts against arbiter node

      Since 3.0, the driver is attempting to authenticate against the arbiter node. This script reproduces the issue:

      ```

      var MongoClient = require('mongodb').MongoClient;
       
      var url = 'mongodb://dbUser:dbPass@primary,secondary/dbName?replicaSet=rsname';
       
      MongoClient.connect(url, (err, client) => {
        console.log("Connected correctly to server");
      });
      

      On the arbiter's logs:

      2018-02-07T10:43:36.930-0800 I NETWORK  [thread1] connection accepted from <ip>:<port> #11241 (3 connections now open)
      2018-02-07T10:43:36.931-0800 I ACCESS   [conn11241] SCRAM-SHA-1 authentication failed for <dbuser> on <dbname> from client <ip>:<port> ; UserNotFound: Could not find user <dbuser>@<dbname>
      2018-02-07T10:43:37.045-0800 I -        [conn11241] end connection <ip>:<port> (3 connections now open)
      

      Related issues from previous versions: NODE-927, NODE-981

      Please let me know if you need anything else.

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            tfogo Tim Fogarty
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: