Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45108

Change authutil.asCluster to check conn for clusterAuthMode

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Security
    • None
    • Fully Compatible
    • ALL
    • Security 2019-12-30, Security 2019-01-13, Security 2019-01-27, Security 2020-02-10

      In order for TestData.clusterAuthMode to be set, clusterAuthMode must be configured as part of the suite. Since clusterAuthMode is a property of the mongod, jstest.options().clusterMode is never set and always defaults to 'keyFile'. Thus, atuhutil.asCluster should use 'conn' to check for the setting of clusterAuthMode instead of using jstest.options

      Currently, authutil.asCluster won't work for some tests that require x509 auth, since auth mode defaults to 'keyFile,' and x509 authorization cannot be reached in the code.  

       

       

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: