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

MongoDB YAML "Unrecognized option: security.ldap.servers"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major - P3
    • Resolution: Unresolved
    • 4.4.0
    • None
    • None

    Description

      I am running MongoDB v.4.4.0 on Linux CentOS 7. I am having trouble setting up the YAML config file for for security and authorization. When I have the below config file I only receive an error saying "Unrecognized option: security.ldap.servers". What is wrong with my config?

      systemLog:
        destination: file
        path: "/home/mongo/mongodb/logs/mongod.log"
        logAppend: true
       
      storage:
        dbPath: "/home/mongo/mongodb/data/db"
       
      net:
        bindIp: localhost, 127.0.0.1
        port: 27017
       
      security:
      #  authorization: enabled
        ldap:
          servers: "ldap"
          bind:
            queryUser: user
            queryPassword: pass
          transportSecurity: none
          userToDNMapping: '[{match: "(.+)", ldapQuery: "o=int,c=com?uid?sub?userPrincipalName={0}@ldap.xxx.com"}]'
          authz:
            queryTemplate: '{USER}?memberOf?base'
      setParameter:
        authenticationMechanisms: 'PLAIN,SCRAM-SHA-1'
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.rabaez@gmail.com David Rabaez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: