Change authutil.asCluster to check conn for clusterAuthMode

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
            Reporter:
            Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: