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

Localhost exception not working on Windows with LDAP authorization

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.0-rc1
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      Configure a Windows Server 2012 box as a domain controller. Call the computer WINTEST and the domain MONGODB.LOCAL. Set the password for the Administrator account to "Test123!" Extract the attached zip file with MongoDB configuration files to C:\MMSAutomation. Start a mongod with each configuration file under data and a mongos with the configuration file under versions\workspace. Initiate two replica sets, one on ports 27000, 27001, and 27002, and the other on ports 27003, 27004, and 27005. Initiate the config server replica set, containing just one node, on port 27019. Connect to the mongos by running the Mongo shell with no parameters. Then, run the following:

      use admin
      db.system.roles.findOne()
      

      There will be an authorization error, although access should be allowed under the localhost exception.

      Show
      Configure a Windows Server 2012 box as a domain controller. Call the computer WINTEST and the domain MONGODB.LOCAL. Set the password for the Administrator account to "Test123!" Extract the attached zip file with MongoDB configuration files to C:\MMSAutomation. Start a mongod with each configuration file under data and a mongos with the configuration file under versions\workspace. Initiate two replica sets, one on ports 27000, 27001, and 27002, and the other on ports 27003, 27004, and 27005. Initiate the config server replica set, containing just one node, on port 27019. Connect to the mongos by running the Mongo shell with no parameters. Then, run the following: use admin db.system.roles.findOne() There will be an authorization error, although access should be allowed under the localhost exception.

      When attempting to use LDAP authorization on Windows with a sharded cluster, the localhost exception doesn't work, making it impossible to add the role for the Automation Agent.

      CC tim.olsen dennis.kuczynski

            Assignee:
            andreas.nilsson Andreas Nilsson
            Reporter:
            david.golub@mongodb.com David Golub
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: